diff --git a/makefile b/makefile
index daedc99825034c4f6d722db0ddd368a0c579590b..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"
endif
# PHONY Targets
-.PHONY: all clean spi_flashwriter spi_flashwriter_clean flashwriter flashwriter_clean mmcsd_flashwriter mmcsd_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:
@$(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 ./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