]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
m68k: support configure time command line for MMU m68k
authorGreg Ungerer <gerg@uclinux.org>
Wed, 19 Oct 2011 01:46:03 +0000 (11:46 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Thu, 24 Nov 2011 22:54:59 +0000 (08:54 +1000)
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: Greg Ungerer <gerg@uclinux.org>
arch/m68k/Kconfig.debug
arch/m68k/kernel/setup_mm.c

index 2bdb1b01115c24f93a21e9e095918a3d44ab89ea..af4fd5f8f8d5c9852359a47f9657bf32c395a2f9 100644 (file)
@@ -2,6 +2,14 @@ menu "Kernel hacking"
 
 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
 
 config FULLDEBUG
@@ -15,14 +23,6 @@ config HIGHPROFILE
        help
          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
        bool "Suppress Kernel BUG Messages"
        help
index c3b45061dd08d3f6981f3c19e0867f5d16ee62fe..55f8f5049f6856a239ba3a74f09af5bff714f960 100644 (file)
@@ -258,6 +258,10 @@ void __init setup_arch(char **cmdline_p)
        init_mm.end_data = (unsigned long)_edata;
        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;
        memcpy(boot_command_line, *cmdline_p, CL_SIZE);