From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Winston Smith <smith_winston_6079@hotmail.com>,
"linux-config@vger.kernel.org" <linux-config@vger.kernel.org>
Subject: Re: Selectively turn on and off kernel configuration options
Date: Fri, 07 Feb 2014 19:33:48 -0500 [thread overview]
Message-ID: <52F57B6C.2080005@gmail.com> (raw)
In-Reply-To: <DUB123-W10058FEE75E433A65EDE96DA970@phx.gbl>
On 02/07/2014 08:47 AM, Winston Smith wrote:
> Hello,
>
> My apologies it this has been answered before.
>
> I am looking for a way to specifically turn on or off a single configuration option from the command line. There is the 'config' make target, but this will go through each and every configuration item. I am looking for something like
>
> make V=2 O=../linux-3.6.3-build CONFIG_OPTION=y config
>
> whereby make (or a config program) would then go and switch on or off or modularise all dependent configuration options (or warn if the attempted setting requires another configuration to be changed).
>
> I see there is scripts/kconfig/merge_config.sh. Is this the right way to go?
>
> Thanks,
> Winston --
I don't know of anything in the kernel itself, but a simple ex script
should work, try something like:
ex -s -c "%s/^.*CONFIG_OPTION.*$/CONFIG_OPTION=x/" -c "wq" .config
Replace CONFIG_OPTION with the option you want to set, and x with the
value. It should work for most of the options, but will have issues
with ones that are found in the name of another option (for example,
setting CONFIG_CMDLINE won't work because there are at least 2 other
options that start with CONFIG_CMDLINE_). It also won't handle
dependencies (you need to run make oldconfig to do that) or options in
optional sub-menus (the sub-menu needs to be already selected in the
config).
prev parent reply other threads:[~2014-02-08 0:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 13:47 Selectively turn on and off kernel configuration options Winston Smith
2014-02-08 0:33 ` Austin S. Hemmelgarn [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=52F57B6C.2080005@gmail.com \
--to=ahferroin7@gmail.com \
--cc=linux-config@vger.kernel.org \
--cc=smith_winston_6079@hotmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.