diff options
| author | Jim Mussared | 2019-10-01 23:47:55 +1000 |
|---|---|---|
| committer | Jim Mussared | 2019-10-08 14:50:01 +1100 |
| commit | cd8bbf4cfca57f330f256134301e42f137f91eee (patch) | |
| tree | 28fd757e20cf76fc14fad976068b4d7386e3b234 | |
| parent | 6a9bd1c1aba9f80844c0af96a73319797c6e81b8 (diff) | |
esp32/boards: Enable BLE by default when building with IDF 4.x.
| -rw-r--r-- | ports/esp32/Makefile | 10 |
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) |
