Commit bbd1dca4 authored by Ben Collins's avatar Ben Collins

[SPARC64]: Add option to define default command line to kernel, ala PPC.

parent 92bb6550
...@@ -489,6 +489,22 @@ config WATCHDOG_RIO ...@@ -489,6 +489,22 @@ config WATCHDOG_RIO
machines. The watchdog timeout period is normally one minute but machines. The watchdog timeout period is normally one minute but
can be changed with a boot-time parameter. can be changed with a boot-time parameter.
config CMDLINE_BOOL
bool "Default bootloader kernel arguments"
config CMDLINE
string "Initial kernel command string"
depends on CMDLINE_BOOL
default "console=ttyS0,9600 root=/dev/sda1"
help
Say Y here if you want to be able to pass default arguments to
the kernel. This will be overridden by the bootloader, if you
use one (such as SILO). This is most useful if you want to boot
a kernel from TFTP, and want default options to be available
with having them passed on the command line.
NOTE: This option WILL override the PROM bootargs setting!
endmenu endmenu
source "drivers/base/Kconfig" source "drivers/base/Kconfig"
......
...@@ -21,6 +21,10 @@ struct { ...@@ -21,6 +21,10 @@ struct {
char bootstr_buf[BARG_LEN]; char bootstr_buf[BARG_LEN];
} bootstr_info = { } bootstr_info = {
.bootstr_len = BARG_LEN, .bootstr_len = BARG_LEN,
#ifdef CONFIG_CMDLINE
.bootstr_valid = 1,
.bootstr_buf = CONFIG_CMDLINE,
#endif
}; };
char * __init char * __init
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment