net: ieee802154: Add common config for all 802154 L2s

Introduce a common config for all 802.15.4 based L2 implementations.
This way, any custom 15.4 L2 implementation will be able to
automatically enable use 15.4 driver, w/o a need to modify the actual
Kconfig.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2021-11-18 16:51:38 +01:00 committed by Anas Nashif
parent 4648b63661
commit 9a319226f8
4 changed files with 8 additions and 1 deletions

View file

@ -8,7 +8,7 @@
#
menuconfig IEEE802154
bool "IEEE 802.15.4 drivers options"
default y if NET_L2_IEEE802154 || NET_L2_OPENTHREAD
default y if NET_L2_PHY_IEEE802154
if IEEE802154

View file

@ -72,6 +72,11 @@ source "subsys/net/l2/ethernet/Kconfig"
source "subsys/net/l2/ppp/Kconfig"
config NET_L2_PHY_IEEE802154
bool
help
A common config for all IEEE 802.15.4 based L2 implementations.
source "subsys/net/l2/ieee802154/Kconfig"
source "subsys/net/l2/openthread/Kconfig"

View file

@ -3,6 +3,7 @@
menuconfig NET_L2_IEEE802154
bool "Enable IEEE 802.15.4 Radio"
select NET_L2_PHY_IEEE802154
help
Add support for low rate WPAN IEEE 802.15.4 technology.

View file

@ -12,6 +12,7 @@ config OPENTHREAD_SECURITY_INTERNAL
menuconfig NET_L2_OPENTHREAD
bool "OpenThread L2"
depends on NETWORKING
select NET_L2_PHY_IEEE802154
select SETTINGS
select FLASH