]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/boot/sbl/sbl_component.mk
PDK-7616: SBL: Add build targets for HLOS boot variants
[processor-sdk/pdk.git] / packages / ti / boot / sbl / sbl_component.mk
1 #
2 # Copyright (c) 2018, Texas Instruments Incorporated
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 #
9 # *  Redistributions of source code must retain the above copyright
10 #    notice, this list of conditions and the following disclaimer.
11 #
12 # *  Redistributions in binary form must reproduce the above copyright
13 #    notice, this list of conditions and the following disclaimer in the
14 #    documentation and/or other materials provided with the distribution.
15 #
16 # *  Neither the name of Texas Instruments Incorporated nor the names of
17 #    its contributors may be used to endorse or promote products derived
18 #    from this software without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #
33 # File: sbl_component.mk
34 #       This file is component include make file of SBL.
35 # List of variables set in this file and their purpose:
36 # <mod>_RELPATH        - This is the relative path of the module, typically from
37 #                        top-level directory of the package
38 # <mod>_PATH           - This is the absolute path of the module. It derives from
39 #                        absolute path of the top-level directory (set in env.mk)
40 #                        and relative path set above
41 # <mod>_INCLUDE        - This is the path that has interface header files of the
42 #                        module. This can be multiple directories (space separated)
43 # <mod>_PKG_LIST       - Names of the modules (and sub-modules) that are a part
44 #                        part of this module, including itself.
45 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
46 #                             platform and the compiled obj/lib has to be kept
47 #                             under <platform> directory
48 #                             "no" or "" or if this variable is not defined: means
49 #                             this module has no platform dependent code and hence
50 #                             the obj/libs are not kept under <platform> dir.
51 # <mod>_CORE_DEPENDENCY     - "yes": means the code for this module depends on
52 #                             core and the compiled obj/lib has to be kept
53 #                             under <core> directory
54 #                             "no" or "" or if this variable is not defined: means
55 #                             this module has no core dependent code and hence
56 #                             the obj/libs are not kept under <core> dir.
57 # <mod>_APP_STAGE_FILES     - List of source files that belongs to the module
58 #                             <mod>, but that needs to be compiled at application
59 #                             build stage (in the context of the app). This is
60 #                             primarily for link time configurations or if the
61 #                             source file is dependent on options/defines that are
62 #                             application dependent. This can be left blank or
63 #                             not defined at all, in which case, it means there
64 #                             no source files in the module <mod> that are required
65 #                             to be compiled in the application build stage.
66 #
67 ifeq ($(sbl_component_make_include), )
69 sbl_BOARDLIST = am65xx_evm am65xx_idk j721e_evm j7200_evm am64x_evm tpr12_evm
71 sbl_SOCLIST = am65xx j721e j7200 am64x tpr12
73 am65xx_smp_CORELIST := mcu1_0 mpu1_0 mpu2_0
74 sbl_am65xx_CORELIST := mcu1_0 mcu1_1 mpu1_0 mpu1_1 mpu2_0 mpu2_1
75 am65xx_LASTCORE := $(word $(words $(sbl_am65xx_CORELIST)), $(sbl_am65xx_CORELIST))
77 j721e_smp_CORELIST := mcu1_0 mcu2_0 mcu3_0 mpu1_0
78 sbl_j721e_CORELIST := mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 mpu1_0 mpu1_1
79 j721e_LASTCORE := $(word $(words $(sbl_j721e_CORELIST)), $(sbl_j721e_CORELIST))
81 j7200_smp_CORELIST := mcu1_0 mcu2_0 mpu1_0
82 sbl_j7200_CORELIST := mcu1_0 mcu1_1 mcu2_0 mcu2_1 mpu1_0 mpu1_1
83 j7200_LASTCORE := $(word $(words $(sbl_j7200_CORELIST)), $(sbl_j7200_CORELIST))
85 am64x_smp_CORELIST := mcu1_0 mcu2_0 mpu1_0
86 sbl_am64x_CORELIST := mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mpu1_0 mpu1_1
87 am64x_LASTCORE := $(word $(words $(sbl_am64x_CORELIST)), $(sbl_am64x_CORELIST))
89 sbl_tpr12_CORELIST := mcu1_0 mcu1_1 c66xdsp_1
90 tpr12_LASTCORE := $(word $(words $(sbl_tpr12_CORELIST)), $(sbl_tpr12_CORELIST))
93 sbl_DISABLE_PARALLEL_MAKE = yes
94 ############################
95 # sbl package
96 # List of components included under sbl
97 # The components included here are built and will be part of sbl
98 ############################
100 ifeq ($(SOC), am64x)
101 sbl_LIB_LIST = sbl_lib_ospi_nondma sbl_lib_cust sbl_lib_mmcsd sbl_lib_uart
102 else
103   ifeq ($(SOC), j7200)
104     sbl_LIB_LIST = sbl_lib_mmcsd sbl_lib_mmcsd_hlos sbl_lib_ospi_nondma sbl_lib_ospi_nondma_hlos sbl_lib_uart sbl_lib_cust
105   else
106         ifeq ($(SOC), tpr12)
107       sbl_LIB_LIST = sbl_lib_uart
108         else
109       sbl_LIB_LIST = sbl_lib_mmcsd sbl_lib_ospi sbl_lib_uart sbl_lib_hyperflash sbl_lib_cust
110       sbl_LIB_LIST += sbl_lib_mmcsd_hlos sbl_lib_ospi_hlos sbl_lib_hyperflash_hlos
111       sbl_LIB_LIST += sbl_lib_ospi_nondma sbl_lib_ospi_nondma_hlos
112     endif
113   endif
114 endif
116 ############################
117 # sbl example
118 # List of examples under sbl (+= is used at each example definition)
119 # All the tests mentioned in list are built when test target is called
120 # List below all examples for allowed values
121 ############################
122 ifeq ($(SOC),$(filter $(SOC), am64x))
123 sbl_EXAMPLE_LIST = sbl_ospi_img sbl_mmcsd_img sbl_uart_img
124 else
125   ifeq ($(SOC), j7200)
126     sbl_EXAMPLE_LIST = sbl_mmcsd_img sbl_mmcsd_img_hlos sbl_ospi_img sbl_ospi_img_hlos sbl_uart_img
127   else
128     ifeq ($(SOC), tpr12)
129       sbl_EXAMPLE_LIST = sbl_uart_img
130     else
131       sbl_EXAMPLE_LIST = sbl_mmcsd_img sbl_ospi_img sbl_hyperflash_img sbl_uart_img
132       sbl_EXAMPLE_LIST += sbl_mmcsd_img sbl_mmcsd_img_hlos sbl_ospi_img sbl_ospi_img_hlos sbl_hyperflash_img sbl_hyperflash_img_hlos
133       sbl_EXAMPLE_LIST += sbl_mmcsd_img_hs sbl_ospi_img_hs sbl_hyperflash_img_hs sbl_uart_img_hs
134       sbl_EXAMPLE_LIST += sbl_mmcsd_img_hlos_hs sbl_ospi_img_hlos_hs sbl_hyperflash_img_hlos_hs
135     endif
136   endif
137 endif
141 # SBL Modules
144 # SBL MMCSD LIB
145 sbl_lib_mmcsd_COMP_LIST = sbl_lib_mmcsd
146 sbl_lib_mmcsd_RELPATH = ti/boot/sbl
147 export sbl_lib_mmcsd_OBJPATH = ti/boot/sbl/mmcsd
148 sbl_lib_mmcsd_LIBNAME = sbl_lib_mmcsd
149 sbl_lib_mmcsd_PATH = $(PDK_SBL_COMP_PATH)
150 sbl_lib_mmcsd_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/mmcsd
151 sbl_lib_mmcsd_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=mmcsd SBL_USE_DMA=yes
152 export sbl_lib_mmcsd_MAKEFILE
153 export sbl_lib_mmcsd_LIBNAME
154 export sbl_lib_mmcsd_LIBPATH
155 sbl_lib_mmcsd_BOARD_DEPENDENCY = yes
156 sbl_lib_mmcsd_SOC_DEPENDENCY = yes
157 sbl_lib_mmcsd_CORE_DEPENDENCY = no
158 export sbl_lib_mmcsd_COMP_LIST
159 export sbl_lib_mmcsd_BOARD_DEPENDENCY
160 export sbl_lib_mmcsd_CORE_DEPENDENCY
161 sbl_lib_mmcsd_PKG_LIST = sbl_lib_mmcsd
162 sbl_lib_mmcsd_INCLUDE = $(sbl_lib_mmcsd_PATH)
163 sbl_lib_mmcsd_SOCLIST = $(sbl_SOCLIST)
164 sbl_lib_mmcsd_BOARDLIST = $(sbl_BOARDLIST)
165 export sbl_lib_mmcsd_SOCLIST
166 export sbl_lib_mmcsd_BOARDLIST
167 sbl_lib_mmcsd_$(SOC)_CORELIST = mcu1_0
168 export sbl_lib_mmcsd_$(SOC)_CORELIST
170 # SBL MMCSD HLOS LIB
171 sbl_lib_mmcsd_hlos_COMP_LIST = sbl_lib_mmcsd_hlos
172 sbl_lib_mmcsd_hlos_RELPATH = ti/boot/sbl
173 export sbl_lib_mmcsd_hlos_OBJPATH = ti/boot/sbl/mmcsd_hlos
174 sbl_lib_mmcsd_hlos_LIBNAME = sbl_lib_mmcsd_hlos
175 sbl_lib_mmcsd_hlos_PATH = $(PDK_SBL_COMP_PATH)
176 sbl_lib_mmcsd_hlos_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/mmcsd_hlos
177 sbl_lib_mmcsd_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=mmcsd HLOS_BOOT=yes SBL_USE_DMA=yes
178 export sbl_lib_mmcsd_hlos_MAKEFILE
179 export sbl_lib_mmcsd_hlos_LIBNAME
180 export sbl_lib_mmcsd_hlos_LIBPATH
181 sbl_lib_mmcsd_hlos_BOARD_DEPENDENCY = yes
182 sbl_lib_mmcsd_hlos_SOC_DEPENDENCY = yes
183 sbl_lib_mmcsd_hlos_CORE_DEPENDENCY = no
184 export sbl_lib_mmcsd_hlos_COMP_LIST
185 export sbl_lib_mmcsd_hlos_BOARD_DEPENDENCY
186 export sbl_lib_mmcsd_hlos_CORE_DEPENDENCY
187 sbl_lib_mmcsd_hlos_PKG_LIST = sbl_lib_mmcsd_hlos
188 sbl_lib_mmcsd_hlos_INCLUDE = $(sbl_lib_mmcsd_hlos_PATH)
189 sbl_lib_mmcsd_hlos_SOCLIST = $(sbl_SOCLIST)
190 sbl_lib_mmcsd_hlos_BOARDLIST = $(sbl_BOARDLIST)
191 export sbl_lib_mmcsd_hlos_SOCLIST
192 export sbl_lib_mmcsd_hlos_BOARDLIST
193 sbl_lib_mmcsd_hlos_$(SOC)_CORELIST = mcu1_0
194 export sbl_lib_mmcsd_hlos_$(SOC)_CORELIST
196 # SBL OSPI LIB
197 sbl_lib_ospi_COMP_LIST = sbl_lib_ospi
198 sbl_lib_ospi_RELPATH = ti/boot/sbl
199 export sbl_lib_ospi_OBJPATH = ti/boot/sbl/ospi
200 sbl_lib_ospi_LIBNAME = sbl_lib_ospi
201 sbl_lib_ospi_PATH = $(PDK_SBL_COMP_PATH)
202 sbl_lib_ospi_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi
203 sbl_lib_ospi_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi SBL_USE_DMA=yes
204 export sbl_lib_ospi_MAKEFILE
205 export sbl_lib_ospi_LIBNAME
206 export sbl_lib_ospi_LIBPATH
207 sbl_lib_ospi_BOARD_DEPENDENCY = yes
208 sbl_lib_ospi_SOC_DEPENDENCY = yes
209 sbl_lib_ospi_CORE_DEPENDENCY = no
210 export sbl_lib_ospi_COMP_LIST
211 export sbl_lib_ospi_BOARD_DEPENDENCY
212 export sbl_lib_ospi_CORE_DEPENDENCY
213 sbl_lib_ospi_PKG_LIST = sbl_lib_ospi
214 sbl_lib_ospi_INCLUDE = $(sbl_lib_ospi_PATH)
215 sbl_lib_ospi_SOCLIST = $(sbl_SOCLIST)
216 sbl_lib_ospi_BOARDLIST = $(sbl_BOARDLIST)
217 export sbl_lib_ospi_SOCLIST
218 export sbl_lib_ospi_BOARDLIST
219 sbl_lib_ospi_$(SOC)_CORELIST = mcu1_0
220 export sbl_lib_ospi_$(SOC)_CORELIST
222 # SBL OSPI HLOS LIB
223 sbl_lib_ospi_hlos_COMP_LIST = sbl_lib_ospi_hlos
224 sbl_lib_ospi_hlos_RELPATH = ti/boot/sbl
225 export sbl_lib_ospi_hlos_OBJPATH = ti/boot/sbl/ospi_hlos
226 sbl_lib_ospi_hlos_LIBNAME = sbl_lib_ospi_hlos
227 sbl_lib_ospi_hlos_PATH = $(PDK_SBL_COMP_PATH)
228 sbl_lib_ospi_hlos_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi_hlos
229 sbl_lib_ospi_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=yes
230 export sbl_lib_ospi_hlos_MAKEFILE
231 export sbl_lib_ospi_hlos_LIBNAME
232 export sbl_lib_ospi_hlos_LIBPATH
233 sbl_lib_ospi_hlos_BOARD_DEPENDENCY = yes
234 sbl_lib_ospi_hlos_SOC_DEPENDENCY = yes
235 sbl_lib_ospi_hlos_CORE_DEPENDENCY = no
236 export sbl_lib_ospi_hlos_COMP_LIST
237 export sbl_lib_ospi_hlos_BOARD_DEPENDENCY
238 export sbl_lib_ospi_hlos_CORE_DEPENDENCY
239 sbl_lib_ospi_hlos_PKG_LIST = sbl_lib_ospi_hlos
240 sbl_lib_ospi_hlos_INCLUDE = $(sbl_lib_ospi_hlos_PATH)
241 sbl_lib_ospi_hlos_SOCLIST = $(sbl_SOCLIST)
242 sbl_lib_ospi_hlos_BOARDLIST = $(sbl_BOARDLIST)
243 export sbl_lib_ospi_hlos_SOCLIST
244 export sbl_lib_ospi_hlos_BOARDLIST
245 sbl_lib_ospi_hlos_$(SOC)_CORELIST = mcu1_0
246 export sbl_lib_ospi_hlos_$(SOC)_CORELIST
248 # SBL OSPI LIB with NON-DMA - Needed for HS SBL, etc.
249 export sbl_lib_ospi_nondma_COMP_LIST = sbl_lib_ospi_nondma
250 sbl_lib_ospi_nondma_RELPATH = ti/boot/sbl
251 export sbl_lib_ospi_nondma_OBJPATH = ti/boot/sbl/ospi_nondma
252 sbl_lib_ospi_nondma_PATH = $(PDK_SBL_COMP_PATH)
253 export sbl_lib_ospi_nondma_LIBNAME = sbl_lib_ospi_nondma
254 export sbl_lib_ospi_nondma_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi
255 export sbl_lib_ospi_nondma_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi SBL_USE_DMA=no
256 export sbl_lib_ospi_nondma_BOARD_DEPENDENCY = yes
257 export sbl_lib_ospi_nondma_SOC_DEPENDENCY = yes
258 export sbl_lib_ospi_nondma_CORE_DEPENDENCY = no
259 sbl_lib_ospi_nondma_PKG_LIST = sbl_lib_ospi_nondma
260 sbl_lib_ospi_nondma_INCLUDE = $(sbl_lib_ospi_nondma_PATH)
261 export sbl_lib_ospi_nondma_SOCLIST = $(sbl_SOCLIST)
262 export sbl_lib_ospi_nondma_BOARDLIST = $(sbl_BOARDLIST)
263 export sbl_lib_ospi_nondma_$(SOC)_CORELIST = mcu1_0
265 # SBL OSPI HLOS LIB with NON-DMA - Needed for HS SBL, etc.
266 export sbl_lib_ospi_nondma_hlos_COMP_LIST = sbl_lib_ospi_nondma_hlos
267 sbl_lib_ospi_nondma_hlos_RELPATH = ti/boot/sbl
268 export sbl_lib_ospi_nondma_hlos_OBJPATH = ti/boot/sbl/ospi_nondma_hlos
269 sbl_lib_ospi_nondma_hlos_PATH = $(PDK_SBL_COMP_PATH)
270 export sbl_lib_ospi_nondma_hlos_LIBNAME = sbl_lib_ospi_nondma_hlos
271 export sbl_lib_ospi_nondma_hlos_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi_hlos
272 export sbl_lib_ospi_nondma_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=no
273 export sbl_lib_ospi_nondma_hlos_BOARD_DEPENDENCY = yes
274 export sbl_lib_ospi_nondma_hlos_SOC_DEPENDENCY = yes
275 export sbl_lib_ospi_nondma_hlos_CORE_DEPENDENCY = no
276 sbl_lib_ospi_nondma_hlos_PKG_LIST = sbl_lib_ospi_nondma_hlos
277 sbl_lib_ospi_nondma_hlos_INCLUDE = $(sbl_lib_ospi_nondma_hlos_PATH)
278 export sbl_lib_ospi_nondma_hlos_SOCLIST = $(sbl_SOCLIST)
279 export sbl_lib_ospi_nondma_hlos_BOARDLIST = $(sbl_BOARDLIST)
280 export sbl_lib_ospi_nondma_hlos_$(SOC)_CORELIST = mcu1_0
282 # SBL HYPERFLASH LIB
283 sbl_lib_hyperflash_COMP_LIST = sbl_lib_hyperflash
284 sbl_lib_hyperflash_RELPATH = ti/boot/sbl
285 export sbl_lib_hyperflash_OBJPATH = ti/boot/sbl/hyperflash
286 sbl_lib_hyperflash_LIBNAME = sbl_lib_hyperflash
287 sbl_lib_hyperflash_PATH = $(PDK_SBL_COMP_PATH)
288 sbl_lib_hyperflash_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/hyperflash
289 sbl_lib_hyperflash_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=hyperflash SBL_USE_DMA=yes
290 export sbl_lib_hyperflash_MAKEFILE
291 export sbl_lib_hyperflash_LIBNAME
292 export sbl_lib_hyperflash_LIBPATH
293 sbl_lib_hyperflash_BOARD_DEPENDENCY = yes
294 sbl_lib_hyperflash_SOC_DEPENDENCY = yes
295 sbl_lib_hyperflash_CORE_DEPENDENCY = no
296 export sbl_lib_hyperflash_COMP_LIST
297 export sbl_lib_hyperflash_BOARD_DEPENDENCY
298 export sbl_lib_hyperflash_CORE_DEPENDENCY
299 sbl_lib_hyperflash_PKG_LIST = sbl_lib_hyperflash
300 sbl_lib_hyperflash_INCLUDE = $(sbl_lib_hyperflash_PATH)
301 sbl_lib_hyperflash_SOCLIST = j721e
302 sbl_lib_hyperflash_BOARDLIST = j721e_evm
303 export sbl_lib_hyperflash_SOCLIST
304 export sbl_lib_hyperflash_BOARDLIST
305 sbl_lib_hyperflash_$(SOC)_CORELIST = mcu1_0
306 export sbl_lib_hyperflash_$(SOC)_CORELIST
308 # SBL HYPERFLASH HLOS LIB
309 sbl_lib_hyperflash_hlos_COMP_LIST = sbl_lib_hyperflash_hlos
310 sbl_lib_hyperflash_hlos_RELPATH = ti/boot/sbl
311 export sbl_lib_hyperflash_hlos_OBJPATH = ti/boot/sbl/hyperflash_hlos
312 sbl_lib_hyperflash_hlos_LIBNAME = sbl_lib_hyperflash_hlos
313 sbl_lib_hyperflash_hlos_PATH = $(PDK_SBL_COMP_PATH)
314 sbl_lib_hyperflash_hlos_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/hyperflash_hlos
315 sbl_lib_hyperflash_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=hyperflash HLOS_BOOT=yes SBL_USE_DMA=yes
316 export sbl_lib_hyperflash_hlos_MAKEFILE
317 export sbl_lib_hyperflash_hlos_LIBNAME
318 export sbl_lib_hyperflash_hlos_LIBPATH
319 sbl_lib_hyperflash_hlos_BOARD_DEPENDENCY = yes
320 sbl_lib_hyperflash_hlos_SOC_DEPENDENCY = yes
321 sbl_lib_hyperflash_hlos_CORE_DEPENDENCY = no
322 export sbl_lib_hyperflash_hlos_COMP_LIST
323 export sbl_lib_hyperflash_hlos_BOARD_DEPENDENCY
324 export sbl_lib_hyperflash_hlos_CORE_DEPENDENCY
325 sbl_lib_hyperflash_hlos_PKG_LIST = sbl_lib_hyperflash_hlos
326 sbl_lib_hyperflash_hlos_INCLUDE = $(sbl_lib_hyperflash_hlos_PATH)
327 sbl_lib_hyperflash_hlos_SOCLIST = j721e
328 sbl_lib_hyperflash_hlos_BOARDLIST = j721e_evm
329 export sbl_lib_hyperflash_hlos_SOCLIST
330 export sbl_lib_hyperflash_hlos_BOARDLIST
331 sbl_lib_hyperflash_hlos_$(SOC)_CORELIST = mcu1_0
332 export sbl_lib_hyperflash_hlos_$(SOC)_CORELIST
334 # SBL UART LIB
335 sbl_lib_uart_COMP_LIST = sbl_lib_uart
336 sbl_lib_uart_RELPATH = ti/boot/sbl
337 export sbl_lib_uart_OBJPATH = ti/boot/sbl/uart
338 sbl_lib_uart_LIBNAME = sbl_lib_uart
339 sbl_lib_uart_PATH = $(PDK_SBL_COMP_PATH)
340 sbl_lib_uart_LIBNAME = sbl_lib_uart
341 sbl_lib_uart_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/uart
342 sbl_lib_uart_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=uart SBL_USE_DMA=yes
343 export sbl_lib_uart_MAKEFILE
344 export sbl_lib_uart_LIBNAME
345 export sbl_lib_uart_LIBPATH
346 sbl_lib_uart_BOARD_DEPENDENCY = yes
347 sbl_lib_uart_SOC_DEPENDENCY = yes
348 sbl_lib_uart_CORE_DEPENDENCY = no
349 export sbl_lib_uart_COMP_LIST
350 export sbl_lib_uart_BOARD_DEPENDENCY
351 export sbl_lib_uart_CORE_DEPENDENCY
352 sbl_lib_uart_PKG_LIST = sbl_lib_uart
353 sbl_lib_uart_INCLUDE = $(sbl_lib_uart_PATH)
354 sbl_lib_uart_SOCLIST = $(sbl_SOCLIST)
355 sbl_lib_uart_BOARDLIST = $(sbl_BOARDLIST)
356 export sbl_lib_uart_SOCLIST
357 export sbl_lib_uart_BOARDLIST
358 sbl_lib_uart_$(SOC)_CORELIST = mcu1_0
359 export sbl_lib_uart_$(SOC)_CORELIST
362 # SBL Examples
364 # SBL MMCSD Image
365 sbl_mmcsd_img_COMP_LIST = sbl_mmcsd_img
366 sbl_mmcsd_img_RELPATH = ti/boot/sbl/board/k3
367 sbl_mmcsd_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/mmcsd/bin
368 sbl_mmcsd_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
369 sbl_mmcsd_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd SBL_USE_DMA=yes BUILD_HS=no
370 export sbl_mmcsd_img_MAKEFILE
371 export sbl_mmcsd_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
372 sbl_mmcsd_img_BOARD_DEPENDENCY = yes
373 sbl_mmcsd_img_SOC_DEPENDENCY = yes
374 sbl_mmcsd_img_CORE_DEPENDENCY = no
375 export sbl_mmcsd_img_COMP_LIST
376 export sbl_mmcsd_img_BOARD_DEPENDENCY
377 export sbl_mmcsd_img_SOC_DEPENDENCY
378 export sbl_mmcsd_img_CORE_DEPENDENCY
379 sbl_mmcsd_img_PKG_LIST = sbl
380 sbl_mmcsd_img_INCLUDE = $(sbl_mmcsd_img_PATH)
381 sbl_mmcsd_img_BOARDLIST = $(sbl_BOARDLIST)
382 export sbl_mmcsd_img_BOARDLIST
383 sbl_mmcsd_img_$(SOC)_CORELIST = mcu1_0
384 export sbl_mmcsd_img_$(SOC)_CORELIST
385 sbl_mmcsd_img_SBL_IMAGEGEN = yes
386 export sbl_mmcsd_img_SBL_IMAGEGEN
388 # SBL MMCSD "HLOS Boot" Image
389 sbl_mmcsd_img_hlos_COMP_LIST = sbl_mmcsd_img_hlos
390 sbl_mmcsd_img_hlos_RELPATH = ti/boot/sbl/board/k3
391 sbl_mmcsd_img_hlos_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/mmcsd/bin
392 sbl_mmcsd_img_hlos_PATH = $(PDK_SBL_COMP_PATH)/board/k3
393 sbl_mmcsd_img_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=no
394 export sbl_mmcsd_img_hlos_MAKEFILE
395 export sbl_mmcsd_img_hlos_SBL_CERT_KEY=$(SBL_CERT_KEY)
396 sbl_mmcsd_img_hlos_BOARD_DEPENDENCY = yes
397 sbl_mmcsd_img_hlos_SOC_DEPENDENCY = yes
398 sbl_mmcsd_img_hlos_CORE_DEPENDENCY = no
399 export sbl_mmcsd_img_hlos_COMP_LIST
400 export sbl_mmcsd_img_hlos_BOARD_DEPENDENCY
401 export sbl_mmcsd_img_hlos_SOC_DEPENDENCY
402 export sbl_mmcsd_img_hlos_CORE_DEPENDENCY
403 sbl_mmcsd_img_hlos_PKG_LIST = sbl
404 sbl_mmcsd_img_hlos_INCLUDE = $(sbl_mmcsd_img_hlos_PATH)
405 sbl_mmcsd_img_hlos_BOARDLIST = $(sbl_BOARDLIST)
406 export sbl_mmcsd_img_hlos_BOARDLIST
407 sbl_mmcsd_img_hlos_$(SOC)_CORELIST = mcu1_0
408 export sbl_mmcsd_img_hlos_$(SOC)_CORELIST
409 sbl_mmcsd_img_hlos_SBL_IMAGEGEN = yes
410 export sbl_mmcsd_img_hlos_SBL_IMAGEGEN
412 # SBL MMCSD Image - For HS build
413 export sbl_mmcsd_img_hs_COMP_LIST = sbl_mmcsd_img_hs
414 sbl_mmcsd_img_hs_RELPATH = ti/boot/sbl/board/k3
415 sbl_mmcsd_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/mmcsd/bin
416 #Note: The below variable is purposefully set to build folder - different than
417 #non-hs app.
418 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
419 #creates lto_$APPNAME optimization file in the directory in which -C is called
420 #Because of this multiple lto_ files with same name can be created if app name
421 #and app path are same
422 sbl_mmcsd_img_hs_PATH = $(PDK_SBL_COMP_PATH)/build
423 export sbl_mmcsd_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd SBL_USE_DMA=yes BUILD_HS=yes
424 export sbl_mmcsd_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
425 export sbl_mmcsd_img_hs_BOARD_DEPENDENCY = yes
426 export sbl_mmcsd_img_hs_SOC_DEPENDENCY = yes
427 export sbl_mmcsd_img_hs_CORE_DEPENDENCY = no
428 sbl_mmcsd_img_hs_PKG_LIST = sbl
429 sbl_mmcsd_img_hs_INCLUDE = $(sbl_mmcsd_img_hs_PATH)
430 export sbl_mmcsd_img_hs_BOARDLIST = $(sbl_BOARDLIST)
431 export sbl_mmcsd_img_hs_$(SOC)_CORELIST = mcu1_0
432 export sbl_mmcsd_img_hs_SBL_IMAGEGEN = yes
434 # SBL MMCSD "HLOS Boot" Image - For HS build
435 export sbl_mmcsd_img_hlos_hs_COMP_LIST = sbl_mmcsd_img_hlos_hs
436 sbl_mmcsd_img_hlos_hs_RELPATH = ti/boot/sbl/board/k3
437 sbl_mmcsd_img_hlos_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/mmcsd/bin
438 #Note: The below variable is purposefully set to build folder - different than
439 #non-hs app.
440 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
441 #creates lto_$APPNAME optimization file in the directory in which -C is called
442 #Because of this multiple lto_ files with same name can be created if app name
443 #and app path are same
444 sbl_mmcsd_img_hlos_hs_PATH = $(PDK_SBL_COMP_PATH)/build
445 export sbl_mmcsd_img_hlos_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=yes
446 export sbl_mmcsd_img_hlos_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
447 export sbl_mmcsd_img_hlos_hs_BOARD_DEPENDENCY = yes
448 export sbl_mmcsd_img_hlos_hs_SOC_DEPENDENCY = yes
449 export sbl_mmcsd_img_hlos_hs_CORE_DEPENDENCY = no
450 sbl_mmcsd_img_hlos_hs_PKG_LIST = sbl
451 sbl_mmcsd_img_hlos_hs_INCLUDE = $(sbl_mmcsd_img_hlos_hs_PATH)
452 export sbl_mmcsd_img_hlos_hs_BOARDLIST = $(sbl_BOARDLIST)
453 export sbl_mmcsd_img_hlos_hs_$(SOC)_CORELIST = mcu1_0
454 export sbl_mmcsd_img_hlos_hs_SBL_IMAGEGEN = yes
457 # SBL OSPI Image
458 sbl_ospi_img_COMP_LIST = sbl_ospi_img
459 sbl_ospi_img_RELPATH = ti/boot/sbl/board/k3
460 sbl_ospi_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/ospi/bin
461 sbl_ospi_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
462 ifeq ($(SOC),$(filter $(SOC), am64x j7200))
463   sbl_ospi_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=no BUILD_HS=no
464 else
465   sbl_ospi_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=yes BUILD_HS=no
466 endif
467 export sbl_ospi_img_MAKEFILE
468 export sbl_ospi_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
469 sbl_ospi_img_BOARD_DEPENDENCY = yes
470 sbl_ospi_img_SOC_DEPENDENCY = yes
471 sbl_ospi_img_CORE_DEPENDENCY = no
472 export sbl_ospi_img_COMP_LIST
473 export sbl_ospi_img_BOARD_DEPENDENCY
474 export sbl_ospi_img_SOC_DEPENDENCY
475 export sbl_ospi_img_CORE_DEPENDENCY
476 sbl_ospi_img_PKG_LIST = sbl
477 sbl_ospi_img_INCLUDE = $(sbl_ospi_img_PATH)
478 sbl_ospi_img_BOARDLIST = $(sbl_BOARDLIST)
479 export sbl_ospi_img_BOARDLIST
480 sbl_ospi_img_$(SOC)_CORELIST = mcu1_0
481 export sbl_ospi_img_$(SOC)_CORELIST
482 sbl_ospi_img_SBL_IMAGEGEN = yes
483 export sbl_ospi_img_SBL_IMAGEGEN
485 # SBL OSPI "HLOS Boot" Image
486 sbl_ospi_img_hlos_COMP_LIST = sbl_ospi_img_hlos
487 sbl_ospi_img_hlos_RELPATH = ti/boot/sbl/board/k3
488 sbl_ospi_img_hlos_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/ospi/bin
489 sbl_ospi_img_hlos_PATH = $(PDK_SBL_COMP_PATH)/board/k3
490 ifeq ($(SOC),$(filter $(SOC), am64x j7200))
491   sbl_ospi_img_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=no BUILD_HS=no
492 else
493   sbl_ospi_img_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=no
494 endif
495 export sbl_ospi_img_hlos_MAKEFILE
496 export sbl_ospi_img_hlos_SBL_CERT_KEY=$(SBL_CERT_KEY)
497 sbl_ospi_img_hlos_BOARD_DEPENDENCY = yes
498 sbl_ospi_img_hlos_SOC_DEPENDENCY = yes
499 sbl_ospi_img_hlos_CORE_DEPENDENCY = no
500 export sbl_ospi_img_hlos_COMP_LIST
501 export sbl_ospi_img_hlos_BOARD_DEPENDENCY
502 export sbl_ospi_img_hlos_SOC_DEPENDENCY
503 export sbl_ospi_img_hlos_CORE_DEPENDENCY
504 sbl_ospi_img_hlos_PKG_LIST = sbl
505 sbl_ospi_img_hlos_INCLUDE = $(sbl_ospi_img_hlos_PATH)
506 sbl_ospi_img_hlos_BOARDLIST = $(sbl_BOARDLIST)
507 export sbl_ospi_img_hlos_BOARDLIST
508 sbl_ospi_img_hlos_$(SOC)_CORELIST = mcu1_0
509 export sbl_ospi_img_hlos_$(SOC)_CORELIST
510 sbl_ospi_img_hlos_SBL_IMAGEGEN = yes
511 export sbl_ospi_img_hlos_SBL_IMAGEGEN
513 # SBL OSPI Image - For HS build
514 export sbl_ospi_img_hs_COMP_LIST = sbl_ospi_img_hs
515 sbl_ospi_img_hs_RELPATH = ti/boot/sbl/board/k3
516 sbl_ospi_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/ospi/bin
517 #Note: The below variable is purposefully set to build folder - different than
518 #non-hs app.
519 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
520 #creates lto_$APPNAME optimization file in the directory in which -C is called
521 #Because of this multiple lto_ files with same name can be created if app name
522 #and app path are same
523 sbl_ospi_img_hs_PATH = $(PDK_SBL_COMP_PATH)/build
524 export sbl_ospi_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=no BUILD_HS=yes
525 export sbl_ospi_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
526 export sbl_ospi_img_hs_BOARD_DEPENDENCY = yes
527 export sbl_ospi_img_hs_SOC_DEPENDENCY = yes
528 export sbl_ospi_img_hs_CORE_DEPENDENCY = no
529 sbl_ospi_img_hs_PKG_LIST = sbl
530 sbl_ospi_img_hs_INCLUDE = $(sbl_ospi_img_hs_PATH)
531 export sbl_ospi_img_hs_BOARDLIST = $(sbl_BOARDLIST)
532 export sbl_ospi_img_hs_$(SOC)_CORELIST = mcu1_0
533 export sbl_ospi_img_hs_SBL_IMAGEGEN = yes
535 # SBL OSPI "HLOS Boot" Image - For HS build
536 export sbl_ospi_img_hlos_hs_COMP_LIST = sbl_ospi_img_hlos_hs
537 sbl_ospi_img_hlos_hs_RELPATH = ti/boot/sbl/board/k3
538 sbl_ospi_img_hlos_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/ospi/bin
539 #Note: The below variable is purposefully set to build folder - different than
540 #non-hs app.
541 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
542 #creates lto_$APPNAME optimization file in the directory in which -C is called
543 #Because of this multiple lto_ files with same name can be created if app name
544 #and app path are same
545 sbl_ospi_img_hlos_hs_PATH = $(PDK_SBL_COMP_PATH)/build
546 export sbl_ospi_img_hlos_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi HLOS_BOOT=yes SBL_USE_DMA=no BUILD_HS=yes
547 export sbl_ospi_img_hlos_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
548 export sbl_ospi_img_hlos_hs_BOARD_DEPENDENCY = yes
549 export sbl_ospi_img_hlos_hs_SOC_DEPENDENCY = yes
550 export sbl_ospi_img_hlos_hs_CORE_DEPENDENCY = no
551 sbl_ospi_img_hlos_hs_PKG_LIST = sbl
552 sbl_ospi_img_hlos_hs_INCLUDE = $(sbl_ospi_img_hlos_hs_PATH)
553 export sbl_ospi_img_hlos_hs_BOARDLIST = $(sbl_BOARDLIST)
554 export sbl_ospi_img_hlos_hs_$(SOC)_CORELIST = mcu1_0
555 export sbl_ospi_img_hlos_hs_SBL_IMAGEGEN = yes
557 # SBL HYPERFLASH Image
558 sbl_hyperflash_img_COMP_LIST = sbl_hyperflash_img
559 sbl_hyperflash_img_RELPATH = ti/boot/sbl/board/k3
560 sbl_hyperflash_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/hyperflash/bin
561 sbl_hyperflash_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
562 sbl_hyperflash_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=hyperflash SBL_USE_DMA=yes BUILD_HS=no
563 export sbl_hyperflash_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
564 export sbl_hyperflash_img_MAKEFILE
565 sbl_hyperflash_img_BOARD_DEPENDENCY = yes
566 sbl_hyperflash_img_SOC_DEPENDENCY = yes
567 sbl_hyperflash_img_CORE_DEPENDENCY = no
568 export sbl_hyperflash_img_COMP_LIST
569 export sbl_hyperflash_img_BOARD_DEPENDENCY
570 export sbl_hyperflash_img_SOC_DEPENDENCY
571 export sbl_hyperflash_img_CORE_DEPENDENCY
572 sbl_hyperflash_img_PKG_LIST = sbl
573 sbl_hyperflash_img_INCLUDE = $(sbl_hyperflash_img_PATH)
574 sbl_hyperflash_img_BOARDLIST = j721e_evm
575 export sbl_hyperflash_img_BOARDLIST
576 sbl_hyperflash_img_$(SOC)_CORELIST = mcu1_0
577 export sbl_hyperflash_img_$(SOC)_CORELIST
578 sbl_hyperflash_img_SBL_IMAGEGEN = yes
579 export sbl_hyperflash_img_SBL_IMAGEGEN
581 # SBL HYPERFLASH "HLOS Boot" Image
582 sbl_hyperflash_img_hlos_COMP_LIST = sbl_hyperflash_img_hlos
583 sbl_hyperflash_img_hlos_RELPATH = ti/boot/sbl/board/k3
584 sbl_hyperflash_img_hlos_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/hyperflash/bin
585 sbl_hyperflash_img_hlos_PATH = $(PDK_SBL_COMP_PATH)/board/k3
586 sbl_hyperflash_img_hlos_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=hyperflash HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=no
587 export sbl_hyperflash_img_hlos_SBL_CERT_KEY=$(SBL_CERT_KEY)
588 export sbl_hyperflash_img_hlos_MAKEFILE
589 sbl_hyperflash_img_hlos_BOARD_DEPENDENCY = yes
590 sbl_hyperflash_img_hlos_SOC_DEPENDENCY = yes
591 sbl_hyperflash_img_hlos_CORE_DEPENDENCY = no
592 export sbl_hyperflash_img_hlos_COMP_LIST
593 export sbl_hyperflash_img_hlos_BOARD_DEPENDENCY
594 export sbl_hyperflash_img_hlos_SOC_DEPENDENCY
595 export sbl_hyperflash_img_hlos_CORE_DEPENDENCY
596 sbl_hyperflash_img_hlos_PKG_LIST = sbl
597 sbl_hyperflash_img_hlos_INCLUDE = $(sbl_hyperflash_img_hlos_PATH)
598 sbl_hyperflash_img_hlos_BOARDLIST = j721e_evm
599 export sbl_hyperflash_img_hlos_BOARDLIST
600 sbl_hyperflash_img_hlos_$(SOC)_CORELIST = mcu1_0
601 export sbl_hyperflash_img_hlos_$(SOC)_CORELIST
602 sbl_hyperflash_img_hlos_SBL_IMAGEGEN = yes
603 export sbl_hyperflash_img_hlos_SBL_IMAGEGEN
605 # SBL HYPERFLASH Image - For HS build
606 export sbl_hyperflash_img_hs_COMP_LIST = sbl_hyperflash_img_hs
607 sbl_hyperflash_img_hs_RELPATH = ti/boot/sbl/board/k3
608 sbl_hyperflash_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/hyperflash/bin
609 #Note: The below variable is purposefully set to build folder - different than
610 #non-hs app.
611 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
612 #creates lto_$APPNAME optimization file in the directory in which -C is called
613 #Because of this multiple lto_ files with same name can be created if app name
614 #and app path are same
615 sbl_hyperflash_img_hs_PATH = $(PDK_SBL_COMP_PATH)/build
616 export sbl_hyperflash_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=hyperflash SBL_USE_DMA=yes BUILD_HS=yes
617 export sbl_hyperflash_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
618 export sbl_hyperflash_img_hs_BOARD_DEPENDENCY = yes
619 export sbl_hyperflash_img_SOC_DEPENDENCY = yes
620 export sbl_hyperflash_img_hs_CORE_DEPENDENCY = no
621 sbl_hyperflash_img_hs_PKG_LIST = sbl
622 sbl_hyperflash_img_hs_INCLUDE = $(sbl_hyperflash_img_hs_PATH)
623 export sbl_hyperflash_img_hs_BOARDLIST = j721e_evm
624 export sbl_hyperflash_img_hs_$(SOC)_CORELIST = mcu1_0
625 export sbl_hyperflash_img_hs_SBL_IMAGEGEN = yes
627 # SBL HYPERFLASH "HLOS Boot" Image - For HS build
628 export sbl_hyperflash_img_hlos_hs_COMP_LIST = sbl_hyperflash_img_hlos_hs
629 sbl_hyperflash_img_hlos_hs_RELPATH = ti/boot/sbl/board/k3
630 sbl_hyperflash_img_hlos_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/hyperflash/bin
631 #Note: The below variable is purposefully set to build folder - different than
632 #non-hs app.
633 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
634 #creates lto_$APPNAME optimization file in the directory in which -C is called
635 #Because of this multiple lto_ files with same name can be created if app name
636 #and app path are same
637 sbl_hyperflash_img_hlos_hs_PATH = $(PDK_SBL_COMP_PATH)/build
638 export sbl_hyperflash_img_hlos_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=hyperflash HLOS_BOOT=yes SBL_USE_DMA=yes BUILD_HS=yes
639 export sbl_hyperflash_img_hlos_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
640 export sbl_hyperflash_img_hlos_hs_BOARD_DEPENDENCY = yes
641 export sbl_hyperflash_img_hlos_SOC_DEPENDENCY = yes
642 export sbl_hyperflash_img_hlos_hs_CORE_DEPENDENCY = no
643 sbl_hyperflash_img_hlos_hs_PKG_LIST = sbl
644 sbl_hyperflash_img_hlos_hs_INCLUDE = $(sbl_hyperflash_img_hlos_hs_PATH)
645 export sbl_hyperflash_img_hlos_hs_BOARDLIST = j721e_evm
646 export sbl_hyperflash_img_hlos_hs_$(SOC)_CORELIST = mcu1_0
647 export sbl_hyperflash_img_hlos_hs_SBL_IMAGEGEN = yes
649 # SBL UART Image
650 sbl_uart_img_COMP_LIST = sbl_uart_img
651 ifeq ($(SOC), tpr12)
652 sbl_uart_img_RELPATH = ti/boot/sbl/board/evmTPR12
653 else
654 sbl_uart_img_RELPATH = ti/boot/sbl/board/k3
655 endif
656 sbl_uart_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/uart/bin
657 ifeq ($(SOC), tpr12)
658 sbl_uart_img_PATH = $(PDK_SBL_COMP_PATH)/board/evmTPR12
659 else
660 sbl_uart_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
661 endif
662 sbl_uart_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=uart SBL_USE_DMA=yes BUILD_HS=no
663 export sbl_uart_img_MAKEFILE
664 export sbl_uart_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
665 sbl_uart_img_BOARD_DEPENDENCY = yes
666 sbl_uart_img_SOC_DEPENDENCY = yes
667 sbl_uart_img_CORE_DEPENDENCY = no
668 export sbl_uart_img_COMP_LIST
669 export sbl_uart_img_BOARD_DEPENDENCY
670 export sbl_uart_img_SOC_DEPENDENCY
671 export sbl_uart_img_CORE_DEPENDENCY
672 sbl_uart_img_PKG_LIST = sbl
673 sbl_uart_img_INCLUDE = $(sbl_uart_img_PATH)
674 sbl_uart_img_BOARDLIST = $(sbl_BOARDLIST)
675 export sbl_uart_img_BOARDLIST
676 sbl_uart_img_$(SOC)_CORELIST = mcu1_0
677 export sbl_uart_img_$(SOC)_CORELIST
678 sbl_uart_img_SBL_IMAGEGEN = yes
679 export sbl_uart_img_SBL_IMAGEGEN
681 # SBL UART Image - For HS build
682 export sbl_uart_img_hs_COMP_LIST = sbl_uart_img_hs
683 sbl_uart_img_hs_RELPATH = ti/boot/sbl/board/k3
684 sbl_uart_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/uart/bin
685 #Note: The below variable is purposefully set to build folder - different than
686 #non-hs app.
687 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
688 #creates lto_$APPNAME optimization file in the directory in which -C is called
689 #Because of this multiple lto_ files with same name can be created if app name
690 #and app path are same
691 sbl_uart_img_hs_PATH = $(PDK_SBL_COMP_PATH)/build
692 export sbl_uart_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=uart SBL_USE_DMA=yes BUILD_HS=yes
693 export sbl_uart_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
694 export sbl_uart_img_hs_BOARD_DEPENDENCY = yes
695 export sbl_uart_img_hs_SOC_DEPENDENCY = yes
696 export sbl_uart_img_hs_CORE_DEPENDENCY = no
697 sbl_uart_img_hs_PKG_LIST = sbl
698 sbl_uart_img_hs_INCLUDE = $(sbl_uart_img_hs_PATH)
699 export sbl_uart_img_hs_BOARDLIST = $(sbl_BOARDLIST)
700 export sbl_uart_img_hs_$(SOC)_CORELIST = mcu1_0
701 export sbl_uart_img_hs_SBL_IMAGEGEN = yes
703 # Individual Core Boot Test (Ordered)
704 sbl_boot_test_ordered_COMP_LIST = sbl_boot_test_ordered
705 sbl_boot_test_ordered_RELPATH = ti/boot/sbl/example/k3MulticoreApp
706 sbl_boot_test_ordered_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
707 sbl_boot_test_ordered_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
708 sbl_boot_test_ordered_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_boot_test_ordered.mk
709 export sbl_boot_test_ordered_MAKEFILE
710 sbl_boot_test_ordered_BOARD_DEPENDENCY = no
711 sbl_boot_test_ordered_SOC_DEPENDENCY = no
712 sbl_boot_test_ordered_CORE_DEPENDENCY = no
713 export sbl_boot_test_ordered_COMP_LIST
714 export sbl_boot_test_ordered_BOARD_DEPENDENCY
715 export sbl_boot_test_ordered_SOC_DEPENDENCY
716 export sbl_boot_test_ordered_CORE_DEPENDENCY
717 sbl_boot_test_ordered_PKG_LIST = sbl_boot_test_ordered
718 sbl_boot_test_ordered_INCLUDE = $(sbl_boot_test_ordered_PATH)
719 sbl_boot_test_ordered_BOARDLIST = $(sbl_BOARDLIST)
720 export sbl_boot_test_ordered_BOARDLIST
721 sbl_boot_test_ordered_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
722 export sbl_boot_test_ordered_$(SOC)_CORELIST
723 ifneq ($(SOC), tpr12)
724 sbl_EXAMPLE_LIST += sbl_boot_test_ordered
725 endif
726 sbl_boot_test_ordered_SBL_APPIMAGEGEN = yes
727 export sbl_boot_test_ordered_SBL_APPIMAGEGEN
729 # Multicore AMP Boot Test (Ordered)
730 sbl_multicore_amp_ordered_COMP_LIST = sbl_multicore_amp_ordered
731 sbl_multicore_amp_ordered_RELPATH = ti/boot/sbl/example/k3MulticoreApp
732 sbl_multicore_amp_ordered_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
733 sbl_multicore_amp_ordered_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
734 sbl_multicore_amp_ordered_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_amp_ordered.mk
735 export sbl_multicore_amp_ordered_MAKEFILE
736 # SBL multicore amp depends on sbl_boot_test for all the cores
737 sbl_multicore_amp_ordered_DEPENDS_ON=sbl_boot_test_ordered
738 export sbl_multicore_amp_ordered_DEPENDS_ON
739 sbl_multicore_amp_ordered_BOARD_DEPENDENCY = no
740 sbl_multicore_amp_ordered_SOC_DEPENDENCY = no
741 sbl_multicore_amp_ordered_CORE_DEPENDENCY = no
742 export sbl_multicore_amp_ordered_COMP_LIST
743 export sbl_multicore_amp_ordered_BOARD_DEPENDENCY
744 export sbl_multicore_amp_ordered_SOC_DEPENDENCY
745 export sbl_multicore_amp_ordered_CORE_DEPENDENCY
746 sbl_multicore_amp_ordered_PKG_LIST = sbl_multicore_amp_ordered
747 sbl_multicore_amp_ordered_INCLUDE = $(sbl_multicore_amp_ordered_PATH)
748 sbl_multicore_amp_ordered_BOARDLIST = $(sbl_BOARDLIST)
749 export sbl_multicore_amp_ordered_BOARDLIST
750 sbl_multicore_amp_ordered_$(SOC)_CORELIST = $($(SOC)_LASTCORE)
751 export sbl_multicore_amp_ordered_$(SOC)_CORELIST
752 ifneq ($(SOC), tpr12)
753 sbl_EXAMPLE_LIST += sbl_multicore_amp_ordered
754 endif
755 sbl_multicore_amp_ordered_SBL_APPIMAGEGEN = no
756 export sbl_multicore_amp_ordered_SBL_APPIMAGEGEN
758 # Individual Core Boot Test
759 sbl_boot_test_COMP_LIST = sbl_boot_test
760 sbl_boot_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
761 sbl_boot_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
762 sbl_boot_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
763 sbl_boot_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_boot_test.mk
764 export sbl_boot_test_MAKEFILE
765 sbl_boot_test_BOARD_DEPENDENCY = no
766 sbl_boot_test_SOC_DEPENDENCY = no
767 sbl_boot_test_CORE_DEPENDENCY = no
768 export sbl_boot_test_COMP_LIST
769 export sbl_boot_test_BOARD_DEPENDENCY
770 export sbl_boot_test_SOC_DEPENDENCY
771 export sbl_boot_test_CORE_DEPENDENCY
772 sbl_boot_test_PKG_LIST = sbl_boot_test
773 sbl_boot_test_INCLUDE = $(sbl_boot_test_PATH)
774 sbl_boot_test_BOARDLIST = $(sbl_BOARDLIST)
775 export sbl_boot_test_BOARDLIST
776 sbl_boot_test_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
777 export sbl_boot_test_$(SOC)_CORELIST
778 ifneq ($(SOC), tpr12)
779 sbl_EXAMPLE_LIST += sbl_boot_test
780 endif
781 sbl_boot_test_SBL_APPIMAGEGEN = yes
782 export sbl_boot_test_SBL_APPIMAGEGEN
784 # Multicore AMP Boot Test
785 sbl_multicore_amp_COMP_LIST = sbl_multicore_amp
786 sbl_multicore_amp_RELPATH = ti/boot/sbl/example/k3MulticoreApp
787 sbl_multicore_amp_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
788 sbl_multicore_amp_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
789 sbl_multicore_amp_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_amp.mk
790 export sbl_multicore_amp_MAKEFILE
791 # SBL multicore amp depends on sbl_boot_test for all the cores
792 sbl_multicore_amp_DEPENDS_ON=sbl_boot_test
793 export sbl_multicore_amp_DEPENDS_ON
794 sbl_multicore_amp_BOARD_DEPENDENCY = no
795 sbl_multicore_amp_SOC_DEPENDENCY = no
796 sbl_multicore_amp_CORE_DEPENDENCY = no
797 export sbl_multicore_amp_COMP_LIST
798 export sbl_multicore_amp_BOARD_DEPENDENCY
799 export sbl_multicore_amp_SOC_DEPENDENCY
800 export sbl_multicore_amp_CORE_DEPENDENCY
801 sbl_multicore_amp_PKG_LIST = sbl_multicore_amp
802 sbl_multicore_amp_INCLUDE = $(sbl_multicore_amp_PATH)
803 sbl_multicore_amp_BOARDLIST = $(sbl_BOARDLIST)
804 export sbl_multicore_amp_BOARDLIST
805 sbl_multicore_amp_$(SOC)_CORELIST = $($(SOC)_LASTCORE)
806 export sbl_multicore_amp_$(SOC)_CORELIST
807 ifneq ($(SOC), tpr12)
808 sbl_EXAMPLE_LIST += sbl_multicore_amp
809 endif
810 sbl_multicore_amp_SBL_APPIMAGEGEN = no
811 export sbl_multicore_amp_SBL_APPIMAGEGEN
813 # R5 Lockstep and MPU SMP Boot Test
814 sbl_smp_test_COMP_LIST = sbl_smp_test
815 sbl_smp_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
816 sbl_smp_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
817 sbl_smp_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
818 sbl_smp_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_smp_test.mk BOOTMODE=mmcsd
819 export sbl_smp_test_MAKEFILE
820 sbl_smp_test_BOARD_DEPENDENCY = no
821 sbl_smp_test_SOC_DEPENDENCY = no
822 sbl_smp_test_CORE_DEPENDENCY = no
823 export sbl_smp_test_COMP_LIST
824 export sbl_smp_test_BOARD_DEPENDENCY
825 export sbl_smp_test_SOC_DEPENDENCY
826 export sbl_smp_test_CORE_DEPENDENCY
827 sbl_smp_test_PKG_LIST = sbl_smp_test
828 sbl_smp_test_INCLUDE = $(sbl_smp_test_PATH)
829 sbl_smp_test_BOARDLIST = $(sbl_BOARDLIST)
830 export sbl_smp_test_BOARDLIST
831 sbl_smp_test_$(SOC)_CORELIST = $($(SOC)_smp_CORELIST)
832 export sbl_smp_test_$(SOC)_CORELIST
833 ifneq ($(SOC),$(filter $(SOC), am64x tpr12))
834 sbl_EXAMPLE_LIST += sbl_smp_test
835 endif
836 sbl_smp_test_SBL_APPIMAGEGEN = yes
837 export sbl_smp_test_SBL_APPIMAGEGEN
839 # Multicore SMP Boot Test
840 sbl_multicore_smp_COMP_LIST = sbl_multicore_smp
841 sbl_multicore_smp_RELPATH = ti/boot/sbl/example/k3MulticoreApp
842 sbl_multicore_smp_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
843 sbl_multicore_smp_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
844 sbl_multicore_smp_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_smp.mk
845 export sbl_multicore_smp_MAKEFILE
846 # SBL multicore smp depends on sbl_smp_test for all the cores
847 sbl_multicore_smp_DEPENDS_ON=sbl_smp_test
848 export sbl_multicore_smp_DEPENDS_ON
849 sbl_multicore_smp_BOARD_DEPENDENCY = no
850 sbl_multicore_smp_SOC_DEPENDENCY = no
851 sbl_multicore_smp_CORE_DEPENDENCY = no
852 export sbl_multicore_smp_COMP_LIST
853 export sbl_multicore_smp_BOARD_DEPENDENCY
854 export sbl_multicore_smp_SOC_DEPENDENCY
855 export sbl_multicore_smp_CORE_DEPENDENCY
856 sbl_multicore_smp_PKG_LIST = sbl_multicore_smp
857 sbl_multicore_smp_INCLUDE = $(sbl_multicore_smp_PATH)
858 sbl_multicore_smp_BOARDLIST = $(sbl_BOARDLIST)
859 export sbl_multicore_smp_BOARDLIST
860 sbl_multicore_smp_$(SOC)_CORELIST := $($(SOC)_LASTCORE)
861 export sbl_multicore_smp_$(SOC)_CORELIST
862 ifneq ($(SOC),$(filter $(SOC), am64x tpr12))
863 sbl_EXAMPLE_LIST += sbl_multicore_smp
864 endif
865 sbl_multicore_smp_SBL_APPIMAGEGEN = no
866 export sbl_multicore_smp_SBL_APPIMAGEGEN
868 # R5 boot XIP Test
869 sbl_boot_xip_test_COMP_LIST = sbl_boot_xip_test
870 sbl_boot_xip_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
871 sbl_boot_xip_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
872 sbl_boot_xip_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
873 sbl_boot_xip_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_mcu0_boot_xip_test.mk
874 export sbl_boot_xip_test_MAKEFILE
875 sbl_boot_xip_test_BOARD_DEPENDENCY = no
876 sbl_boot_xip_test_SOC_DEPENDENCY = no
877 sbl_boot_xip_test_CORE_DEPENDENCY = no
878 export sbl_boot_xip_test_COMP_LIST
879 export sbl_boot_xip_test_BOARD_DEPENDENCY
880 export sbl_boot_xip_test_SOC_DEPENDENCY
881 export sbl_boot_xip_test_CORE_DEPENDENCY
882 sbl_boot_xip_test_PKG_LIST = sbl_boot_xip_test
883 sbl_boot_xip_test_INCLUDE = $(sbl_boot_xip_test_PATH)
884 sbl_boot_xip_test_BOARDLIST = $(sbl_BOARDLIST)
885 export sbl_boot_xip_test_BOARDLIST
886 sbl_boot_xip_test_$(SOC)_CORELIST = mcu1_0
887 export sbl_boot_xip_test_$(SOC)_CORELIST
888 ifneq ($(SOC),$(filter $(SOC), tpr12))
889 sbl_EXAMPLE_LIST += sbl_boot_xip_test
890 endif
891 sbl_boot_xip_test_SBL_APPIMAGEGEN = yes
892 sbl_boot_xip_test_SBL_APP_BINIMAGEGEN = yes
893 sbl_boot_xip_test_SBL_APP_BIN_SECTIONS = --only-section .rstvectors --only-section .sbl_mcu_1_0_resetvector
894 export sbl_boot_xip_test_SBL_APPIMAGEGEN
895 export sbl_boot_xip_test_SBL_APP_BINIMAGEGEN
896 export sbl_boot_xip_test_SBL_APP_BIN_SECTIONS
898 # R5 boot XIP entry
899 sbl_boot_xip_entry_COMP_LIST = sbl_boot_xip_entry
900 sbl_boot_xip_entry_RELPATH = ti/boot/sbl/example/k3MulticoreApp
901 sbl_boot_xip_entry_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
902 sbl_boot_xip_entry_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
903 sbl_boot_xip_entry_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_mcu0_boot_xip_entry.mk
904 export sbl_boot_xip_entry_MAKEFILE
905 sbl_boot_xip_entry_BOARD_DEPENDENCY = no
906 sbl_boot_xip_entry_SOC_DEPENDENCY = no
907 sbl_boot_xip_entry_CORE_DEPENDENCY = no
908 export sbl_boot_xip_entry_COMP_LIST
909 export sbl_boot_xip_entry_BOARD_DEPENDENCY
910 export sbl_boot_xip_entry_SOC_DEPENDENCY
911 export sbl_boot_xip_entry_CORE_DEPENDENCY
912 sbl_boot_xip_entry_PKG_LIST = sbl_boot_xip_entry
913 sbl_boot_xip_entry_INCLUDE = $(sbl_boot_xip_entry_PATH)
914 sbl_boot_xip_entry_BOARDLIST = $(sbl_BOARDLIST)
915 export sbl_boot_xip_entry_BOARDLIST
916 sbl_boot_xip_entry_$(SOC)_CORELIST = mcu1_0
917 export sbl_boot_xip_entry_$(SOC)_CORELIST
918 ifneq ($(SOC),$(filter $(SOC), tpr12))
919 sbl_EXAMPLE_LIST += sbl_boot_xip_entry
920 endif
921 sbl_boot_xip_entry_SBL_APPIMAGEGEN = yes
922 export sbl_boot_xip_entry_SBL_APPIMAGEGEN
924 # Display profiling info before MCU1_0 boot
925 # increases delay time, between end of SBL
926 # and start of app, but useful for
927 # debugging and tuning performace knobs
928 #SBL_CFLAGS += -DSBL_DISPLAY_PROFILE_INFO
930 ifeq ($(SOC), am64x)
931 SBL_CFLAGS += -DSBL_BYPASS_OSPI_DRIVER_FOR_SYSFW_DOWNLOAD
932 endif
934 ###### Use boot_perf_benchmark example#######
935 ###### to fine tune the perf knobs  #########
937 ###########START BOOT PERF KNOBS#############
938 # SBL log level
939 # no logs = 0, only errors =1, normal logs = 2, all logs = 3
941 ifeq ($(SOC), tpr12)
942 SBL_CFLAGS += -DSBL_LOG_LEVEL=0
943 else
944 SBL_CFLAGS += -DSBL_LOG_LEVEL=2
945 endif
947 SBL_CFLAGS += -DSBL_ENABLE_PLL
948 SBL_CFLAGS += -DSBL_ENABLE_CLOCKS
949 SBL_CFLAGS += -DSBL_ENABLE_DDR
951 ############################################
952 # DISABLING the options above this caption
953 # improves boot time at the cost of moving
954 # PLL, LPSC and DDR init to the app
956 # ENABLING the options below this caption
957 # improves boot time by skipping stuff SBL
958 # usually does.
959 ###########################################
960 # If enabled, the SBL will branch to the start
961 # of MCU_0 app without resetting the core
962 # if csl defaults are godd enough this enables
963 # app to skip redoing mcu initialization
964 #SBL_CFLAGS += -DSBL_SKIP_MCU_RESET
966 # If enabled, SBL will skip initializing
967 # sysfw. The SBL will only load it.
968 # No SCI Client APIs will work. Saves
969 # boot time. When this is enabled
970 # make sure that SBL_SKIP_MCU_RESET is also
971 # enabled, as resetting a core needs SYSFW
972 # to be running.
973 # SBL_CFLAGS += -DSBL_SKIP_SYSFW_INIT
975 # If enabled, SBL will skip calling
976 # Sciclient_boardCfg* API.  Enabling
977 # it saves boot time, can affect
978 # functionality. The app must call the
979 # Sciclient_boardCfg* APIs that the SBL
980 # skips. Like for eg, if SBL skips calling
981 # Sciclient_boardCfgPm, then Sciclient_boardCfgRm
982 # and Sciclient_boardCfgSec must also
983 # be skipped.
984 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_BOARD
985 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_RM
986 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_SEC
987 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_PM
989 # If enabled, SBL will only enable the Clocks
990 # and PLLs for the MCU domain. Clocks and PLLs
991 # for the Main domaincan be initialized by the
992 # app to save boot time or if the application
993 # usecase demands it.
994 #SBL_CFLAGS += -DSBL_ENABLE_DEV_GRP_MCU
996 # If enabled, SBL will use alternate
997 # config steps to directly boot an HLOS,
998 # including an alternate set of Sciclient
999 # RM board cfg settings.
1000 # NOTE: Currently supported only for J721E, J7200
1001 #SBL_CFLAGS += -DSBL_ENABLE_HLOS_BOOT
1003 # If enabled, SBL will not leave the OSPI
1004 # flash in XIP mode, so that the MAIN
1005 # domain Cortex-A code (HLOS) can reset
1006 # the flash and take control of it, if
1007 # needed.
1008 #SBL_CFLAGS += -DSBL_HLOS_OWNS_FLASH
1010 # If enabled, SBL will skip any PINMUX
1011 # init being used in the bootloader and
1012 # expect that it will be handled by
1013 # another app.
1014 #SBL_CFLAGS += -DSBL_SKIP_PINMUX_ENABLE
1016 # If enabled, SBL will skip handling the
1017 # SoC Late Init functions normally contained
1018 # in SBL_SocLateInit()
1019 #SBL_CFLAGS += -DSBL_SKIP_LATE_INIT
1021 # If enabled, the SBL will configure & use
1022 # resources in the MCU domain ONLY to
1023 # enable MCU-only code to run.
1024 #SBL_CFLAGS += -DSBL_USE_MCU_DOMAIN_ONLY
1026 # If enabled for OSPI boot the SBL will bypass the
1027 # OSPI driver completely and let ROM copy the sysftw/application
1028 # from flash.
1029 #SBL_CFLAGS += -DSBL_BYPASS_OSPI_DRIVER
1031 # If enabled for OSPI boot the SBL will bypass the
1032 # OSPI driver for system firmware download and use the OSPI driver for 
1033 # downloading application from the flash
1034 #SBL_CFLAGS += -DSBL_BYPASS_OSPI_DRIVER_FOR_SYSFW_DOWNLOAD
1036 # If enabled the SBL image is built for running on VLAB simulation.
1037 #SBL_CFLAGS += -DVLAB_SIM
1039 ###########END BOOT PERF KNOBS#############
1041 # Example - Building Custom SBL Images
1042 # Build and SBl with custom flags to change
1043 # different build configurations
1044 CUST_SBL_TEST_SOCS = am65xx j721e j7200 am64x_evm
1045 CUST_SBL_TEST_BOARDS = am65xx_evm j721e_evm j7200_evm am64x_evm
1046 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=1 -DSBL_LOG_LEVEL=0 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_SKIP_MCU_RESET  -DBOOT_OSPI "
1047 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=1 -DSBL_LOG_LEVEL=0 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SKIP_MCU_RESET -DSBL_SKIP_BRD_CFG_PM -DBOOT_OSPI "
1048 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=0 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_SKIP_SYSFW_INIT -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
1049 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=1 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0xB8000000 -DSBL_SCRATCH_MEM_SIZE=0x4000000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_ENABLE_DDR -DSBL_SKIP_MCU_RESET -DBOOT_OSPI"
1050 ifeq ($(SOC), j7200)
1051 CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=2 -DSBL_SCRATCH_MEM_START=0x41cc0000 -DSBL_SCRATCH_MEM_SIZE=0x40000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH"
1052 else
1053   ifeq ($(findstring j7,$(SOC)),j7)
1054 CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x41cc0000 -DSBL_SCRATCH_MEM_SIZE=0x40000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH"
1055 # Custom example: Early CAN response (NOTE: before using the line below, comment out the line above)
1056 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x41cc0000 -DSBL_SCRATCH_MEM_SIZE=0x40000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH -DSBL_SKIP_PINMUX_ENABLE -DSBL_SKIP_LATE_INIT -DSBL_USE_MCU_DOMAIN_ONLY"
1057   else
1058 CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=1 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DSBL_SKIP_MCU_RESET -DBOOT_OSPI -DSBL_ENABLE_DEV_GRP_MCU -DSBL_HLOS_OWNS_FLASH"
1059   endif
1060 #Custom configuration for AM64x OSPI Boot
1061 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=3 -DSBL_SCRATCH_MEM_START=0x70100000 -DSBL_SCRATCH_MEM_SIZE=0xF0000 -DSBL_ENABLE_PLL -DSBL_ENABLE_CLOCKS -DBOOT_OSPI -DSBL_ENABLE_DDR  -DSBL_BYPASS_OSPI_DRIVER"
1062 endif
1064 # SBL Custom LIB
1065 sbl_lib_cust_COMP_LIST = sbl_lib_cust
1066 sbl_lib_cust_RELPATH = ti/boot/sbl
1067 export sbl_lib_cust_OBJPATH = ti/boot/sbl/cust
1068 sbl_lib_cust_LIBNAME = sbl_lib_cust
1069 sbl_lib_cust_PATH = $(PDK_SBL_COMP_PATH)
1070 sbl_lib_cust_LIBNAME = sbl_lib_cust
1071 sbl_lib_cust_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/cust
1072 sbl_lib_cust_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=cust SBL_USE_DMA=no CUST_SBL_FLAGS=$(CUST_SBL_TEST_FLAGS)
1073 export sbl_lib_cust_MAKEFILE
1074 export sbl_lib_cust_LIBNAME
1075 export sbl_lib_cust_LIBPATH
1076 sbl_lib_cust_BOARD_DEPENDENCY = yes
1077 sbl_lib_cust_SOC_DEPENDENCY = yes
1078 sbl_lib_cust_CORE_DEPENDENCY = no
1079 export sbl_lib_cust_COMP_LIST
1080 export sbl_lib_cust_BOARD_DEPENDENCY
1081 export sbl_lib_cust_CORE_DEPENDENCY
1082 sbl_lib_cust_PKG_LIST = sbl_lib_cust
1083 sbl_lib_cust_INCLUDE = $(sbl_lib_cust_PATH)
1084 sbl_lib_cust_SOCLIST = $(CUST_SBL_TEST_SOCS)
1085 sbl_lib_cust_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
1086 export sbl_lib_cust_SOCLIST
1087 export sbl_lib_cust_BOARDLIST
1088 sbl_lib_cust_$(SOC)_CORELIST = mcu1_0
1089 export sbl_lib_cust_$(SOC)_CORELIST
1091 # SBL custom image
1092 sbl_cust_img_COMP_LIST = sbl_cust_img
1093 sbl_cust_img_RELPATH = ti/boot/sbl/board/k3
1094 sbl_cust_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/cust/bin
1095 sbl_cust_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
1096 sbl_cust_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=cust SBL_USE_DMA=no BUILD_HS=no CUST_SBL_FLAGS=$(CUST_SBL_TEST_FLAGS)
1097 export sbl_cust_img_MAKEFILE
1098 export sbl_cust_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
1099 sbl_cust_img_BOARD_DEPENDENCY = yes
1100 sbl_cust_img_SOC_DEPENDENCY = yes
1101 sbl_cust_img_CORE_DEPENDENCY = no
1102 export sbl_cust_img_COMP_LIST
1103 export sbl_cust_img_BOARD_DEPENDENCY
1104 export sbl_cust_img_SOC_DEPENDENCY
1105 export sbl_cust_img_CORE_DEPENDENCY
1106 sbl_cust_img_PKG_LIST = sbl
1107 sbl_cust_img_INCLUDE = $(sbl_cust_img_PATH)
1108 sbl_cust_img_SOCLIST = $(CUST_SBL_TEST_SOCS)
1109 sbl_cust_img_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
1110 export sbl_cust_img_SOCLIST
1111 export sbl_cust_img_BOARDLIST
1112 sbl_cust_img_$(SOC)_CORELIST = mcu1_0
1113 export sbl_cust_img_$(SOC)_CORELIST
1114 ifneq ($(SOC), am64x tpr12)
1115 sbl_EXAMPLE_LIST += sbl_cust_img
1116 endif
1117 sbl_cust_img_SBL_IMAGEGEN = yes
1118 export sbl_cust_img_SBL_IMAGEGEN
1120 # SBL custom image - For HS build
1121 export sbl_cust_img_hs_COMP_LIST = sbl_cust_img_hs
1122 sbl_cust_img_hs_RELPATH = ti/boot/sbl/board/k3
1123 sbl_cust_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/cust/bin
1124 #Note: The below variable is purposefully set to build folder - different than
1125 #non-hs app.
1126 #The APPNAME or app -C directory (_PATH variable) should be unique as the complier
1127 #creates lto_$APPNAME optimization file in the directory in which -C is called
1128 #Because of this multiple lto_ files with same name can be created if app name
1129 #and app path are same
1130 sbl_cust_img_hs_PATH = $(PDK_SBL_COMP_PATH)/build
1131 export sbl_cust_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk CUST_SBL_FLAGS=$(CUST_SBL_TEST_FLAGS) BOOTMODE=cust SBL_USE_DMA=no BUILD_HS=yes
1132 export sbl_cust_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
1133 export sbl_cust_img_hs_BOARD_DEPENDENCY = yes
1134 export sbl_cust_img_hs_SOC_DEPENDENCY = yes
1135 export sbl_cust_img_hs_CORE_DEPENDENCY = no
1136 sbl_cust_img_hs_PKG_LIST = sbl
1137 sbl_cust_img_hs_INCLUDE = $(sbl_cust_img_hs_PATH)
1138 export sbl_cust_img_hs_SOCLIST = $(CUST_SBL_TEST_SOCS)
1139 export sbl_cust_img_hs_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
1140 export sbl_cust_img_hs_$(SOC)_CORELIST = mcu1_0
1141 export sbl_cust_img_hs_SBL_IMAGEGEN = yes
1142 ifneq ($(SOC),$(filter $(SOC), am64x j7200 tpr12))
1143 sbl_EXAMPLE_LIST += sbl_cust_img_hs
1144 endif
1146 # R5 boot performance Test - works only with custom SBL
1147 sbl_boot_perf_test_COMP_LIST = sbl_boot_perf_test
1148 sbl_boot_perf_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
1149 sbl_boot_perf_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
1150 sbl_boot_perf_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
1151 sbl_boot_perf_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_mcu0_boot_perf_test.mk BOOTMODE=cust CUST_SBL_FLAGS=$(CUST_SBL_TEST_FLAGS)
1152 export sbl_boot_perf_test_MAKEFILE
1153 sbl_boot_perf_test_BOARD_DEPENDENCY = no
1154 sbl_boot_perf_test_SOC_DEPENDENCY = no
1155 sbl_boot_perf_test_CORE_DEPENDENCY = no
1156 export sbl_boot_perf_test_COMP_LIST
1157 export sbl_boot_perf_test_BOARD_DEPENDENCY
1158 export sbl_boot_perf_test_SOC_DEPENDENCY
1159 export sbl_boot_perf_test_CORE_DEPENDENCY
1160 sbl_boot_perf_test_PKG_LIST = sbl_boot_perf_test
1161 sbl_boot_perf_test_INCLUDE = $(sbl_boot_perf_test_PATH)
1162 sbl_boot_perf_test_SOCLIST = $(CUST_SBL_TEST_SOCS)
1163 sbl_boot_perf_test_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
1164 export sbl_boot_perf_test_SOCLIST
1165 export sbl_boot_perf_test_BOARDLIST
1166 sbl_boot_perf_test_$(SOC)_CORELIST = mcu1_0
1167 export sbl_boot_perf_test_$(SOC)_CORELIST
1168 ifneq ($(SOC), am64x tpr12)
1169 sbl_EXAMPLE_LIST += sbl_boot_perf_test
1170 endif
1171 sbl_boot_perf_test_SBL_APPIMAGEGEN = yes
1172 export sbl_boot_perf_test_SBL_APPIMAGEGEN
1174 # TPR12 QT Test Bench image
1175 ifeq ($(SOC), tpr12)
1176 sbl_r4tb_COMP_LIST = sbl_r4tb
1177 sbl_r4tb_RELPATH = ti/boot/sbl/example/tpr12MulticoreApp/r4_tb
1178 sbl_r4tb_BINPATH = $(PDK_SBL_COMP_PATH)/example/tpr12MulticoreApp/r4_tb/obj
1179 sbl_r4tb_PATH = $(PDK_SBL_COMP_PATH)/example/tpr12MulticoreApp/r4_tb
1180 sbl_r4tb_MAKEFILE = -f$(sbl_r4tb_PATH)/makefile all R4_TB_PATH:=${sbl_r4tb_PATH} R4_CODEGEN_INSTALL_PATH:=${TOOLCHAIN_PATH_R5}
1181 export sbl_r4tb_MAKEFILE
1182 sbl_r4tb_BOARD_DEPENDENCY = no
1183 sbl_r4tb_SOC_DEPENDENCY = no
1184 sbl_r4tb_CORE_DEPENDENCY = no
1185 export sbl_r4tb_COMP_LIST
1186 export sbl_r4tb_BOARD_DEPENDENCY
1187 export sbl_r4tb_SOC_DEPENDENCY
1188 export sbl_r4tb_CORE_DEPENDENCY
1189 sbl_r4tb_PKG_LIST = sbl_r4tb
1190 sbl_r4tb_INCLUDE = $(sbl_r4tb_PATH)
1191 sbl_r4tb_BOARDLIST = tpr12_evm
1192 export sbl_r4tb_BOARDLIST
1193 sbl_r4tb_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
1194 export sbl_r4tb_$(SOC)_CORELIST
1195 sbl_r4tb_SBL_APPIMAGEGEN = no
1196 export sbl_r4tb_SBL_APPIMAGEGEN
1197 endif
1199 ifeq ($(SOC), tpr12)
1200 # R5 Lockstep and DSP Boot Test
1201 sbl_tpr12_test_COMP_LIST = sbl_tpr12_test
1202 sbl_tpr12_test_RELPATH = ti/boot/sbl/example/tpr12MulticoreApp
1203 sbl_tpr12_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/tpr12MulticoreApp/binary
1204 sbl_tpr12_test_PATH = $(PDK_SBL_COMP_PATH)/example/tpr12MulticoreApp
1205 sbl_tpr12_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_tpr12_test.mk BOOTMODE=uart
1206 export sbl_tpr12_test_MAKEFILE
1207 sbl_tpr12_test_BOARD_DEPENDENCY = no
1208 sbl_tpr12_test_SOC_DEPENDENCY = no
1209 sbl_tpr12_test_CORE_DEPENDENCY = no
1210 export sbl_tpr12_test_COMP_LIST
1211 export sbl_tpr12_test_BOARD_DEPENDENCY
1212 export sbl_tpr12_test_SOC_DEPENDENCY
1213 export sbl_tpr12_test_CORE_DEPENDENCY
1214 sbl_tpr12_test_PKG_LIST = sbl_tpr12_test
1215 sbl_tpr12_test_INCLUDE = $(sbl_tpr12_test_PATH)
1216 sbl_tpr12_test_BOARDLIST = $(sbl_BOARDLIST)
1217 export sbl_tpr12_test_BOARDLIST
1218 sbl_tpr12_test_$(SOC)_CORELIST = $(sbl_tpr12_CORELIST)
1219 export sbl_tpr12_test_$(SOC)_CORELIST
1220 sbl_EXAMPLE_LIST += sbl_tpr12_test
1221 sbl_tpr12_test_SBL_APPIMAGEGEN = no
1222 export sbl_tpr12_test_SBL_APPIMAGEGEN
1223 endif
1225 # SBL not supported for any profile
1226 # other than release
1227 ifneq ($(BUILD_PROFILE), release)
1228 ifneq ($(SOC), tpr12)
1229 sbl_LIB_LIST =
1230 sbl_EXAMPLE_LIST =
1231 SBL_CFLAGS =
1232 endif # TPR12 Debug SBL build support
1233 endif # ifneq ($(BUILD_PROFILE), release)
1235 export sbl_LIB_LIST
1236 export sbl_EXAMPLE_LIST
1237 export SBL_CFLAGS
1239 sbl_component_make_include := 1
1240 endif