summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/btstack
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-04-20 11:50:02 +1000
committerDamien George <damien.p.george@gmail.com>2020-04-29 16:54:12 +1000
commit2e3c42775a402749e790474643cb9f776561264d (patch)
tree245fc4e827cac66c08991e24714d70ce37f66cb9 /extmod/btstack
parentebfd9ff2e6b40d36439a6b58bf3774df77750c02 (diff)
downloadmicropython-2e3c42775a402749e790474643cb9f776561264d.tar.gz
micropython-2e3c42775a402749e790474643cb9f776561264d.zip
unix: Add btstack to the unix submodules list.
But only when bluetooth is enabled, i.e. if building the dev or coverage variants, and we have libusb available. Update travis to match, i.e. specify the variant when doing `make submodules`.
Diffstat (limited to 'extmod/btstack')
-rw-r--r--extmod/btstack/btstack.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/extmod/btstack/btstack.mk b/extmod/btstack/btstack.mk
index fe3a05272b..dd96e63379 100644
--- a/extmod/btstack/btstack.mk
+++ b/extmod/btstack/btstack.mk
@@ -14,6 +14,8 @@ CFLAGS_MOD += -DMICROPY_BLUETOOTH_BTSTACK=1
BTSTACK_DIR = $(TOP)/lib/btstack
+ifneq ($(wildcard $(BTSTACK_DIR)/src),)
+
include $(BTSTACK_DIR)/src/Makefile.inc
include $(BTSTACK_DIR)/src/ble/Makefile.inc
@@ -52,3 +54,4 @@ endif
$(BUILD)/lib/btstack/src/%.o: CFLAGS += $(BTSTACK_WARNING_CFLAGS)
endif
+endif