Skip to content

Commit da850d5

Browse files
author
Thomas Stenersen
committed
kconfig: Use depend on instead of select to avoid kconfig loop
Remove use of select to "force" enabling other configs in subsys/fs and subsys/net/l2. The forcing will cause infinite kconfig recursion. Signed-off-by: Thomas Stenersen <[email protected]>
1 parent 7967829 commit da850d5

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

drivers/flash/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ config FLASH_SHELL
4141
config FLASH_PAGE_LAYOUT
4242
bool "API for retrieving the layout of pages"
4343
depends on FLASH_HAS_PAGE_LAYOUT
44+
default y
4445
help
4546
Enables API for retrieving the layout of flash memory pages.
4647

samples/bluetooth/ipsp/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_BT=y
22
CONFIG_BT_DEBUG_LOG=y
33
CONFIG_BT_SMP=y
44
CONFIG_BT_PERIPHERAL=y
5+
CONFIG_BT_CENTRAL=y
56
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
67
CONFIG_BT_DEVICE_NAME="Test IPSP node"
78
CONFIG_NETWORKING=y

samples/bluetooth/ipsp/prj_dbg.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_BT=y
22
CONFIG_BT_DEBUG_LOG=y
33
CONFIG_BT_SMP=y
44
CONFIG_BT_PERIPHERAL=y
5+
CONFIG_BT_CENTRAL=y
56
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
67
CONFIG_BT_DEVICE_NAME="Test IPSP node"
78
CONFIG_NETWORKING=y

samples/bluetooth/ipsp/prj_zep1656.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_BT=y
22
CONFIG_BT_DEBUG_LOG=y
33
CONFIG_BT_SMP=y
44
CONFIG_BT_PERIPHERAL=y
5+
CONFIG_BT_CENTRAL=y
56
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
67
CONFIG_BT_DEVICE_NAME="Test IPSP node"
78
CONFIG_NETWORKING=y

subsys/fs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ config FAT_FILESYSTEM_ELM
3737

3838
config FILE_SYSTEM_NFFS
3939
bool "NFFS file system support"
40-
select FLASH_PAGE_LAYOUT
40+
depends on FLASH_PAGE_LAYOUT
4141
select FS_FLASH_STORAGE_PARTITION
4242
help
4343
Enables NFFS file system support.

subsys/net/l2/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ config NET_L2_DUMMY
1616
config NET_L2_BT
1717
bool "Enable Bluetooth support"
1818
depends on NET_IPV6
19-
select BT
20-
select BT_PERIPHERAL
21-
select BT_CENTRAL
22-
select BT_SMP
23-
select BT_L2CAP_DYNAMIC_CHANNEL
19+
depends on BT
20+
depends on BT_PERIPHERAL
21+
depends on BT_CENTRAL
22+
depends on BT_SMP
23+
depends on BT_L2CAP_DYNAMIC_CHANNEL
2424
select NET_6LO
2525
help
2626
Enable Bluetooth driver that send and receives IPv6 packets,

tests/net/all/prj.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ CONFIG_NET_L2_IEEE802154_SECURITY=y
5353
CONFIG_NET_L2_IEEE802154_SECURITY_CRYPTO_DEV_NAME="CRYPTO-DEV"
5454
CONFIG_NET_L2_DUMMY=y
5555
CONFIG_NET_L2_ETHERNET=y
56+
57+
CONFIG_BT=y
58+
CONFIG_BT_PERIPHERAL=y
59+
CONFIG_BT_CENTRAL=y
60+
CONFIG_BT_SMP=y
61+
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
5662
CONFIG_NET_L2_BT=y
5763
CONFIG_NET_L2_BT_ZEP1656=y
5864
CONFIG_NET_L2_BT_SEC_LEVEL=4

0 commit comments

Comments
 (0)