stm32/Makefile: Update to only pull in used Bluetooth library.
This commit is contained in:
parent
7a1edb91cb
commit
60e3e51753
|
@ -34,7 +34,7 @@ MBOOT_TEXT0_ADDR ?= 0x08000000
|
|||
# include py core make definitions
|
||||
include $(TOP)/py/py.mk
|
||||
|
||||
GIT_SUBMODULES = lib/libhydrogen lib/lwip lib/mbedtls lib/mynewt-nimble lib/stm32lib
|
||||
GIT_SUBMODULES = lib/libhydrogen lib/lwip lib/mbedtls lib/stm32lib
|
||||
|
||||
MCU_SERIES_UPPER = $(shell echo $(MCU_SERIES) | tr '[:lower:]' '[:upper:]')
|
||||
CMSIS_MCU_LOWER = $(shell echo $(CMSIS_MCU) | tr '[:upper:]' '[:lower:]')
|
||||
|
@ -522,12 +522,14 @@ endif
|
|||
endif
|
||||
|
||||
ifeq ($(MICROPY_BLUETOOTH_NIMBLE),1)
|
||||
GIT_SUBMODULES += lib/mynewt-nimble
|
||||
CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_ENABLE_L2CAP_CHANNELS=1
|
||||
include $(TOP)/extmod/nimble/nimble.mk
|
||||
SRC_C += mpnimbleport.c
|
||||
endif
|
||||
|
||||
ifeq ($(MICROPY_BLUETOOTH_BTSTACK),1)
|
||||
GIT_SUBMODULES += lib/btstack
|
||||
MICROPY_BLUETOOTH_BTSTACK_H4 ?= 1
|
||||
include $(TOP)/extmod/btstack/btstack.mk
|
||||
SRC_C += mpbtstackport.c
|
||||
|
|
|
@ -267,6 +267,7 @@ function ci_stm32_pyb_build {
|
|||
make ${MAKEOPTS} -C mpy-cross
|
||||
make ${MAKEOPTS} -C ports/stm32 submodules
|
||||
git submodule update --init lib/btstack
|
||||
git submodule update --init lib/mynewt-nimble
|
||||
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBV11 MICROPY_PY_WIZNET5K=5200 MICROPY_PY_CC3K=1 USER_C_MODULES=../../examples/usercmodule
|
||||
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBD_SF2
|
||||
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBD_SF6 NANBOX=1 MICROPY_BLUETOOTH_NIMBLE=0 MICROPY_BLUETOOTH_BTSTACK=1
|
||||
|
@ -277,6 +278,7 @@ function ci_stm32_pyb_build {
|
|||
function ci_stm32_nucleo_build {
|
||||
make ${MAKEOPTS} -C mpy-cross
|
||||
make ${MAKEOPTS} -C ports/stm32 submodules
|
||||
git submodule update --init lib/mynewt-nimble
|
||||
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_F091RC
|
||||
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_H743ZI CFLAGS_EXTRA='-DMICROPY_PY_THREAD=1'
|
||||
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_L073RZ
|
||||
|
|
Loading…
Reference in New Issue