diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-04-23 01:41:03 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-02 19:48:26 +0900 |
commit | d9a1dab65aa2d4de7244731c97c70491997225f2 (patch) | |
tree | 3a39b0fb7b5593d090578d55eb37982b66b4f963 /arch/sh/configs/magicpanelr2_defconfig | |
parent | 1da251c60def5df1475ed5e8670d7ba2b6a33983 (diff) | |
download | linux-stable-d9a1dab65aa2d4de7244731c97c70491997225f2.tar.gz linux-stable-d9a1dab65aa2d4de7244731c97c70491997225f2.tar.bz2 linux-stable-d9a1dab65aa2d4de7244731c97c70491997225f2.zip |
sh: Convert the last use of 'optional' property in Kconfig
The 'choice' statement is primarily used to exclusively select one
option, but the 'optional' property allows all entries to be disabled.
This feature is rarely used. In fact, it is only used in arch/sh/Kconfig
because the equivalent outcome can be achieved by inserting one more
entry.
The 'optional' property support will be removed from Kconfig.
This commit replaces the 'optional' property with a dummy option,
CMDLINE_FROM_BOOTLOADER, as seen in some other architectures.
Note:
The 'default CMDLINE_OVERWRITE' statement does not work as intended
in combination with 'optional'. If neither CONFIG_CMDLINE_OVERWRITE
nor CONFIG_CMDLINE_EXTEND is specified in a defconfig file, both of
them are disabled. This is a bug. To maintain the current behavior,
I added CONFIG_CMDLINE_FROM_BOOTLOADER=y to those defconfig files.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Diffstat (limited to 'arch/sh/configs/magicpanelr2_defconfig')
-rw-r--r-- | arch/sh/configs/magicpanelr2_defconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/configs/magicpanelr2_defconfig b/arch/sh/configs/magicpanelr2_defconfig index 52937f9cc2ab..8d443749550e 100644 --- a/arch/sh/configs/magicpanelr2_defconfig +++ b/arch/sh/configs/magicpanelr2_defconfig @@ -22,6 +22,7 @@ CONFIG_SH_PCLK_FREQ=24000000 CONFIG_SH_DMA=y CONFIG_SH_DMA_API=y CONFIG_HEARTBEAT=y +CONFIG_CMDLINE_FROM_BOOTLOADER=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y |