From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 01 Oct 2021 14:27:37 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mWHdZ-0007hv-7j for lore@lore.pengutronix.de; Fri, 01 Oct 2021 14:27:37 +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 1mWHdY-0005aZ-OG; Fri, 01 Oct 2021 14:27:36 +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 1mWHd2-0005aP-9I; Fri, 01 Oct 2021 14:27:04 +0200 Received: from rhi by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mWHd1-00024M-WF; Fri, 01 Oct 2021 14:27:04 +0200 Date: Fri, 1 Oct 2021 14:27:03 +0200 From: Roland Hieber To: Guillermo Rodriguez Garcia Message-ID: <20211001122703.ne7cannfgjoi6tsv@pengutronix.de> References: <20210930105515.GP18190@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Subject: Re: [ptxdist] TF-A FIP format and U-Boot 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 On Thu, Sep 30, 2021 at 02:10:15PM +0200, Guillermo Rodriguez Garcia wrote: > > So for such a use-case, the files must be installed in the install stage. > > Note, that you cannot install the files into platform/images: > > 'ptxdist clean root' will remove that but only cleans the targetinstall > > stages, so afterwards the files will be missing. > > > > So I suggest the files are installed to > > $(_PKGDIR)/usr/lib// > > The install stage will then copy the files to sysroot-target and the next > > package can find the files there. > > > > Uhm, the files themselves are not needed in the target fs; they are only > required as intermediate files to build the FIP image. > Should I still copy them to sysroot-target? Yes. sysroot-target is not the contents of the image yet, but only the staging area where target packages install their files. This is done because in the install stage PTXdist uses the package's build system to install files, which sometimes installs many more files that you maybe don't want in your target. In the targetinstall stage you have to pick them from sysroot-target into the image explicitly with the $(call install_*) macros. - Roland -- Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de