x86, bootup: add built-in kernel command line for x86 (v2)
authorTim Bird <tim.bird@am.sony.com>
Tue, 12 Aug 2008 19:52:36 +0000 (12:52 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 14:10:37 +0000 (16:10 +0200)
commit516cbf3730c49739629d66313b20bdc50c98aa2c
tree07d481c928cb95e3db5de1cfa6062c572153706a
parentb635acec48bcaa9183fcbf4e3955616b0d4119b5
x86, bootup: add built-in kernel command line for x86 (v2)

Allow x86 to support a built-in kernel command line.  The built-in
command line can override the one provided by the boot loader, for
those cases where the boot loader is broken or it is difficult
to change the command line in the the boot loader.

H. Peter Anvin wrote:
> Ingo Molnar wrote:
>> Best would be to make it really apparent in the code that nothing
>> changes if this config option is not set. Preferably there should be
>> no extra code at all in that case.
>>
>
> I would like to see this:
[...Nested ifdefs...]

OK. This version changes absolutely nothing if CONFIG_CMDLINE_BOOL is not
set (the default).  Also, no space is appended even when CONFIG_CMDLINE_BOOL
is set, but the builtin string is empty.  This is less sloppy all the way
around, IMHO.

Note that I use the same option names as on other arches for
this feature.

[ mingo@elte.hu: build fix ]

Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig
arch/x86/kernel/setup.c