mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
ARM: 5939/1: ARM: Add option CMDLINE_FORCE to force usage of the in-kernel cmdline
Add an option to force usage of the in-kernel cmdline even if the boot loader passes another command string to the kernel. Useful if someone cannot or don't want to change the command-line options of the boot loader but is able to change the kernel. Signed-off-by: Alexander Holler <holler@ahsoftware.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
830703c766
commit
92d2040d78
2 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue