Skip to content

Commit 645e646

Browse files
roxellsuryasaimadhu
authored andcommitted
x86/Kconfig: Make CMDLINE_OVERRIDE depend on non-empty CMDLINE
When trying to boot an allmodconfig kernel that is built with KCONFIG_ALLCONFIG=$(pwd)/arch/x86/configs/x86_64_defconfig, it doesn't boot since CONFIG_CMDLINE_OVERRIDE gets enabled and that requires the user to pass the full cmdline to CONFIG_CMDLINE. Change so that CONFIG_CMDLINE_OVERRIDE gets set only if CONFIG_CMDLINE is set to something except an empty string. [ bp: touchup. ] Signed-off-by: Anders Roxell <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent f8788d8 commit 645e646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,7 @@ config CMDLINE
24182418

24192419
config CMDLINE_OVERRIDE
24202420
bool "Built-in command line overrides boot loader arguments"
2421-
depends on CMDLINE_BOOL
2421+
depends on CMDLINE_BOOL && CMDLINE != ""
24222422
---help---
24232423
Set this option to 'Y' to have the kernel ignore the boot loader
24242424
command line, and use ONLY the built-in command line.

0 commit comments

Comments
 (0)