From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.kundenserver.de ([212.227.126.134]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmFEl-0004P4-K8 for ptxdist@pengutronix.de; Fri, 19 Jun 2020 13:31:12 +0200 Date: Fri, 19 Jun 2020 13:31:07 +0200 From: Alexander Dahl Message-ID: <20200619113105.7tq3ojypjqkhxey7@falbala.internal.home.lespocky.de> References: <9e96fc76-fd17-3223-a8d1-0c3a64c823d7@ppc-ag.de> MIME-Version: 1.0 In-Reply-To: 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: multipart/mixed; boundary="===============0905028949==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Mircea Ciocan --===============0905028949== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7wnfyck2cl4psirl" Content-Disposition: inline --7wnfyck2cl4psirl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hei hei, On Fri, Jun 19, 2020 at 10:08:14AM +0200, Bastian Krause wrote: > On 6/19/20 9:51 AM, Mircea Ciocan wrote: > > I have some configuration files that are package independent, but board > > depended, is there a solution to add them in bulk to the root filesyste= m. > >=20 > > 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. > >=20 > > 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 ? Create another package for those files. That's what we did at work in our BSPs. > Only files that are installed by an enabled package using > install_alternative(_tree) [1][2] are taken from projectroot. >=20 > 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]. I would suggest `ptxdist newpackage file` which seems to be the template for exactly that usecase. Of course you could go with every other template and adapt it or create a package from scratch, but the 'file' template gives you a very simple .in rule and a .make rule with just the targetinstall stage active, you don't need more to just install some files to the target. Greets Alex --=20 /"\ ASCII RIBBON | =BBWith the first link, the chain is forged. The first \ / CAMPAIGN | speech censured, the first thought forbidden, the X AGAINST | first freedom denied, chains us all irrevocably.=AB / \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie) --7wnfyck2cl4psirl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwo7muQJjlc+Prwj6NK3NAHIhXMYFAl7sofUACgkQNK3NAHIh XMb++xAAt7BKnoWDiVWQriij7FkAcT98RCih5GGAWiR5vx5TLS8p4LBiNSGz46Dn 1KVMJlAD+baruJqeq/8uhnYZmHIL1PlAkalaIT5f3J01Zw/7DIq3Vi1wXS1xBmXS mrp2cwtINJJMjzjlHHtvXMvjf3IftRuHcP4F9KNOKw6K7VD0pOSOix8GHfgUYcSa I3so1OHolgWbffz6dPISj3Lzwlr/2wrNLNfptrDbYdm+dm5YennivmPDLECZSJ+F lJmixqkZ0rLhXXHiSL8bb94v7K/lFgmOL/KtAb156iAdLWWSe0EHQGA+10RtkK8U ahf4+OGl368s1rCvv61SlJ4EaY/tR+UUQPqNgZWUdvVcOCWJ4WxvnXObEQVSFDz8 VIuDEBf96G5OZ8MZeIApp+m4d+fNxu94C8jRoYQ/JjkpZjCCDvmYIAEPlTHO0zV9 Nix9Vwdcu7pN9/Jjw0p21RfdA+e6ePFTd66bwInxiwQ6FquvTx21QSClVxvv/InV U0el/I22qKUA7FkTjnJLPegEL7mbk/0QosaJEXABT+kOhJlaRIwmmgHpej2FdXAW XHBxnDiFigp8WTpDfxKOjdDKSlQwjpOPzLA1bswSWWDynHkmsTgALPxy6PYVG+lG kf4uj5U8sbtXy25VXD9xRb+mRQ9eeBWh/XzgR2kd9Ko0CmacxYw= =ZltG -----END PGP SIGNATURE----- --7wnfyck2cl4psirl-- --===============0905028949== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de --===============0905028949==--