#******************************************************************************* #* FILE PURPOSE: Top level makefile for Creating Component Libraries for ARM #* architectures #******************************************************************************* #* FILE NAME: makefile #* #* DESCRIPTION: Defines Compiler tools paths, libraries , Build Options #* #* #******************************************************************************* #* # (Mandatory) Specify where various tools are installed. #Default Do not use the shared object libraries for the test/example applications export USEDYNAMIC_LIB ?= "no" #export SOC ?= AM572x export SOC export BOOTMODE export LLD_NAME=sbl echo SOC=$(SOC) echo LLD_NAME=$(LLD_NAME) # ROOT Directory export ROOTDIR := ../.. # INCLUDE Directory export INCDIR := ../..;$(PDK_INSTALL_PATH);$(ROOTDIR);$(SBL_INC_DIR) # Common Macros used in make ifndef RM export RM = rm -f endif ifndef CP export CP = cp -p endif export MKDIR = mkdir -p ifndef RMDIR export RMDIR = rm -rf endif ifndef SED export SED = sed endif ifndef MAKE export MAKE = make endif # PHONY Targets #.PHONY: all clean lib tests examples install installbin .libraries .executables .PHONY: all clean flashwriter flashwriter_clean # all rule all: @$(MAKE) -f ./board/$(BOARD)/build/makefile all flashwriter: @$(MAKE) -f ./tools/flashWriter/qspi/src/makefile # Rule to clean sbl binary clean: @$(MAKE) -f ./board/$(BOARD)/build/makefile $@ @$(RMDIR) $(PDK_INSTALL_PATH)/ti/boot/$(LLD_NAME)/binary/$(BOARD) flashwriter_clean: @$(MAKE) -f ./tools/flashWriter/qspi/src/makefile clean @$(RMDIR) $(PDK_INSTALL_PATH)/ti/boot/sbl/tools/flashWriter/qspi/bin/$(BOARD)