[PATCH] ARM: Allow for kernel command line concatenation
Nick Bowler
nbowler at elliptictech.com
Thu Apr 7 09:18:10 EDT 2011
On 2011-04-07 10:17 +0200, oskar.andero at sonyericsson.com wrote:
> From: Victor Boivie <victor.boivie at sonyericsson.com>
>
> This patch allows the provided CONFIG_CMDLINE to be concatenated
> with the one provided by the boot loader. This is useful to
> merge the static values defined in CONFIG_CMDLINE with the
> boot loader's (possibly) more dynamic values, such as startup
> reasons and more.
This sounds very useful! One comment below.
> Signed-off-by: Victor Boivie <victor.boivie at sonyericsson.com>
> Reviewed-by: Bjorn Andersson <bjorn.andersson at sonyericsson.com>
> Signed-off-by: Oskar Andero <oskar.andero at sonyericsson.com>
> ---
> arch/arm/Kconfig | 21 +++++++++++++++++++--
> arch/arm/kernel/setup.c | 9 ++++++++-
> 2 files changed, 27 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
[...]
> +config CMDLINE_EXTEND
> + bool "Extend bootloader kernel arguments"
> + depends on CMDLINE != ""
> + help
> + The default kernel command string will be concatenated with the
> + arguments provided by the boot loader.
Since concatenation is not commutative, this help text should describe
exactly the order in which the arguments are concatenated. How about
this instead:
The command-line arguments provided by the boot loader will be
appended to the default kernel command string.
--
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
More information about the linux-arm-kernel
mailing list