Skip to content

Commit 6ded8a2

Browse files
paulmckrcumhiramat
authored andcommitted
bootconfig: Default BOOT_CONFIG_FORCE to y if BOOT_CONFIG_EMBED
When a kernel is built with CONFIG_BOOT_CONFIG_EMBED=y, the intention will normally be to unconditionally provide the specified kernel-boot arguments to the kernel, as opposed to requiring a separately provided bootconfig parameter. Therefore, make the BOOT_CONFIG_FORCE Kconfig option default to y in kernels built with CONFIG_BOOT_CONFIG_EMBED=y. The old semantics may be obtained by manually overriding this default. Link: https://lore.kernel.org/all/20230107162202.GA4028633@paulmck-ThinkPad-P17-Gen-1/ Suggested-by: Masami Hiramatsu <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
1 parent b743852 commit 6ded8a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,7 @@ config BOOT_CONFIG
13831383
config BOOT_CONFIG_FORCE
13841384
bool "Force unconditional bootconfig processing"
13851385
depends on BOOT_CONFIG
1386+
default y if BOOT_CONFIG_EMBED
13861387
help
13871388
With this Kconfig option set, BOOT_CONFIG processing is carried
13881389
out even when the "bootconfig" kernel-boot parameter is omitted.

0 commit comments

Comments
 (0)