From db183e653c9b54875c1205a2d9f69cfbf0fe4059 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 26 Sep 2016 16:00:00 +1000 Subject: [PATCH] BT example: Enable BT stack in config by default --- examples/04_ble_adv/Makefile | 6 ++++++ examples/04_ble_adv/sdkconfig.defaults | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 examples/04_ble_adv/sdkconfig.defaults diff --git a/examples/04_ble_adv/Makefile b/examples/04_ble_adv/Makefile index cea72c6f02..9f91869a8b 100644 --- a/examples/04_ble_adv/Makefile +++ b/examples/04_ble_adv/Makefile @@ -7,3 +7,9 @@ PROJECT_NAME := ble_adv include $(IDF_PATH)/make/project.mk +# Copy some defaults into the sdkconfig by default +# so BT stack is enabled +sdkconfig: sdkconfig.defaults + $(Q) cp $< $@ + +menuconfig: sdkconfig diff --git a/examples/04_ble_adv/sdkconfig.defaults b/examples/04_ble_adv/sdkconfig.defaults new file mode 100644 index 0000000000..e435f383c8 --- /dev/null +++ b/examples/04_ble_adv/sdkconfig.defaults @@ -0,0 +1,14 @@ +# Override some defaults so BT stack is enabled +# in this example + +# +# BT config +# +CONFIG_BT_ENABLED=y + +# +# ESP32-specific config +# +CONFIG_ESP32_ENABLE_STACK_BT=y +# CONFIG_ESP32_ENABLE_STACK_NONE is not set +CONFIG_MEMMAP_BT=y -- 2.40.0