From 03153acb1a8bd29e40b5f5e53f7cf60c761321f7 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Mon, 1 Jul 2019 16:44:05 +0200 Subject: [PATCH] ble/softdevice: add ble_nordic_softdevice feature The softdevice is only verified to be working on nrf52832-based boards. This feature prevents the softdevice from being build for other, similar targets (e.g. nrf52840-based boards). --- Makefile.dep | 1 + boards/acd52832/Makefile.features | 1 + boards/common/nrf52/Makefile.nrf52832.features | 2 ++ boards/nrf52832-mdk/Makefile.features | 1 + boards/nrf52dk/Makefile.features | 1 + boards/ruuvitag/Makefile.features | 1 + boards/thingy52/Makefile.features | 1 + 7 files changed, 8 insertions(+) create mode 100644 boards/common/nrf52/Makefile.nrf52832.features diff --git a/Makefile.dep b/Makefile.dep index 900e87685e..36a447cf25 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -72,6 +72,7 @@ ifneq (,$(filter uhcpc,$(USEMODULE))) endif ifneq (,$(filter nordic_softdevice_ble,$(USEPKG))) + FEATURES_REQUIRED += ble_nordic_softdevice USEMODULE += softdevice_handler USEMODULE += ble_common USEMODULE += ble_6lowpan diff --git a/boards/acd52832/Makefile.features b/boards/acd52832/Makefile.features index cf9d2b4ceb..a489a2334b 100644 --- a/boards/acd52832/Makefile.features +++ b/boards/acd52832/Makefile.features @@ -3,4 +3,5 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/common/nrf52/Makefile.nrf52832.features b/boards/common/nrf52/Makefile.nrf52832.features new file mode 100644 index 0000000000..1dd6a0ba9e --- /dev/null +++ b/boards/common/nrf52/Makefile.nrf52832.features @@ -0,0 +1,2 @@ +# Nordic SoftDevice support in RIOT is verified for all nrf52832-based boards +FEATURES_PROVIDED += ble_nordic_softdevice diff --git a/boards/nrf52832-mdk/Makefile.features b/boards/nrf52832-mdk/Makefile.features index d3843849b0..ebfd151268 100644 --- a/boards/nrf52832-mdk/Makefile.features +++ b/boards/nrf52832-mdk/Makefile.features @@ -1,4 +1,5 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_uart +include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/nrf52dk/Makefile.features b/boards/nrf52dk/Makefile.features index b99cfa472a..3c8d0f7503 100644 --- a/boards/nrf52dk/Makefile.features +++ b/boards/nrf52dk/Makefile.features @@ -1 +1,2 @@ +include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.features diff --git a/boards/ruuvitag/Makefile.features b/boards/ruuvitag/Makefile.features index e201287c34..a50e192646 100644 --- a/boards/ruuvitag/Makefile.features +++ b/boards/ruuvitag/Makefile.features @@ -2,4 +2,5 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/thingy52/Makefile.features b/boards/thingy52/Makefile.features index d3843849b0..ebfd151268 100644 --- a/boards/thingy52/Makefile.features +++ b/boards/thingy52/Makefile.features @@ -1,4 +1,5 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_uart +include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features include $(RIOTBOARD)/common/nrf52/Makefile.features