PASDK-218:Update CB read to allow read spanning multiple CB AFs
[processor-sdk/performance-audio-sr.git] / psdk_cust / pdk_k2g_1_0_1_2_eng / 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 # FL: custom rules for PASDK
150 i2c_pasdk:
151         $(MAKE) -C ./ti/drv/i2c pasdk_k2g
152 i2c_pasdk_clean:
153         $(MAKE) -C ./ti/drv/i2c pasdk_k2g_clean
154 spi_pasdk:
155         $(MAKE) -C ./ti/drv/spi pasdk_k2g
156 spi_pasdk_clean:
157         $(MAKE) -C ./ti/drv/spi pasdk_k2g_clean
158 uart_pasdk:
159         $(MAKE) -C ./ti/drv/uart pasdk_k2g
160 uart_pasdk_clean:
161         $(MAKE) -C ./ti/drv/uart pasdk_k2g_clean
163     
164 SBL_PLATFORM = k2g
166 sbl: board_lib uart spi mmcsd fatfs
167 ifeq ($(SBL_PLATFORM), am57xx)
168         # am57xx
169         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM572x SOC=AM572x BOOTMODE=mmcsd
170         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM572x SOC=AM572x BOOTMODE=qspi
171         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM571x SOC=AM571x BOOTMODE=mmcsd
172         $(MAKE) -C ./ti/boot/sbl all BOARD=idkAM571x SOC=AM571x BOOTMODE=qspi
173         $(MAKE) -C ./ti/boot/sbl all BOARD=evmAM572x SOC=AM572x BOOTMODE=mmcsd
174         $(MAKE) -C ./ti/boot/sbl flashwriter BOARD=idkAM572x SOC=AM572x
175         $(MAKE) -C ./ti/boot/sbl flashwriter BOARD=idkAM571x SOC=AM571x
176 else ifeq ($(SBL_PLATFORM), k2g)
177         # k2g
178         $(MAKE) -C ./ti/boot/sbl all BOARD=evmK2G SOC=K2G BOOTMODE=mmcsd
179         $(MAKE) -C ./ti/boot/sbl all BOARD=evmK2G SOC=K2G BOOTMODE=qspi
180         $(MAKE) -C ./ti/boot/sbl flashwriter BOARD=evmK2G SOC=K2G
181 endif
183 sbl_clean:
184 ifeq ($(SBL_PLATFORM), am57xx)
185         # am57xx
186         $(MAKE) -C ./ti/boot/sbl clean BOARD=idkAM572x
187         $(MAKE) -C ./ti/boot/sbl clean BOARD=idkAM571x
188         $(MAKE) -C ./ti/boot/sbl clean BOARD=evmAM572x
189         $(MAKE) -C ./ti/boot/sbl flashwriter_clean BOARD=idkAM572x
190         $(MAKE) -C ./ti/boot/sbl flashwriter_clean BOARD=idkAM571x
191 else ifeq ($(SBL_PLATFORM), k2g)
192         # k2g
193         $(MAKE) -C ./ti/boot/sbl clean BOARD=evmK2G
194         $(MAKE) -C ./ti/boot/sbl flashwriter_clean BOARD=evmK2G
195 endif