Arve Hjønnevåg
fbe98bb9ed
kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on
The defconfig and Kconfig combination below, which is based on 3.10-rc4
Kconfigs, resulted in several options getting set to "m" instead of "y".
defconfig.choice:
---8<---
CONFIG_MODULES=y
CONFIG_USB_ZERO=y
---8<---
Kconfig.choice:
---8<---
menuconfig MODULES
bool "Enable loadable module support"
config CONFIGFS_FS
tristate "Userspace-driven configuration filesystem"
config OCFS2_FS
tristate "OCFS2 file system support"
depends on CONFIGFS_FS
select CRC32
config USB_LIBCOMPOSITE
tristate
select CONFIGFS_FS
choice
tristate "USB Gadget Drivers"
default USB_ETH
config USB_ZERO
tristate "Gadget Zero (DEVELOPMENT)"
select USB_LIBCOMPOSITE
config USB_ETH
tristate "Ethernet Gadget (with CDC Ethernet support)"
select USB_LIBCOMPOSITE
endchoice
config CRC32
tristate "CRC32/CRC32c functions"
default y
choice
prompt "CRC32 implementation"
depends on CRC32
default CRC32_SLICEBY8
config CRC32_SLICEBY8
bool "Slice by 8 bytes"
endchoice
---8<---
$ scripts/kconfig/conf --defconfig=defconfig.choice Kconfig.choice
would result in:
.config:
---8<---
CONFIG_MODULES=y
CONFIG_CONFIGFS_FS=m
CONFIG_USB_LIBCOMPOSITE=m
CONFIG_USB_ZERO=m
CONFIG_CRC32=y
CONFIG_CRC32_SLICEBY8=y
---8<---
when the expected result would be:
.config:
---8<---
CONFIG_MODULES=y
CONFIG_CONFIGFS_FS=y
CONFIG_USB_LIBCOMPOSITE=y
CONFIG_USB_ZERO=y
CONFIG_CRC32=y
CONFIG_CRC32_SLICEBY8=y
---8<---
Signed-off-by: Arve Hjønnevåg <arve@android.com>
[yann.morin.1998@free.fr: add the resulting .config to commit log,
remove unneeded USB_GADGET from the defconfig]
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2013-06-16 11:00:30 +02:00
..
2013-04-05 12:22:58 -06:00
2013-02-27 12:27:18 -08:00
2012-11-21 15:53:22 +00:00
2013-03-20 11:27:27 +10:30
2013-06-16 11:00:30 +02:00
2013-05-07 07:56:26 -07:00
2013-04-18 14:56:54 +02:00
2012-10-08 13:50:19 +10:30
2012-10-08 13:50:19 +10:30
2013-04-29 18:28:20 -07:00
2013-03-02 20:09:55 +00:00
2013-04-08 15:42:03 +02:00
2012-12-14 14:16:10 +01:00
2013-04-29 15:54:27 -07:00
2013-02-22 11:52:31 +01:00
2013-04-29 18:28:14 -07:00
2013-04-09 12:50:29 +02:00
2013-04-08 11:47:41 +02:00
2013-02-27 19:10:09 -08:00
2013-03-15 15:09:43 +10:30
2012-10-08 13:50:19 +10:30
2012-10-17 12:25:44 +01:00
2013-03-20 11:27:27 +10:30
2012-10-15 13:01:05 -07:00
2013-04-09 12:50:29 +02:00
2013-05-05 10:58:06 -07:00
2012-11-06 11:52:24 +10:30
2013-04-05 11:48:10 +10:30
2012-12-14 13:05:28 +10:30
2012-11-20 11:58:03 +01:00
2013-03-02 20:09:55 +00:00
2013-02-22 14:18:30 +01:00
2013-01-25 16:55:36 +10:30
2012-11-04 10:31:16 +00:00
2013-02-14 15:04:41 +01:00
2013-03-27 14:22:03 +01:00