From 25f193f0b9d7d79d49d3007314f20772cb050ea8 Mon Sep 17 00:00:00 2001 From: Alexander Holler Date: Tue, 16 Feb 2010 19:04:53 +0100 Subject: [PATCH] --- yaml --- r: 198552 b: refs/heads/master c: 92d2040d78f662f634efce7a5106bbed70b8708b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/Kconfig | 11 +++++++++++ trunk/arch/arm/kernel/setup.c | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3e3d01f98edb..50f65f2bc3ea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 830703c766ed49bc740321df55a11d19154f95d5 +refs/heads/master: 92d2040d78f662f634efce7a5106bbed70b8708b diff --git a/trunk/arch/arm/Kconfig b/trunk/arch/arm/Kconfig index 2d70cece2ea2..8555bd7d7845 100644 --- a/trunk/arch/arm/Kconfig +++ b/trunk/arch/arm/Kconfig @@ -1419,6 +1419,17 @@ 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 CMDLINE_FORCE + bool "Always use the default kernel command string" + depends on CMDLINE != "" + help + Always use the default kernel command string, even if the boot + loader passes other arguments to the kernel. + This is useful if you cannot or don't want to change the + command-line options your boot loader passes to the kernel. + + If unsure, say N. + config XIP_KERNEL bool "Kernel Execute-In-Place from ROM" depends on !ZBOOT_ROM diff --git a/trunk/arch/arm/kernel/setup.c b/trunk/arch/arm/kernel/setup.c index c91c77b54dea..122d999bdc7c 100644 --- a/trunk/arch/arm/kernel/setup.c +++ b/trunk/arch/arm/kernel/setup.c @@ -593,6 +593,7 @@ static int __init parse_tag_revision(const struct tag *tag) __tagtable(ATAG_REVISION, parse_tag_revision); +#ifndef CONFIG_CMDLINE_FORCE static int __init parse_tag_cmdline(const struct tag *tag) { strlcpy(default_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE); @@ -600,6 +601,7 @@ static int __init parse_tag_cmdline(const struct tag *tag) } __tagtable(ATAG_CMDLINE, parse_tag_cmdline); +#endif /* CONFIG_CMDLINE_FORCE */ /* * Scan the tag table for this tag, and call its parse function.