From 20f3e8b4fcb53ae6190ab466f1928937bc957ee8 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Fri, 12 Aug 2022 16:06:16 +0200 Subject: [PATCH] pkg/nimble: add feature ble_adv_ext To control the compilation of NimBLE modules `nimble_*_ext` that require the Bluetooth 5 Advertising Extension, the `ble_adv_ext` is introduced to indicate that a platform supports this feature. --- kconfigs/Kconfig.features | 6 ++++++ pkg/nimble/Makefile.dep | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/kconfigs/Kconfig.features b/kconfigs/Kconfig.features index 6f609fb197..e9756dd461 100644 --- a/kconfigs/Kconfig.features +++ b/kconfigs/Kconfig.features @@ -42,6 +42,12 @@ config HAS_BACKUP_RAM help Indicates that Backup RAM is supported. +config HAS_BLE_ADV_EXT + bool + help + Indicates the current platform supports Bluetooth 5 Advertising + Extension + config HAS_BLE_NIMBLE bool help diff --git a/pkg/nimble/Makefile.dep b/pkg/nimble/Makefile.dep index ace868e962..305bab9c6a 100644 --- a/pkg/nimble/Makefile.dep +++ b/pkg/nimble/Makefile.dep @@ -65,6 +65,10 @@ ifneq (,$(filter nimble_addr,$(USEMODULE))) USEMODULE += bluetil_addr endif +ifneq (,$(filter nimble_adv_ext,$(USEMODULE))) + FEATURES_REQUIRED += ble_adv_ext +endif + ifneq (,$(filter nimble_autoadv,$(USEMODULE))) USEMODULE += bluetil_ad USEMODULE += bluetil_addr