aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared2019-10-01 23:47:55 +1000
committerJim Mussared2019-10-08 14:50:01 +1100
commitcd8bbf4cfca57f330f256134301e42f137f91eee (patch)
tree28fd757e20cf76fc14fad976068b4d7386e3b234
parent6a9bd1c1aba9f80844c0af96a73319797c6e81b8 (diff)
esp32/boards: Enable BLE by default when building with IDF 4.x.
-rw-r--r--ports/esp32/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index f059536af..5d63a2586 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -110,6 +110,16 @@ $(info Add the xtensa toolchain to your PATH. See README.md)
$(error C compiler missing)
endif
+# Support BLE by default when building with IDF 4.x.
+# Can be explicitly disabled on the command line or board config.
+ifeq ($(ESPIDF_CURHASH),$(ESPIDF_SUPHASH_V4))
+MICROPY_PY_BLUETOOTH ?= 1
+ifeq ($(MICROPY_PY_BLUETOOTH),1)
+SDKCONFIG += boards/sdkconfig.ble
+MICROPY_BLUETOOTH_NIMBLE = 1
+endif
+endif
+
# include sdkconfig to get needed configuration values
include $(SDKCONFIG)