bootconfig: Default BOOT_CONFIG_FORCE to y if BOOT_CONFIG_EMBED
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 21 Feb 2023 23:27:49 +0000 (08:27 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 21 Feb 2023 23:27:49 +0000 (08:27 +0900)
commit6ded8a28ed80e4cc666f1a3f999b1c7e6f011cdd
tree1c76ee5e53ec8dfdb68e3f10a819ae0cc5a776d0
parentb743852ccc1d9630bb07dc65ef185dab7e2984f6
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 <mhiramat@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
init/Kconfig