Skip to content

Commit 6bb7938

Browse files
jaenrig-ifxactions-user
authored andcommitted
psoc6/Makefile: Updated for submodules target without board arg.
Signed-off-by: jaenrig-ifx <[email protected]>
1 parent 91b23d0 commit 6bb7938

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ports/psoc6/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ endif
1414
# has been run.
1515
ifeq ($(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
5254
include ../../py/mkenv.mk
5355
include mpconfigport.mk
54-
include $(BOARD_DIR)/mpconfigboard.mk
56+
-include $(BOARD_DIR)/mpconfigboard.mk
5557
include $(TOP)/py/py.mk
5658
include $(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

221223
MPY_CROSS_FLAGS += -march=armv7m
222224

0 commit comments

Comments
 (0)