diff --git a/cpu/native/socket_zep/Kconfig b/cpu/native/socket_zep/Kconfig new file mode 100644 index 0000000000..4b3d70d305 --- /dev/null +++ b/cpu/native/socket_zep/Kconfig @@ -0,0 +1,17 @@ +menuconfig MODULE_SOCKET_ZEP + bool "Socket-based ZEP" + depends on CPU_MODEL_NATIVE + depends on TEST_KCONFIG + select MODULE_IOLIST + select MODULE_CHECKSUM + select MODULE_RANDOM + select MODULE_IEEE802154 + help + UDP socket-based IEEE 802.15.4 device over ZEP + +config MODULE_SOCKET_ZEP_HELLO + bool "Send a dummy HELLO packet on startup" + depends on MODULE_SOCKET_ZEP + help + Say y to send a dummy HELLO packet on startup. This is used to make + dispatchers aware of the node. diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 37738a53c5..0634122267 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -18,6 +18,7 @@ rsource "ncv7356/Kconfig" rsource "pn532/Kconfig" rsource "rn2xx3/Kconfig" rsource "slipdev/Kconfig" +rsource "$(RIOTCPU)/native/socket_zep/Kconfig" rsource "sx126x/Kconfig" rsource "sx127x/Kconfig" rsource "tja1042/Kconfig" diff --git a/tests/ieee802154_hal/Makefile b/tests/ieee802154_hal/Makefile index e2b7e95b3d..24fa7d1e5e 100644 --- a/tests/ieee802154_hal/Makefile +++ b/tests/ieee802154_hal/Makefile @@ -24,6 +24,10 @@ ifeq ($(BOARD), native) ZEP_PORT_BASE ?= 17754 TERMFLAGS += -z [::1]:$(ZEP_PORT_BASE) USEMODULE += socket_zep + # the same for Kconfig + ifeq (1,$(TEST_KCONFIG)) + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native + endif endif USEMODULE += od diff --git a/tests/ieee802154_hal/app.config.test.native b/tests/ieee802154_hal/app.config.test.native new file mode 100644 index 0000000000..3d0f40860f --- /dev/null +++ b/tests/ieee802154_hal/app.config.test.native @@ -0,0 +1,6 @@ +CONFIG_MODULE_SOCKET_ZEP=y + +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y