mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: Revert "arm64: Drop support for CMDLINE_EXTEND"
This reverts commitcae118b6ac. Upstream removed the support for CMDLINE_EXTEND on arm64 due to some inconsistencies in the way command-line was assembled together. However, the patch inadvertently deleted same config option from the android tree which was first introduced by commit056f12819b("ANDROID: arm64: copy CONFIG_CMDLINE_EXTEND from ARM") back in 2014. Upstream is currently working on a solution to fix the divergence by allowing prepend and append functionalities. While we wait for the new series to land let's bring back CMDLINE_EXTEND option for android, so arm64 can actually use of the functionality provided byd9a2a3f2c2("ANDROID: of: Support CONFIG_CMDLINE_EXTEND config option"). Bug: 120440972 Bug: 261894961 Change-Id: I3b7fd55e95af49b64f284582dee40392074d32f1 Signed-off-by: Carlos Llamas <cmllamas@google.com> Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
committed by
Elliot Berman
parent
8689a20671
commit
0778b7e91c
@@ -2195,6 +2195,12 @@ config CMDLINE_FROM_BOOTLOADER
|
||||
the boot loader doesn't provide any, the default kernel command
|
||||
string provided in CMDLINE will be used.
|
||||
|
||||
config CMDLINE_EXTEND
|
||||
bool "Extend bootloader kernel arguments"
|
||||
help
|
||||
The command-line arguments provided by the boot loader will be
|
||||
appended to the default kernel command string.
|
||||
|
||||
config CMDLINE_FORCE
|
||||
bool "Always use the default kernel command string"
|
||||
help
|
||||
|
||||
@@ -287,8 +287,11 @@ static __init void parse_cmdline(void)
|
||||
{
|
||||
const u8 *prop = get_bootargs_cmdline();
|
||||
|
||||
if (IS_ENABLED(CONFIG_CMDLINE_FORCE) || !prop)
|
||||
if (IS_ENABLED(CONFIG_CMDLINE_EXTEND) ||
|
||||
IS_ENABLED(CONFIG_CMDLINE_FORCE) ||
|
||||
!prop) {
|
||||
__parse_cmdline(CONFIG_CMDLINE, true);
|
||||
}
|
||||
|
||||
if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && prop)
|
||||
__parse_cmdline(prop, true);
|
||||
|
||||
Reference in New Issue
Block a user