File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414# has been run.
1515ifeq ($(BOARD ) ,)
1616 ifeq ($(ACTIVE_BOARD),)
17- $(error ModusToolbox not initialized. Run "make mtb_init BOARD=<target-board>" to configure the environment. )
17+ ifneq ($(MAKECMDGOALS), submodules)
18+ $(error ModusToolbox not initialized. Run "make mtb_init BOARD=<target-board>" to configure the environment. )
19+ endif
1820 else
1921 BOARD = $(ACTIVE_BOARD )
2022 endif
@@ -51,7 +53,7 @@ CONFIG ?= Debug
5153# include py core make definitions
5254include ../../py/mkenv.mk
5355include mpconfigport.mk
54- include $(BOARD_DIR ) /mpconfigboard.mk
56+ - include $(BOARD_DIR ) /mpconfigboard.mk
5557include $(TOP ) /py/py.mk
5658include $(TOP ) /extmod/extmod.mk
5759
@@ -216,7 +218,7 @@ $(BUILD)/firmware.hex: $(BUILD)/firmware.elf
216218
217219
218220# include adapter makefile
219- include $(TOP ) /lib/mtb-psoc6-libs/makefile_mtb.mk
221+ - include $(TOP ) /lib/mtb-psoc6-libs/makefile_mtb.mk
220222
221223MPY_CROSS_FLAGS += -march=armv7m
222224
You can’t perform that action at this time.
0 commit comments