1 #*******************************************************************************
2 #* FILE PURPOSE: Top level makefile for Creating Component Libraries for ARM
3 #* architectures
4 #*******************************************************************************
5 #* FILE NAME: makefile
6 #*
7 #* DESCRIPTION: Defines Compiler tools paths, libraries , Build Options
8 #*
9 #*
10 #*******************************************************************************
11 #*
12 # (Mandatory) Specify where various tools are installed.
14 #Default Do not use the shared object libraries for the test/example applications
15 export USEDYNAMIC_LIB ?= "no"
17 #export SOC ?= AM572x
18 export SOC
19 export BOOTMODE
21 export LLD_NAME=sbl
23 echo SOC=$(SOC)
24 echo LLD_NAME=$(LLD_NAME)
26 # ROOT Directory
27 export ROOTDIR := ../..
30 # INCLUDE Directory
31 export INCDIR := ../..;$(PDK_INSTALL_PATH);$(ROOTDIR);$(SBL_INC_DIR)
33 # Common Macros used in make
35 ifndef RM
36 export RM = rm -f
37 endif
39 ifndef CP
40 export CP = cp -p
41 endif
43 export MKDIR = mkdir -p
45 ifndef RMDIR
46 export RMDIR = rm -rf
47 endif
49 ifndef SED
50 export SED = sed
51 endif
53 ifndef MAKE
54 export MAKE = make
55 endif
57 # PHONY Targets
58 #.PHONY: all clean lib tests examples install installbin .libraries .executables
59 .PHONY: all clean flashwriter flashwriter_clean
61 # all rule
62 all:
63 @$(MAKE) -f ./board/$(BOARD)/build/makefile all
65 flashwriter:
66 @$(MAKE) -f ./tools/flashWriter/qspi/src/makefile
68 # Rule to clean sbl binary
69 clean:
70 @$(MAKE) -f ./board/$(BOARD)/build/makefile $@
71 @$(RMDIR) $(PDK_INSTALL_PATH)/ti/boot/$(LLD_NAME)/binary/$(BOARD)
73 flashwriter_clean:
74 @$(MAKE) -f ./tools/flashWriter/qspi/src/makefile clean
75 @$(RMDIR) $(PDK_INSTALL_PATH)/ti/boot/sbl/tools/flashWriter/qspi/bin/$(BOARD)