Update UART LLD makefile to only build k2g c66x, little-endian
[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1 / packages / makefile
1 #*******************************************************************************
2 #* FILE PURPOSE: Top level makefile for Creating Component Libraries and example 
3 #*               binaries
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 ifndef MAKE
15 export MAKE = make
16 endif
18 ifndef ECHO
19 export ECHO = echo
20 endif
22 ifndef RM
23 export RM = rm -f
24 endif
26 ifndef CP
27 export CP = cp -p
28 endif
30 all: board csl cppi i2c osal pcie qmss rm spi uart emac fatfs gpio mcasp mcbsp mmcsd sa sbl 
31 clean: board_clean csl_clean cppi_clean i2c_clean osal_clean pcie_clean qmss_clean rm_clean spi_clean uart_clean emac_clean fatfs_clean gpio_clean mcasp_clean mcbsp_clean mmcsd_clean sa_clean sbl_clean 
33 board: board_lib board_diag
35 diag: board_diag
37 board_lib:
38         $(MAKE) -C ./ti/board all
40 BOARD_DIAG_DEPS = csl fatfs gpio i2c mmcsd spi uart osal
41 ALL_BOARDS = evmK2G
42 board_diag: board_lib $(BOARD_DIAG_DEPS)
43         $(MAKE) -C ./ti/board/diag ALL_BOARDS="$(ALL_BOARDS)"
45 board_clean: board_diag_clean board_lib_clean
47 board_lib_clean:
48         $(MAKE) -C ./ti/board clean
50 board_diag_clean:
51         $(MAKE) -C ./ti/board/diag clean ALL_BOARDS="$(ALL_BOARDS)"
53 csl: 
54         $(MAKE) -C ./ti/csl all
56 csl_clean:
57         $(MAKE) -C ./ti/csl clean
59 cppi:
60         $(MAKE) -C ./ti/drv/cppi all
62 cppi_clean:
63         $(MAKE) -C ./ti/drv/cppi clean
65 i2c:
66         ${MAKE} -C ./ti/drv/i2c all
68 i2c_clean:
69         ${MAKE} -C ./ti/drv/i2c clean
71 osal:
72         $(MAKE) -C ./ti/osal all
74 osal_clean:
75         $(MAKE) -C ./ti/osal clean
77 pcie:
78         $(MAKE) -C ./ti/drv/pcie all
80 pcie_clean:
81         $(MAKE) -C ./ti/drv/pcie clean
83 qmss:
84         $(MAKE) -C ./ti/drv/qmss all
86 qmss_clean:
87         $(MAKE) -C ./ti/drv/qmss clean
89 rm:
90         $(MAKE) -C ./ti/drv/rm all
92 rm_clean:
93         $(MAKE) -C ./ti/drv/rm clean
95 spi:
96         $(MAKE) -C ./ti/drv/spi all
98 spi_clean:
99         $(MAKE) -C ./ti/drv/spi clean
101 uart:
102         $(MAKE) -C ./ti/drv/uart all
104 uart_clean:
105         $(MAKE) -C ./ti/drv/uart clean
107 emac:
108         $(MAKE) -C ./ti/drv/emac all
110 emac_clean:
111         $(MAKE) -C ./ti/drv/emac clean
113 fatfs:
114         $(MAKE) -C ./ti/fs/fatfs all
116 fatfs_clean:
117         $(MAKE) -C ./ti/fs/fatfs clean
119 gpio:
120         $(MAKE) -C ./ti/drv/gpio all
122 gpio_clean:
123         $(MAKE) -C ./ti/drv/gpio clean
125 mcasp:
126         $(MAKE) -C ./ti/drv/mcasp all
128 mcasp_clean:
129         $(MAKE) -C ./ti/drv/mcasp clean
131 mcbsp:
132         $(MAKE) -C ./ti/drv/mcbsp all
134 mcbsp_clean:
135         $(MAKE) -C ./ti/drv/mcbsp clean
137 mmcsd:
138         $(MAKE) -C ./ti/drv/mmcsd all
140 mmcsd_clean:
141         $(MAKE) -C ./ti/drv/mmcsd clean
143 sa:
144         $(MAKE) -C ./ti/drv/sa all
146 sa_clean:
147         $(MAKE) -C ./ti/drv/sa clean
149 SBL_PLATFORM = k2g
151 sbl: board_lib uart spi mmcsd fatfs
152 ifeq ($(SBL_PLATFORM), am57xx)
153         # am57xx
154         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM572x SOC=AM572x BOOTMODE=mmcsd
155         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM572x SOC=AM572x BOOTMODE=qspi
156         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM571x SOC=AM571x BOOTMODE=mmcsd
157         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM571x SOC=AM571x BOOTMODE=qspi
158         $(MAKE) -C ./ti/boot/sbl all BOARD=evmAM572x SOC=AM572x BOOTMODE=mmcsd
159         $(MAKE) -C ./ti/boot/sbl flashwriter BOARD=idkAM572x SOC=AM572x
160         $(MAKE) -C ./ti/boot/sbl flashwriter BOARD=idkAM571x SOC=AM571x
161 else ifeq ($(SBL_PLATFORM), k2g)
162         # k2g
163         $(MAKE) -C ./ti/boot/sbl all BOARD=evmK2G SOC=K2G BOOTMODE=mmcsd
164         $(MAKE) -C ./ti/boot/sbl all BOARD=evmK2G SOC=K2G BOOTMODE=qspi
165         $(MAKE) -C ./ti/boot/sbl flashwriter BOARD=evmK2G SOC=K2G
166 endif
168 sbl_clean:
169 ifeq ($(SBL_PLATFORM), am57xx)
170         # am57xx
171         $(MAKE) -C ./ti/boot/sbl clean BOARD=idkAM572x
172         $(MAKE) -C ./ti/boot/sbl clean BOARD=idkAM571x
173         $(MAKE) -C ./ti/boot/sbl clean BOARD=evmAM572x
174         $(MAKE) -C ./ti/boot/sbl flashwriter_clean BOARD=idkAM572x
175         $(MAKE) -C ./ti/boot/sbl flashwriter_clean BOARD=idkAM571x
176 else ifeq ($(SBL_PLATFORM), k2g)
177         # k2g
178         $(MAKE) -C ./ti/boot/sbl clean BOARD=evmK2G
179         $(MAKE) -C ./ti/boot/sbl flashwriter_clean BOARD=evmK2G
180 endif