Skip to content
Browse files

Ignore bootloader passed args

Added kernel config option to ignore kernel
command line args passed by the bootloader.
  • Loading branch information...
1 parent 3017556 commit c1cc85358ed0071fb2264b2c90ab29119916bec6 @dalingrin committed Apr 12, 2011
Showing with 9 additions and 0 deletions.
  1. +7 −0 arch/arm/Kconfig
  2. +2 −0 arch/arm/kernel/setup.c
View
7 arch/arm/Kconfig
@@ -1291,6 +1291,13 @@ config CMDLINE
time by entering them here. As a minimum, you should specify the
memory size and the root device (e.g., mem=64M root=/dev/nfs).
+config IGNORE_BOOT_ARGS
+ bool "Ignore bootloader command line args"
+ default n
+ help
+ Ignore the command line args passed from the bootloader and use
+ default command line args defined in CONFIG_CMDLINE
+
config XIP_KERNEL
bool "Kernel Execute-In-Place from ROM"
depends on !ZBOOT_ROM
View
2 arch/arm/kernel/setup.c
@@ -630,7 +630,9 @@ __tagtable(ATAG_REVISION, parse_tag_revision);
static int __init parse_tag_cmdline(const struct tag *tag)
{
+#ifndef CONFIG_IGNORE_BOOT_ARGS
strlcpy(default_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE);
+#endif
return 0;
}

0 comments on commit c1cc853

Please sign in to comment.
Something went wrong with that request. Please try again.