From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1 of 3] linux: add linux-update-config and linux-update-defconfig targets
Date: Fri, 30 Sep 2011 21:56:32 +0200 [thread overview]
Message-ID: <20110930215632.31a189f7@skate> (raw)
In-Reply-To: <CAAXf6LV-4mRjrR58E2RJ2pEEocH5b08n_9YdEi8pp8U9fqjjRw@mail.gmail.com>
Le Wed, 28 Sep 2011 08:08:12 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :
> > ?* Whether this configuration update shouldn't be done automatically
> > ? when one does "make linux-menuconfig" or "make linux-xconfig".
> > ? People have often found strange to loose their configuration changes
> > ? in Linux/Busybox/uClibc when they do a make clean.
>
> Such a feature would be good indeed. But, some remarks:
> * hooking it to menuconfig/xconfig wouldn't cover the case where the
> .config is manually changed. This different behavior may be confusing
> as well.
Correct, even though manually changing the .config is a bit of a corner
case.
> What if we execute the automatic saving just before the build step?
> This of course requires to start building; you cannot just change the
> config and hope that it is copied automatically. In that last case, a
> manual linux-update-config would be necessary.
> Is this acceptable?
Yes, sounds good.
> * previously you raised the point of busybox-update / uclibc-update
> potentially overwriting the standard buildroot files. If we do not
> want this and we want automatic saving of custom configs, then we need
> to be able to differentiate between custom and default configuration
> files.
> On the other hand, if there are users that purposefully put their
> project's configuration in the default files (overwriting them), then
> they would not be able to benefit from the automatic saving, and
> possibly not from -update-config either. But I'm not sure if we ought
> to support such practice...
Maybe we can change a bit the selection of the Busybox/uClibc
configuration file. We could do something like:
[X] Use default Busybox configuration file
in which case Busybox would use the default configuration file
integrated in Buildroot.
If this option is disabled:
[ ] Use default Busybox configuration file
(/some/path/busybox.config) Path to Busybox config file
then Buildroot uses the specified configuration file.
With this change, busybox-config-update would output an error if the
default config file is used and would work properly if a specific
config file is given.
What do you think?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2011-09-30 19:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 19:21 [Buildroot] [PATCH 0 of 3] Add/rename *-update-config targets Thomas De Schampheleire
2011-09-27 19:21 ` [Buildroot] [PATCH 1 of 3] linux: add linux-update-config and linux-update-defconfig targets Thomas De Schampheleire
2011-09-27 20:46 ` Thomas Petazzoni
2011-09-28 6:08 ` Thomas De Schampheleire
2011-09-30 19:56 ` Thomas Petazzoni [this message]
2011-09-30 20:02 ` Thomas De Schampheleire
2011-09-27 19:21 ` [Buildroot] [PATCH 2 of 3] busybox: rename busybox-update to busybox-update-config Thomas De Schampheleire
2011-09-27 20:46 ` Thomas Petazzoni
2011-09-27 19:21 ` [Buildroot] [PATCH 3 of 3] uclibc: rename uclibc-update to uclibc-update-config Thomas De Schampheleire
2011-09-27 20:46 ` Thomas Petazzoni
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=20110930215632.31a189f7@skate \
--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