From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 12 Sep 2024 14:12:17 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1soigM-003miG-0b for lore@lore.pengutronix.de; Thu, 12 Sep 2024 14:12:17 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1soigL-0002mW-E6; Thu, 12 Sep 2024 14:12:17 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1soiff-0001LT-Rk; Thu, 12 Sep 2024 14:11:35 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soiff-007NQE-F1; Thu, 12 Sep 2024 14:11:35 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1soiff-00BGa3-1M; Thu, 12 Sep 2024 14:11:35 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 12 Sep 2024 14:11:35 +0200 Message-Id: <20240912121135.2685336-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240802102529.1411407-2-rhi@pengutronix.de> References: <20240802102529.1411407-2-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] templates: barebox: use ptx/image-install X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as a9aa020cddf0278e95136eccb58af40f8e7178c3. Michael [sent from post-receive hook] On Thu, 12 Sep 2024 14:11:35 +0200, Roland Hieber wrote: > The images installed by ptx/image-install are automatically cleaned up > by the default clean stage. > > Signed-off-by: Roland Hieber > Message-Id: <20240802102529.1411407-2-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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 > # ----------------------------------------------------------------------------