* Selectively turn on and off kernel configuration options
@ 2014-02-07 13:47 Winston Smith
2014-02-08 0:33 ` Austin S. Hemmelgarn
0 siblings, 1 reply; 2+ messages in thread
From: Winston Smith @ 2014-02-07 13:47 UTC (permalink / raw)
To: linux-config@vger.kernel.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Selectively turn on and off kernel configuration options
2014-02-07 13:47 Selectively turn on and off kernel configuration options Winston Smith
@ 2014-02-08 0:33 ` Austin S. Hemmelgarn
0 siblings, 0 replies; 2+ messages in thread
From: Austin S. Hemmelgarn @ 2014-02-08 0:33 UTC (permalink / raw)
To: Winston Smith, linux-config@vger.kernel.org
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).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-08 0:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 13:47 Selectively turn on and off kernel configuration options Winston Smith
2014-02-08 0:33 ` Austin S. Hemmelgarn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).