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 |