mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de, Mircea Ciocan <m.ciocan@ppc-ag.de>
Subject: Re: [ptxdist] Adding package independent files in the root filesystem
Date: Fri, 19 Jun 2020 10:08:14 +0200	[thread overview]
Message-ID: <d0b29c54-0afd-5cb6-9932-8e1b51b27d9e@pengutronix.de> (raw)
In-Reply-To: <9e96fc76-fd17-3223-a8d1-0c3a64c823d7@ppc-ag.de>


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

  reply	other threads:[~2020-06-19  8:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-19  7:51 Mircea Ciocan
2020-06-19  8:08 ` Bastian Krause [this message]
2020-06-19 11:31   ` Alexander Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d0b29c54-0afd-5cb6-9932-8e1b51b27d9e@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=m.ciocan@ppc-ag.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox