From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] auto-detecting toolchain metadata?
Date: Tue, 22 Nov 2016 17:21:57 +0100 [thread overview]
Message-ID: <20161122172157.4814ab48@free-electrons.com> (raw)
In-Reply-To: <c42f58d1-687f-803b-08df-a039037003c9@mentor.com>
Hello,
On Tue, 22 Nov 2016 08:12:34 -0800, Hollis Blanchard wrote:
> OK, how can I use defconfig fragments? I can't find mention of it in the
> manual or the top-level Makefile.
Easy:
cat frag1 frag2 frag3 > defconfig
And that's it. There's nothing fancy in fragments, it's just a fragment
of defconfig, and you create the real defconfig by concatenating
fragments.
> I do see a little information about using config fragments for
> Kconfig-based packages, and that says it breaks savedefconfig. So if I
> can use fragments for the BR defconfig, how could I update the defconfig
> in the future?
Fragments are hand-written, by extracting data from a defconfig.
Typically, with the above example, you generate your defconfig from
frag1, frag2 and frag3. You then run "make menuconfig", which updates
your configuration, and run "make savedefconfig", which generates a new
defconfig.
It is impossible for Buildroot to know in which fragment should a given
change be propagated. So what I typically do is "diff -u defconfig.old
defconfig", and then propagate the change to the appropriate fragment.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
prev parent reply other threads:[~2016-11-22 16:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 18:39 [Buildroot] auto-detecting toolchain metadata? Hollis Blanchard
2016-11-01 18:46 ` Yann E. MORIN
2016-11-01 20:27 ` Thomas Petazzoni
2016-11-22 1:04 ` Hollis Blanchard
2016-11-22 8:29 ` Thomas Petazzoni
2016-11-22 15:44 ` Hollis Blanchard
2016-11-22 15:49 ` Thomas Petazzoni
2016-11-22 16:12 ` Hollis Blanchard
2016-11-22 16:21 ` Thomas Petazzoni [this message]
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=20161122172157.4814ab48@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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