Skip to content

Commit 4a3ac5b

Browse files
jaenrig-ifxactions-user
authored andcommitted
Makefile: Changed mtb-libs dir as new submodule.
Signed-off-by: jaenrig-ifx <[email protected]>
1 parent b5a0659 commit 4a3ac5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ports/psoc6/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ BOARD ?=
22

33
# Check if the ModusToolbox setup has been initialized
44
# If that is the case, get active board
5-
MTB_LIB_DIR = mtb-libs
5+
MTB_LIB_DIR = ../../lib/mtb-psoc6-libs
66
MTB_LIBS_APP_INFO = $(MTB_LIB_DIR)/build/get_app_info.txt
7+
78
ifneq ($(wildcard $(MTB_LIBS_APP_INFO)),)
89
ACTIVE_BOARD = $(shell egrep '^ *MTB_TARGET' $(MTB_LIBS_APP_INFO) | sed 's/^.*= *//g' | sed 's/APP_//')
910
endif
@@ -54,6 +55,7 @@ include $(BOARD_DIR)/mpconfigboard.mk
5455
include $(TOP)/py/py.mk
5556
include $(TOP)/extmod/extmod.mk
5657

58+
GIT_SUBMODULES += lib/mtb-psoc6-libs
5759

5860
INC += -I.
5961
INC += -I$(TOP)
@@ -214,7 +216,7 @@ $(BUILD)/firmware.hex: $(BUILD)/firmware.elf
214216

215217

216218
# include adapter makefile
217-
include mtb-libs/makefile_mtb.mk
219+
include $(TOP)/lib/mtb-psoc6-libs/makefile_mtb.mk
218220

219221
MPY_CROSS_FLAGS += -march=armv7m
220222

0 commit comments

Comments
 (0)