From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: References: <9e96fc76-fd17-3223-a8d1-0c3a64c823d7@ppc-ag.de> From: Bastian Krause Message-ID: Date: Fri, 19 Jun 2020 10:08:14 +0200 MIME-Version: 1.0 In-Reply-To: <9e96fc76-fd17-3223-a8d1-0c3a64c823d7@ppc-ag.de> Content-Language: en-US Subject: Re: [ptxdist] Adding package independent files in the root filesystem List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de, Mircea Ciocan On 6/19/20 9:51 AM, Mircea Ciocan wrote: > Hello everybody, > > I have some configuration files that are package independent, but board > depended, is there a solution to add them in bulk to the root filesystem. > > It seem that configs/platform-XXX/projectroot only holds configuration > files that overrides the default ALREADY EXISTING files in the root file > system, all other files seem to be ignored. > > Is there some "magic" setting that allows a full projectroot copy and > overwrite/add the content to the rootfs or is there another way to get a > similar effect ? Only files that are installed by an enabled package using install_alternative(_tree) [1][2] are taken from projectroot. Create a new target package with "ptxdist newpackage target", remove everything but PACKAGES-$(PTXCONF_YOURPACKAGE), YOURPACKAGE_VERSION, YOURPACKAGE_LICENSE and the targetinstall stage. In the targetinstall stage you can use install_alternative_tree [2] to install "the whole source directory tree with all files" [2]. Care must be taken not to install files with this that are installed by another package already. Regards, Bastian [1] https://www.ptxdist.org/doc/ref_make_macros.html#install-alternative [2] https://www.ptxdist.org/doc/ref_make_macros.html#install-alternative-tree -- 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 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de