mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH 2/2] templates: barebox: use ptx/image-install
Date: Fri,  2 Aug 2024 12:25:29 +0200	[thread overview]
Message-ID: <20240802102529.1411407-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20240802102529.1411407-1-rhi@pengutronix.de>

The images installed by ptx/image-install are automatically cleaned up
by the default clean stage.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/templates/template-barebox-make | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/rules/templates/template-barebox-make b/rules/templates/template-barebox-make
index 84f15d91dc28..6821d65b9ab6 100644
--- a/rules/templates/template-barebox-make
+++ b/rules/templates/template-barebox-make
@@ -75,20 +75,10 @@ $(STATEDIR)/barebox-@package@.install:
 $(STATEDIR)/barebox-@package@.targetinstall:
 	@$(call targetinfo)
 	@$(foreach image, $(BAREBOX_@PACKAGE@_IMAGES), \
-		install -m 644 \
-			$(image) $(IMAGEDIR)/$(notdir $(image))-@package@$(ptx/nl))
+		$(call ptx/image-install, BAREBOX_@PACKAGE@, $(image), \
+			$(notdir $(image))-@package@)$(ptx/nl))
 	@$(call touch)
 
-# ----------------------------------------------------------------------------
-# Clean
-# ----------------------------------------------------------------------------
-
-$(STATEDIR)/barebox-@package@.clean:
-	@$(call targetinfo)
-	@$(call clean_pkg, BAREBOX_@PACKAGE@)
-	@$(foreach image, $(BAREBOX_@PACKAGE@_IMAGES), \
-		rm -fv $(IMAGEDIR)/$(notdir $(image))-@package@$(ptx/nl))
-
 # ----------------------------------------------------------------------------
 # oldconfig / menuconfig
 # ----------------------------------------------------------------------------
-- 
2.39.2




  reply	other threads:[~2024-08-02 10:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-02 10:25 [ptxdist] [PATCH 1/2] barebox: remove superfluous ptxd_source_kconfig calls Roland Hieber
2024-08-02 10:25 ` Roland Hieber [this message]
2024-09-12 12:11   ` [ptxdist] [APPLIED] templates: barebox: use ptx/image-install Michael Olbrich
2024-08-08  9:36 ` [ptxdist] [PATCH 3/2] templates: kernel: use ptx/image-install and fix clean stage Roland Hieber
2024-09-12 12:11   ` [ptxdist] [APPLIED] " Michael Olbrich
2024-08-08 14:14 ` [ptxdist] [PATCH 1/2] barebox: remove superfluous ptxd_source_kconfig calls Michael Olbrich
2024-08-26 12:09   ` Roland Hieber
2024-09-06 14:03 ` Michael Olbrich
2024-09-06 14:05   ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240802102529.1411407-2-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox