From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Apr 2023 09:20:24 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pp275-008eOr-Uz for lore@lore.pengutronix.de; Wed, 19 Apr 2023 09:20:24 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pp276-0007Ok-6E; Wed, 19 Apr 2023 09:20:24 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pp26h-0007Oa-Ai; Wed, 19 Apr 2023 09:19:59 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pp26g-0003bW-OY; Wed, 19 Apr 2023 09:19:58 +0200 Date: Wed, 19 Apr 2023 09:19:58 +0200 From: Michael Olbrich To: Guillermo Rodriguez Garcia Message-ID: <20230419071958.GK22555@pengutronix.de> Mail-Followup-To: Guillermo Rodriguez Garcia , ptxdist@pengutronix.de References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] ptx/image-install for older ptxdist releases 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: ptxdist@pengutronix.de 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.ext.pengutronix.de); SAEximRunCond expanded to false Hi, On Tue, Apr 18, 2023 at 04:39:54PM +0200, Guillermo Rodriguez Garcia wrote: > I have an "image" package that generates more than one image file. > > In the past I asked what would be the best way to handle this so that the > clean target works correctly. Michael suggested to use ptx/image-install: > > > You should be able to use ptx/image-install in the image rule. Just like > > regular packages. File installed with this are recorded and later removed > > in the clean stage. > > I have found that ptx/image-install indeed solves the problem when > available; however this was added relatively recently and does not exist > for older ptxdist releases. > > Is there a way to achieve similar functionality in ptxdist releases where > ptx/image-install is not available ? It should be possible to backport that feature. Take a look at the commit that introduced the feature 3694633183ae70aeba062d53db3eeb4bf521d090. You basically need to copy that stuff into your BSP in the same locations (rules/post and scripts/lib). Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |