From: Sam Ravnborg <sam@ravnborg.org>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: linux-kbuild <linux-kbuild@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] kconfig: introduce K= support
Date: Tue, 6 May 2008 06:34:39 +0200 [thread overview]
Message-ID: <20080506043439.GA13366@uranus.ravnborg.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0805060438220.30555@scrub.home>
On Tue, May 06, 2008 at 04:55:55AM +0200, Roman Zippel wrote:
> Hi,
>
> On Sun, 4 May 2008, Sam Ravnborg wrote:
>
> Below is patch which adds a library function to set the default values in
> a much simpler way.
> The behaviour is slightly different, now it's closer to generating a
> .config with all possible symbols set to some value and using that to
> generate the final config. It has the advantage of not being as dependend
> on the order of the symbols, e.g. with allmodconfig this sets a few more
> symbols to 'm'.
Thanks. I will rework the patch to use this function.
>
> > +# An arch may use KBUILD_DEFCONFIG to specify defconfig file
> > +# fallback to arch/$ARCH/defconfig
> > +defconfig-file := $(if $(KBUILD_DEFCONFIG), \
> > + arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG), \
> > + arch/$(SRCARCH)/defconfig)
> > +defconfig-file := $(strip $(defconfig-file))
>
> init/Kconfig has a DEFCONFIG_LIST which is intended to be used for this.
The plan is to drop arch/$(SRCARCH)/defconfig and solely rely
on KBUILD_DEFCONFIG.
And I see KBUILD_DEFCONFIG thus for a "make defconfig" the
DEFCONFIG_LIST becomes unused.
But I guess your point is that we should dropt KBUILD_DEFCONFIG
entirely and rely on DEFCONFIG_LIST instead.
I will try it out.
>
> > + if (ac < 2) {
> > + usage();
> > + exit(1);
> > + }
> > + if (strcmp(av[1], "allnoconfig") == 0)
> > + default_value = set_no;
> > + else if (strcmp(av[1], "allyesconfig") == 0)
> > + default_value = set_yes;
> > + else if (strcmp(av[1], "allmodconfig") == 0)
> > + default_value = set_mod;
> > + else if (strcmp(av[1], "alldefconfig") == 0)
> > + default_value = set_default;
> > + else if (strcmp(av[1], "randconfig") == 0) {
> > + default_value = set_random;
> > + srand(time(NULL));
> > + } else {
> > + usage();
> > + exit(1);
> > + }
> > + if (strcmp(av[2], "-b") == 0) {
> > + config_file = av[3];
> > + kconfig_file = av[4];
> > + } else {
> > + kconfig_file = av[2];
> > + }
>
> Even if it has only a single option, please keep using getopt().
OK.
Thanks for your feedback.
PS. I will post the updated patches in the weekend. Not that they
are difficult but I'm on the way out of the door for a few days
travelling.
Sam
next prev parent reply other threads:[~2008-05-06 4:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 20:47 kconfig frontend updates Sam Ravnborg
2008-05-02 20:49 ` [PATCH] kconfig: add support for K=file sam
2008-05-02 20:49 ` [PATCH] kconfig: drop all*config support in conf.c sam
2008-05-02 20:49 ` [PATCH] kconfig: conf is less chatty sam
2008-05-02 20:49 ` [PATCH] kconfig: .gitignore aconf sam
2008-05-02 20:49 ` [PATCH] kconfig: kill the warning "trying to assign nonexistent symbol" sam
2008-05-02 21:01 ` kconfig frontend updates Sam Ravnborg
2008-05-04 18:57 ` Sam Ravnborg
2008-05-04 18:59 ` [PATCH 1/2] kconfig: introduce K= support Sam Ravnborg
2008-05-06 2:55 ` Roman Zippel
2008-05-06 4:34 ` Sam Ravnborg [this message]
2008-05-04 18:59 ` [PATCH 2/2] kconfig: make oldconfig less chatty and clean up conf.c Sam Ravnborg
2008-05-06 3:08 ` Roman Zippel
2008-05-06 4:37 ` Sam Ravnborg
2008-05-06 9:03 ` Jan Engelhardt
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=20080506043439.GA13366@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zippel@linux-m68k.org \
/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
all inboxes | Powered by JetHome®