esp32/boards: Enable BLE by default when building with IDF 4.x.

This commit is contained in:
Jim Mussared 2019-10-01 23:47:55 +10:00
parent 6a9bd1c1ab
commit cd8bbf4cfc
1 changed files with 10 additions and 0 deletions

View File

@ -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)