diff --git a/makefile b/makefile
index 37a06477e90975564346a921f579d3ef22e06530..55949e8ef547b4f216749455ffde8d8f1eac30f4 100644 (file)
--- a/makefile
+++ b/makefile
#*
# (Mandatory) Specify where various tools are installed.
+ifeq ($(RULES_MAKE), )
+include $(PDK_INSTALL_PATH)/ti/build/Rules.make
+else
+include $(RULES_MAKE)
+endif
+
#Default Do not use the shared object libraries for the test/example applications
export USEDYNAMIC_LIB ?= "no"
export SOC
export BOOTMODE
export OPPMODE
+export SECUREMODE
export LLD_NAME=sbl
endif
# PHONY Targets
-.PHONY: all clean spi_flashwriter spi_flashwriter_clean flashwriter flashwriter_clean example example_clean tools
+.PHONY: all clean spi_flashwriter spi_flashwriter_clean flashwriter flashwriter_clean mmcsd_flashwriter mmcsd_flashwriter_clean example example_clean tools sbl_lib sbl_lib_clean
# all rule
all:
flashwriter:
@$(MAKE) -f ./tools/flashWriter/qspi/src/makefile $@
+mmcsd_flashwriter:
+ @$(MAKE) -f ./tools/flashWriter/mmcsd/src/makefile $@
+
example:
@$(MAKE) -f ./example/mpuMulticoreApp/makefile $@
@$(MAKE) -f ./example/dsp1MulticoreApp/makefile $@
@$(MAKE) -f ./example/ipu1MulticoreApp/makefile $@
-ifeq ($(SOC), AM572x)
+ifeq ($(SOC),$(filter $(SOC), AM572x AM574x))
+ @$(MAKE) -f ./example/mpu1MulticoreApp/makefile $@
@$(MAKE) -f ./example/dsp2MulticoreApp/makefile $@
@$(MAKE) -f ./example/ipu2MulticoreApp/makefile $@
endif
+eveLoader:
+ifeq ($(SOC),$(filter $(SOC), AM572x AM574x))
+ @$(MAKE) -C ./example/mpuM4EveLoaderApp $@
+endif
+
tools:
@$(MAKE) -C tools/btoccs
@$(MAKE) -C tools/byteswap
@$(MAKE) -C tools/ccsutil
@$(MAKE) -C tools/tiImageGen
+sbl_lib:
+ @$(MAKE) -f ./src/sbl_eve/sbl_lib/src/makefile $@
+
+
# Rule to clean sbl binary
clean:
@$(MAKE) -f ./board/$(BOARD)/build/makefile $@
@$(MAKE) -f ./tools/flashWriter/qspi/src/makefile $@
@$(RMDIR) $(PDK_INSTALL_PATH)/ti/boot/sbl/tools/flashWriter/qspi/bin/$(BOARD)
+mmcsd_flashwriter_clean:
+ @$(MAKE) -f ./tools/flashWriter/mmcsd/src/makefile $@
+
example_clean:
@$(MAKE) -f ./example/mpuMulticoreApp/makefile $@
@$(MAKE) -f ./example/dsp1MulticoreApp/makefile $@
@$(MAKE) -f ./example/ipu1MulticoreApp/makefile $@
-ifeq ($(SOC), AM572x)
+ifeq ($(SOC),$(filter $(SOC), AM572x AM574x))
@$(MAKE) -f ./example/dsp2MulticoreApp/makefile $@
@$(MAKE) -f ./example/ipu2MulticoreApp/makefile $@
endif
@$(RMDIR) $(PDK_INSTALL_PATH)/ti/boot/sbl/binary/sbl_multicore_app/$(BOARD)
+
+sbl_lib_clean:
+ @$(MAKE) -f ./src/sbl_eve/sbl_lib/src/makefile $@
+
+eveLoader_clean:
+ifeq ($(SOC),$(filter $(SOC), AM572x AM574x))
+ @$(MAKE) -C ./example/mpuM4EveLoaderApp $@
+endif
\ No newline at end of file