Commit d1db9120 authored by Greg Ungerer's avatar Greg Ungerer

m68k: support configure time command line for MMU m68k

The non-MMU builds of m68k allow a fixed kernel boot command line to
be configured at configure time. Allow this MMU builds as well.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent e87c09a8
...@@ -2,6 +2,14 @@ menu "Kernel hacking" ...@@ -2,6 +2,14 @@ menu "Kernel hacking"
source "lib/Kconfig.debug" source "lib/Kconfig.debug"
config BOOTPARAM
bool 'Compiled-in Kernel Boot Parameter'
config BOOTPARAM_STRING
string 'Kernel Boot Parameter'
default 'console=ttyS0,19200'
depends on BOOTPARAM
if !MMU if !MMU
config FULLDEBUG config FULLDEBUG
...@@ -15,14 +23,6 @@ config HIGHPROFILE ...@@ -15,14 +23,6 @@ config HIGHPROFILE
help help
Use a fast secondary clock to produce profiling information. Use a fast secondary clock to produce profiling information.
config BOOTPARAM
bool 'Compiled-in Kernel Boot Parameter'
config BOOTPARAM_STRING
string 'Kernel Boot Parameter'
default 'console=ttyS0,19200'
depends on BOOTPARAM
config NO_KERNEL_MSG config NO_KERNEL_MSG
bool "Suppress Kernel BUG Messages" bool "Suppress Kernel BUG Messages"
help help
......
...@@ -258,6 +258,10 @@ void __init setup_arch(char **cmdline_p) ...@@ -258,6 +258,10 @@ void __init setup_arch(char **cmdline_p)
init_mm.end_data = (unsigned long)_edata; init_mm.end_data = (unsigned long)_edata;
init_mm.brk = (unsigned long)_end; init_mm.brk = (unsigned long)_end;
#if defined(CONFIG_BOOTPARAM)
strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
m68k_command_line[CL_SIZE - 1] = 0;
#endif /* CONFIG_BOOTPARAM */
*cmdline_p = m68k_command_line; *cmdline_p = m68k_command_line;
memcpy(boot_command_line, *cmdline_p, CL_SIZE); memcpy(boot_command_line, *cmdline_p, CL_SIZE);
......
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