]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/boot/sbl/sbl_component.mk
AM64x SBL Fix
[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 am64x_evm
71 sbl_SOCLIST = am65xx j721e am64x
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 am64x_smp_CORELIST := mcu1_0 mcu2_0 mpu1_0
82 sbl_am64x_CORELIST := mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mpu1_0 mpu1_1
83 am64x_LASTCORE := $(word $(words $(sbl_am64x_CORELIST)), $(sbl_am64x_CORELIST))
85 sbl_DISABLE_PARALLEL_MAKE = yes
86 ############################
87 # sbl package
88 # List of components included under sbl
89 # The components included here are built and will be part of sbl
90 ############################
92 ifeq ($(SOC), am64x)
93 sbl_LIB_LIST = sbl_lib_ospi_nondma
94 else
95 sbl_LIB_LIST = sbl_lib_mmcsd sbl_lib_ospi sbl_lib_uart sbl_lib_hyperflash sbl_lib_cust
96 sbl_LIB_LIST += sbl_lib_ospi_nondma
97 endif
99 ############################
100 # sbl example
101 # List of examples under sbl (+= is used at each example definition)
102 # All the tests mentioned in list are built when test target is called
103 # List below all examples for allowed values
104 ############################
105 ifeq ($(SOC), am64x)
106 sbl_EXAMPLE_LIST = sbl_ospi_img
107 else
108 sbl_EXAMPLE_LIST = sbl_mmcsd_img sbl_ospi_img sbl_hyperflash_img sbl_uart_img
109 sbl_EXAMPLE_LIST += sbl_mmcsd_img_hs sbl_ospi_img_hs sbl_hyperflash_img_hs sbl_uart_img_hs
110 endif
113 # SBL Modules
116 # SBL MMCSD LIB
117 sbl_lib_mmcsd_COMP_LIST = sbl_lib_mmcsd
118 sbl_lib_mmcsd_RELPATH = ti/boot/sbl
119 export sbl_lib_mmcsd_OBJPATH = ti/boot/sbl/mmcsd
120 sbl_lib_mmcsd_LIBNAME = sbl_lib_mmcsd
121 sbl_lib_mmcsd_PATH = $(PDK_SBL_COMP_PATH)
122 sbl_lib_mmcsd_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/mmcsd
123 sbl_lib_mmcsd_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=mmcsd SBL_USE_DMA=yes
124 export sbl_lib_mmcsd_MAKEFILE
125 export sbl_lib_mmcsd_LIBNAME
126 export sbl_lib_mmcsd_LIBPATH
127 sbl_lib_mmcsd_BOARD_DEPENDENCY = yes
128 sbl_lib_mmcsd_SOC_DEPENDENCY = yes
129 sbl_lib_mmcsd_CORE_DEPENDENCY = no
130 export sbl_lib_mmcsd_COMP_LIST
131 export sbl_lib_mmcsd_BOARD_DEPENDENCY
132 export sbl_lib_mmcsd_CORE_DEPENDENCY
133 sbl_lib_mmcsd_PKG_LIST = sbl_lib_mmcsd
134 sbl_lib_mmcsd_INCLUDE = $(sbl_lib_mmcsd_PATH)
135 sbl_lib_mmcsd_SOCLIST = $(sbl_SOCLIST)
136 sbl_lib_mmcsd_BOARDLIST = $(sbl_BOARDLIST)
137 export sbl_lib_mmcsd_SOCLIST
138 export sbl_lib_mmcsd_BOARDLIST
139 sbl_lib_mmcsd_$(SOC)_CORELIST = mcu1_0
140 export sbl_lib_mmcsd_$(SOC)_CORELIST
142 # SBL OSPI LIB
143 sbl_lib_ospi_COMP_LIST = sbl_lib_ospi
144 sbl_lib_ospi_RELPATH = ti/boot/sbl
145 export sbl_lib_ospi_OBJPATH = ti/boot/sbl/ospi
146 sbl_lib_ospi_LIBNAME = sbl_lib_ospi
147 sbl_lib_ospi_PATH = $(PDK_SBL_COMP_PATH)
148 sbl_lib_ospi_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi
149 sbl_lib_ospi_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi SBL_USE_DMA=yes
150 export sbl_lib_ospi_MAKEFILE
151 export sbl_lib_ospi_LIBNAME
152 export sbl_lib_ospi_LIBPATH
153 sbl_lib_ospi_BOARD_DEPENDENCY = yes
154 sbl_lib_ospi_SOC_DEPENDENCY = yes
155 sbl_lib_ospi_CORE_DEPENDENCY = no
156 export sbl_lib_ospi_COMP_LIST
157 export sbl_lib_ospi_BOARD_DEPENDENCY
158 export sbl_lib_ospi_CORE_DEPENDENCY
159 sbl_lib_ospi_PKG_LIST = sbl_lib_ospi
160 sbl_lib_ospi_INCLUDE = $(sbl_lib_ospi_PATH)
161 sbl_lib_ospi_SOCLIST = $(sbl_SOCLIST)
162 sbl_lib_ospi_BOARDLIST = $(sbl_BOARDLIST)
163 export sbl_lib_ospi_SOCLIST
164 export sbl_lib_ospi_BOARDLIST
165 sbl_lib_ospi_$(SOC)_CORELIST = mcu1_0
166 export sbl_lib_ospi_$(SOC)_CORELIST
168 # SBL OSPI LIB with NON-DMA - Needed for HS SBL
169 export sbl_lib_ospi_nondma_COMP_LIST = sbl_lib_ospi_nondma
170 sbl_lib_ospi_nondma_RELPATH = ti/boot/sbl
171 export sbl_lib_ospi_nondma_OBJPATH = ti/boot/sbl/ospi_nondma
172 sbl_lib_ospi_nondma_PATH = $(PDK_SBL_COMP_PATH)
173 export sbl_lib_ospi_nondma_LIBNAME = sbl_lib_ospi_nondma
174 export sbl_lib_ospi_nondma_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi
175 export sbl_lib_ospi_nondma_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi SBL_USE_DMA=no
176 export sbl_lib_ospi_nondma_BOARD_DEPENDENCY = yes
177 export sbl_lib_ospi_nondma_SOC_DEPENDENCY = yes
178 export sbl_lib_ospi_nondma_CORE_DEPENDENCY = no
179 sbl_lib_ospi_nondma_PKG_LIST = sbl_lib_ospi_nondma
180 sbl_lib_ospi_nondma_INCLUDE = $(sbl_lib_ospi_nondma_PATH)
181 export sbl_lib_ospi_nondma_SOCLIST = $(sbl_SOCLIST)
182 export sbl_lib_ospi_nondma_BOARDLIST = $(sbl_BOARDLIST)
183 export sbl_lib_ospi_nondma_$(SOC)_CORELIST = mcu1_0
185 # SBL HYPERFLASH LIB
186 sbl_lib_hyperflash_COMP_LIST = sbl_lib_hyperflash
187 sbl_lib_hyperflash_RELPATH = ti/boot/sbl
188 export sbl_lib_hyperflash_OBJPATH = ti/boot/sbl/hyperflash
189 sbl_lib_hyperflash_LIBNAME = sbl_lib_hyperflash
190 sbl_lib_hyperflash_PATH = $(PDK_SBL_COMP_PATH)
191 sbl_lib_hyperflash_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/hyperflash
192 sbl_lib_hyperflash_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=hyperflash SBL_USE_DMA=yes
193 export sbl_lib_hyperflash_MAKEFILE
194 export sbl_lib_hyperflash_LIBNAME
195 export sbl_lib_hyperflash_LIBPATH
196 sbl_lib_hyperflash_BOARD_DEPENDENCY = yes
197 sbl_lib_hyperflash_SOC_DEPENDENCY = yes
198 sbl_lib_hyperflash_CORE_DEPENDENCY = no
199 export sbl_lib_hyperflash_COMP_LIST
200 export sbl_lib_hyperflash_BOARD_DEPENDENCY
201 export sbl_lib_hyperflash_CORE_DEPENDENCY
202 sbl_lib_hyperflash_PKG_LIST = sbl_lib_hyperflash
203 sbl_lib_hyperflash_INCLUDE = $(sbl_lib_hyperflash_PATH)
204 sbl_lib_hyperflash_SOCLIST = j721e
205 sbl_lib_hyperflash_BOARDLIST = j721e_evm
206 export sbl_lib_hyperflash_SOCLIST
207 export sbl_lib_hyperflash_BOARDLIST
208 sbl_lib_hyperflash_$(SOC)_CORELIST = mcu1_0
209 export sbl_lib_hyperflash_$(SOC)_CORELIST
211 # SBL UART LIB
212 sbl_lib_uart_COMP_LIST = sbl_lib_uart
213 sbl_lib_uart_RELPATH = ti/boot/sbl
214 export sbl_lib_uart_OBJPATH = ti/boot/sbl/uart
215 sbl_lib_uart_LIBNAME = sbl_lib_uart
216 sbl_lib_uart_PATH = $(PDK_SBL_COMP_PATH)
217 sbl_lib_uart_LIBNAME = sbl_lib_uart
218 sbl_lib_uart_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/uart
219 sbl_lib_uart_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=uart SBL_USE_DMA=yes
220 export sbl_lib_uart_MAKEFILE
221 export sbl_lib_uart_LIBNAME
222 export sbl_lib_uart_LIBPATH
223 sbl_lib_uart_BOARD_DEPENDENCY = yes
224 sbl_lib_uart_SOC_DEPENDENCY = yes
225 sbl_lib_uart_CORE_DEPENDENCY = no
226 export sbl_lib_uart_COMP_LIST
227 export sbl_lib_uart_BOARD_DEPENDENCY
228 export sbl_lib_uart_CORE_DEPENDENCY
229 sbl_lib_uart_PKG_LIST = sbl_lib_uart
230 sbl_lib_uart_INCLUDE = $(sbl_lib_uart_PATH)
231 sbl_lib_uart_SOCLIST = $(sbl_SOCLIST)
232 sbl_lib_uart_BOARDLIST = $(sbl_BOARDLIST)
233 export sbl_lib_uart_SOCLIST
234 export sbl_lib_uart_BOARDLIST
235 sbl_lib_uart_$(SOC)_CORELIST = mcu1_0
236 export sbl_lib_uart_$(SOC)_CORELIST
239 # SBL Examples
241 # SBL MMCSD Image
242 sbl_mmcsd_img_COMP_LIST = sbl_mmcsd_img
243 sbl_mmcsd_img_RELPATH = ti/boot/sbl/board/k3
244 sbl_mmcsd_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/mmcsd/bin
245 sbl_mmcsd_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
246 sbl_mmcsd_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd SBL_USE_DMA=yes BUILD_HS=no
247 export sbl_mmcsd_img_MAKEFILE
248 export sbl_mmcsd_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
249 sbl_mmcsd_img_BOARD_DEPENDENCY = yes
250 sbl_mmcsd_img_SOC_DEPENDENCY = yes
251 sbl_mmcsd_img_CORE_DEPENDENCY = no
252 export sbl_mmcsd_img_COMP_LIST
253 export sbl_mmcsd_img_BOARD_DEPENDENCY
254 export sbl_mmcsd_img_SOC_DEPENDENCY
255 export sbl_mmcsd_img_CORE_DEPENDENCY
256 sbl_mmcsd_img_PKG_LIST = sbl
257 sbl_mmcsd_img_INCLUDE = $(sbl_mmcsd_img_PATH)
258 sbl_mmcsd_img_BOARDLIST = $(sbl_BOARDLIST)
259 export sbl_mmcsd_img_BOARDLIST
260 sbl_mmcsd_img_$(SOC)_CORELIST = mcu1_0
261 export sbl_mmcsd_img_$(SOC)_CORELIST
262 sbl_mmcsd_img_SBL_IMAGEGEN = yes
263 export sbl_mmcsd_img_SBL_IMAGEGEN
265 # SBL MMCSD Image - For HS build
266 export sbl_mmcsd_img_hs_COMP_LIST = sbl_mmcsd_img_hs
267 sbl_mmcsd_img_hs_RELPATH = ti/boot/sbl/board/k3
268 sbl_mmcsd_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/mmcsd/bin
269 sbl_mmcsd_img_hs_PATH = $(PDK_SBL_COMP_PATH)/board/k3
270 export sbl_mmcsd_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd SBL_USE_DMA=no BUILD_HS=yes
271 export sbl_mmcsd_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
272 export sbl_mmcsd_img_hs_BOARD_DEPENDENCY = yes
273 export sbl_mmcsd_img_hs_SOC_DEPENDENCY = yes
274 export sbl_mmcsd_img_hs_CORE_DEPENDENCY = no
275 sbl_mmcsd_img_hs_PKG_LIST = sbl
276 sbl_mmcsd_img_hs_INCLUDE = $(sbl_mmcsd_img_hs_PATH)
277 export sbl_mmcsd_img_hs_BOARDLIST = $(sbl_BOARDLIST)
278 export sbl_mmcsd_img_hs_$(SOC)_CORELIST = mcu1_0
279 export sbl_mmcsd_img_hs_SBL_IMAGEGEN = yes
281 # SBL OSPI Image
282 sbl_ospi_img_COMP_LIST = sbl_ospi_img
283 sbl_ospi_img_RELPATH = ti/boot/sbl/board/k3
284 sbl_ospi_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/ospi/bin
285 sbl_ospi_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
286 sbl_ospi_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=yes BUILD_HS=no
287 export sbl_ospi_img_MAKEFILE
288 export sbl_ospi_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
289 sbl_ospi_img_BOARD_DEPENDENCY = yes
290 sbl_ospi_img_SOC_DEPENDENCY = yes
291 sbl_ospi_img_CORE_DEPENDENCY = no
292 export sbl_ospi_img_COMP_LIST
293 export sbl_ospi_img_BOARD_DEPENDENCY
294 export sbl_ospi_img_SOC_DEPENDENCY
295 export sbl_ospi_img_CORE_DEPENDENCY
296 sbl_ospi_img_PKG_LIST = sbl
297 sbl_ospi_img_INCLUDE = $(sbl_ospi_img_PATH)
298 sbl_ospi_img_BOARDLIST = $(sbl_BOARDLIST)
299 export sbl_ospi_img_BOARDLIST
300 sbl_ospi_img_$(SOC)_CORELIST = mcu1_0
301 export sbl_ospi_img_$(SOC)_CORELIST
302 sbl_ospi_img_SBL_IMAGEGEN = yes
303 export sbl_ospi_img_SBL_IMAGEGEN
305 # SBL OSPI Image - For HS build
306 export sbl_ospi_img_hs_COMP_LIST = sbl_ospi_img_hs
307 sbl_ospi_img_hs_RELPATH = ti/boot/sbl/board/k3
308 sbl_ospi_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/ospi/bin
309 sbl_ospi_img_hs_PATH = $(PDK_SBL_COMP_PATH)/board/k3
310 export sbl_ospi_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi SBL_USE_DMA=no BUILD_HS=yes
311 export sbl_ospi_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
312 export sbl_ospi_img_hs_BOARD_DEPENDENCY = yes
313 export sbl_ospi_img_hs_SOC_DEPENDENCY = yes
314 export sbl_ospi_img_hs_CORE_DEPENDENCY = no
315 sbl_ospi_img_hs_PKG_LIST = sbl
316 sbl_ospi_img_hs_INCLUDE = $(sbl_ospi_img_hs_PATH)
317 export sbl_ospi_img_hs_BOARDLIST = $(sbl_BOARDLIST)
318 export sbl_ospi_img_hs_$(SOC)_CORELIST = mcu1_0
319 export sbl_ospi_img_hs_SBL_IMAGEGEN = yes
321 # SBL HYPERFLASH Image
322 sbl_hyperflash_img_COMP_LIST = sbl_hyperflash_img
323 sbl_hyperflash_img_RELPATH = ti/boot/sbl/board/k3
324 sbl_hyperflash_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/hyperflash/bin
325 sbl_hyperflash_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
326 sbl_hyperflash_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=hyperflash SBL_USE_DMA=yes BUILD_HS=no
327 export sbl_hyperflash_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
328 export sbl_hyperflash_img_MAKEFILE
329 sbl_hyperflash_img_BOARD_DEPENDENCY = yes
330 sbl_hyperflash_img_SOC_DEPENDENCY = yes
331 sbl_hyperflash_img_CORE_DEPENDENCY = no
332 export sbl_hyperflash_img_COMP_LIST
333 export sbl_hyperflash_img_BOARD_DEPENDENCY
334 export sbl_hyperflash_img_SOC_DEPENDENCY
335 export sbl_hyperflash_img_CORE_DEPENDENCY
336 sbl_hyperflash_img_PKG_LIST = sbl
337 sbl_hyperflash_img_INCLUDE = $(sbl_hyperflash_img_PATH)
338 sbl_hyperflash_img_BOARDLIST = j721e_evm
339 export sbl_hyperflash_img_BOARDLIST
340 sbl_hyperflash_img_$(SOC)_CORELIST = mcu1_0
341 export sbl_hyperflash_img_$(SOC)_CORELIST
342 sbl_hyperflash_img_SBL_IMAGEGEN = yes
343 export sbl_hyperflash_img_SBL_IMAGEGEN
345 # SBL HYPERFLASH Image - For HS build
346 export sbl_hyperflash_img_hs_COMP_LIST = sbl_hyperflash_img_hs
347 sbl_hyperflash_img_hs_RELPATH = ti/boot/sbl/board/k3
348 sbl_hyperflash_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/hyperflash/bin
349 sbl_hyperflash_img_hs_PATH = $(PDK_SBL_COMP_PATH)/board/k3
350 export sbl_hyperflash_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=hyperflash SBL_USE_DMA=no BUILD_HS=yes
351 export sbl_hyperflash_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
352 export sbl_hyperflash_img_hs_BOARD_DEPENDENCY = yes
353 export sbl_hyperflash_img_SOC_DEPENDENCY = yes
354 export sbl_hyperflash_img_hs_CORE_DEPENDENCY = no
355 sbl_hyperflash_img_hs_PKG_LIST = sbl
356 sbl_hyperflash_img_hs_INCLUDE = $(sbl_hyperflash_img_hs_PATH)
357 export sbl_hyperflash_img_hs_BOARDLIST = j721e_evm
358 export sbl_hyperflash_img_hs_$(SOC)_CORELIST = mcu1_0
359 export sbl_hyperflash_img_hs_SBL_IMAGEGEN = yes
361 # SBL UART Image
362 sbl_uart_img_COMP_LIST = sbl_uart_img
363 sbl_uart_img_RELPATH = ti/boot/sbl/board/k3
364 sbl_uart_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/uart/bin
365 sbl_uart_img_OBJPATH = $(DEST_ROOT)/sbl_uart_img/obj
366 sbl_uart_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
367 sbl_uart_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=uart SBL_USE_DMA=yes BUILD_HS=no
368 export sbl_uart_img_MAKEFILE
369 export sbl_uart_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
370 sbl_uart_img_BOARD_DEPENDENCY = yes
371 sbl_uart_img_SOC_DEPENDENCY = yes
372 sbl_uart_img_CORE_DEPENDENCY = no
373 export sbl_uart_img_COMP_LIST
374 export sbl_uart_img_BOARD_DEPENDENCY
375 export sbl_uart_img_SOC_DEPENDENCY
376 export sbl_uart_img_CORE_DEPENDENCY
377 sbl_uart_img_PKG_LIST = sbl
378 sbl_uart_img_INCLUDE = $(sbl_uart_img_PATH)
379 sbl_uart_img_BOARDLIST = $(sbl_BOARDLIST)
380 export sbl_uart_img_BOARDLIST
381 sbl_uart_img_$(SOC)_CORELIST = mcu1_0
382 export sbl_uart_img_$(SOC)_CORELIST
383 sbl_uart_img_SBL_IMAGEGEN = yes
384 export sbl_uart_img_SBL_IMAGEGEN
386 # SBL HYPERFLASH Image - For HS build
387 export sbl_uart_img_hs_COMP_LIST = sbl_uart_img_hs
388 sbl_uart_img_hs_RELPATH = ti/boot/sbl/board/k3
389 sbl_uart_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/uart/bin
390 sbl_uart_img_hs_PATH = $(PDK_SBL_COMP_PATH)/board/k3
391 export sbl_uart_img_hs_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=uart SBL_USE_DMA=no BUILD_HS=yes
392 export sbl_uart_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
393 export sbl_uart_img_hs_BOARD_DEPENDENCY = yes
394 export sbl_uart_img_hs_SOC_DEPENDENCY = yes
395 export sbl_uart_img_hs_CORE_DEPENDENCY = no
396 sbl_uart_img_hs_PKG_LIST = sbl
397 sbl_uart_img_hs_INCLUDE = $(sbl_uart_img_hs_PATH)
398 export sbl_uart_img_hs_BOARDLIST = $(sbl_BOARDLIST)
399 export sbl_uart_img_hs_$(SOC)_CORELIST = mcu1_0
400 export sbl_uart_img_hs_SBL_IMAGEGEN = yes
402 # Individual Core Boot Test
403 sbl_boot_test_COMP_LIST = sbl_boot_test
404 sbl_boot_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
405 sbl_boot_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
406 sbl_boot_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
407 sbl_boot_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_boot_test.mk
408 export sbl_boot_test_MAKEFILE
409 sbl_boot_test_BOARD_DEPENDENCY = no
410 sbl_boot_test_SOC_DEPENDENCY = no
411 sbl_boot_test_CORE_DEPENDENCY = no
412 export sbl_boot_test_COMP_LIST
413 export sbl_boot_test_BOARD_DEPENDENCY
414 export sbl_boot_test_SOC_DEPENDENCY
415 export sbl_boot_test_CORE_DEPENDENCY
416 sbl_boot_test_PKG_LIST = sbl_boot_test
417 sbl_boot_test_INCLUDE = $(sbl_boot_test_PATH)
418 sbl_boot_test_BOARDLIST = $(sbl_BOARDLIST)
419 export sbl_boot_test_BOARDLIST
420 sbl_boot_test_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
421 export sbl_boot_test_$(SOC)_CORELIST
422 sbl_EXAMPLE_LIST += sbl_boot_test
423 sbl_boot_test_SBL_APPIMAGEGEN = yes
424 export sbl_boot_test_SBL_APPIMAGEGEN
426 # Multicore AMP Boot Test
427 sbl_multicore_amp_COMP_LIST = sbl_multicore_amp
428 sbl_multicore_amp_RELPATH = ti/boot/sbl/example/k3MulticoreApp
429 sbl_multicore_amp_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
430 sbl_multicore_amp_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
431 sbl_multicore_amp_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_amp.mk
432 export sbl_multicore_amp_MAKEFILE
433 # SBL multicore amp depends on sbl_boot_test for all the cores
434 sbl_multicore_amp_DEPENDS_ON=sbl_boot_test
435 export sbl_multicore_amp_DEPENDS_ON
436 sbl_multicore_amp_BOARD_DEPENDENCY = no
437 sbl_multicore_amp_SOC_DEPENDENCY = no
438 sbl_multicore_amp_CORE_DEPENDENCY = no
439 export sbl_multicore_amp_COMP_LIST
440 export sbl_multicore_amp_BOARD_DEPENDENCY
441 export sbl_multicore_amp_SOC_DEPENDENCY
442 export sbl_multicore_amp_CORE_DEPENDENCY
443 sbl_multicore_amp_PKG_LIST = sbl_multicore_amp
444 sbl_multicore_amp_INCLUDE = $(sbl_multicore_amp_PATH)
445 sbl_multicore_amp_BOARDLIST = $(sbl_BOARDLIST)
446 export sbl_multicore_amp_BOARDLIST
447 sbl_multicore_amp_$(SOC)_CORELIST = $($(SOC)_LASTCORE)
448 export sbl_multicore_amp_$(SOC)_CORELIST
449 sbl_EXAMPLE_LIST += sbl_multicore_amp
450 sbl_multicore_amp_SBL_APPIMAGEGEN = no
451 export sbl_multicore_amp_SBL_APPIMAGEGEN
453 # R5 Lockstep and MPU SMP Boot Test
454 sbl_smp_test_COMP_LIST = sbl_smp_test
455 sbl_smp_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
456 sbl_smp_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
457 sbl_smp_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
458 sbl_smp_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_smp_test.mk BOOTMODE=mmcsd
459 export sbl_smp_test_MAKEFILE
460 sbl_smp_test_BOARD_DEPENDENCY = no
461 sbl_smp_test_SOC_DEPENDENCY = no
462 sbl_smp_test_CORE_DEPENDENCY = no
463 export sbl_smp_test_COMP_LIST
464 export sbl_smp_test_BOARD_DEPENDENCY
465 export sbl_smp_test_SOC_DEPENDENCY
466 export sbl_smp_test_CORE_DEPENDENCY
467 sbl_smp_test_PKG_LIST = sbl_smp_test
468 sbl_smp_test_INCLUDE = $(sbl_smp_test_PATH)
469 sbl_smp_test_BOARDLIST = $(sbl_BOARDLIST)
470 export sbl_smp_test_BOARDLIST
471 sbl_smp_test_$(SOC)_CORELIST = $($(SOC)_smp_CORELIST)
472 export sbl_smp_test_$(SOC)_CORELIST
473 ifneq ($(SOC), am64x)
474 sbl_EXAMPLE_LIST += sbl_smp_test
475 endif
476 sbl_smp_test_SBL_APPIMAGEGEN = yes
477 export sbl_smp_test_SBL_APPIMAGEGEN
479 # Multicore SMP Boot Test
480 sbl_multicore_smp_COMP_LIST = sbl_multicore_smp
481 sbl_multicore_smp_RELPATH = ti/boot/sbl/example/k3MulticoreApp
482 sbl_multicore_smp_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
483 sbl_multicore_smp_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
484 sbl_multicore_smp_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_smp.mk
485 export sbl_multicore_smp_MAKEFILE
486 # SBL multicore smp depends on sbl_smp_test for all the cores
487 sbl_multicore_smp_DEPENDS_ON=sbl_smp_test
488 export sbl_multicore_smp_DEPENDS_ON
489 sbl_multicore_smp_BOARD_DEPENDENCY = no
490 sbl_multicore_smp_SOC_DEPENDENCY = no
491 sbl_multicore_smp_CORE_DEPENDENCY = no
492 export sbl_multicore_smp_COMP_LIST
493 export sbl_multicore_smp_BOARD_DEPENDENCY
494 export sbl_multicore_smp_SOC_DEPENDENCY
495 export sbl_multicore_smp_CORE_DEPENDENCY
496 sbl_multicore_smp_PKG_LIST = sbl_multicore_smp
497 sbl_multicore_smp_INCLUDE = $(sbl_multicore_smp_PATH)
498 sbl_multicore_smp_BOARDLIST = $(sbl_BOARDLIST)
499 export sbl_multicore_smp_BOARDLIST
500 sbl_multicore_smp_$(SOC)_CORELIST := $($(SOC)_LASTCORE)
501 export sbl_multicore_smp_$(SOC)_CORELIST
502 ifneq ($(SOC), am64x)
503 sbl_EXAMPLE_LIST += sbl_multicore_smp
504 endif
505 sbl_multicore_smp_SBL_APPIMAGEGEN = no
506 export sbl_multicore_smp_SBL_APPIMAGEGEN
508 # R5 boot XIP Test
509 sbl_boot_xip_test_COMP_LIST = sbl_boot_xip_test
510 sbl_boot_xip_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
511 sbl_boot_xip_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
512 sbl_boot_xip_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
513 sbl_boot_xip_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_mcu0_boot_xip_test.mk
514 export sbl_boot_xip_test_MAKEFILE
515 sbl_boot_xip_test_BOARD_DEPENDENCY = no
516 sbl_boot_xip_test_SOC_DEPENDENCY = no
517 sbl_boot_xip_test_CORE_DEPENDENCY = no
518 export sbl_boot_xip_test_COMP_LIST
519 export sbl_boot_xip_test_BOARD_DEPENDENCY
520 export sbl_boot_xip_test_SOC_DEPENDENCY
521 export sbl_boot_xip_test_CORE_DEPENDENCY
522 sbl_boot_xip_test_PKG_LIST = sbl_boot_xip_test
523 sbl_boot_xip_test_INCLUDE = $(sbl_boot_xip_test_PATH)
524 sbl_boot_xip_test_BOARDLIST = $(sbl_BOARDLIST)
525 export sbl_boot_xip_test_BOARDLIST
526 sbl_boot_xip_test_$(SOC)_CORELIST = mcu1_0
527 export sbl_boot_xip_test_$(SOC)_CORELIST
528 ifneq ($(SOC), am64x)
529 sbl_EXAMPLE_LIST += sbl_boot_xip_test
530 endif
531 sbl_boot_xip_test_SBL_APPIMAGEGEN = yes
532 sbl_boot_xip_test_SBL_APP_BINIMAGEGEN = yes
533 sbl_boot_xip_test_SBL_APP_BIN_SECTIONS = --only-section .rstvectors --only-section .sbl_mcu_1_0_resetvector
534 export sbl_boot_xip_test_SBL_APPIMAGEGEN
535 export sbl_boot_xip_test_SBL_APP_BINIMAGEGEN
536 export sbl_boot_xip_test_SBL_APP_BIN_SECTIONS
538 # R5 boot XIP entry
539 sbl_boot_xip_entry_COMP_LIST = sbl_boot_xip_entry
540 sbl_boot_xip_entry_RELPATH = ti/boot/sbl/example/k3MulticoreApp
541 sbl_boot_xip_entry_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
542 sbl_boot_xip_entry_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
543 sbl_boot_xip_entry_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_mcu0_boot_xip_entry.mk
544 export sbl_boot_xip_entry_MAKEFILE
545 sbl_boot_xip_entry_BOARD_DEPENDENCY = no
546 sbl_boot_xip_entry_SOC_DEPENDENCY = no
547 sbl_boot_xip_entry_CORE_DEPENDENCY = no
548 export sbl_boot_xip_entry_COMP_LIST
549 export sbl_boot_xip_entry_BOARD_DEPENDENCY
550 export sbl_boot_xip_entry_SOC_DEPENDENCY
551 export sbl_boot_xip_entry_CORE_DEPENDENCY
552 sbl_boot_xip_entry_PKG_LIST = sbl_boot_xip_entry
553 sbl_boot_xip_entry_INCLUDE = $(sbl_boot_xip_entry_PATH)
554 sbl_boot_xip_entry_BOARDLIST = $(sbl_BOARDLIST)
555 export sbl_boot_xip_entry_BOARDLIST
556 sbl_boot_xip_entry_$(SOC)_CORELIST = mcu1_0
557 export sbl_boot_xip_entry_$(SOC)_CORELIST
558 ifneq ($(SOC), am64x)
559 sbl_EXAMPLE_LIST += sbl_boot_xip_entry
560 endif
561 sbl_boot_xip_entry_SBL_APPIMAGEGEN = yes
562 export sbl_boot_xip_entry_SBL_APPIMAGEGEN
564 # Display profiling info before MCU1_0 boot
565 # increases delay time, between end of SBL
566 # and start of app, but useful for
567 # debugging and tuning performace knobs
568 #SBL_CFLAGS += -DSBL_DISPLAY_PROFILE_INFO
570 ifeq ($(SOC), am64x)
571 SBL_CFLAGS += -DSBL_BYPASS_OSPI_DRIVER -DDISABLE_ATCM
572 endif
574 ###### Use boot_perf_benchmark example#######
575 ###### to fine tune the perf knobs  #########
577 ###########START BOOT PERF KNOBS#############
578 # SBL log level
579 # no logs = 0, only errors =1, normal logs = 2, all logs = 3
580 SBL_CFLAGS += -DSBL_LOG_LEVEL=2
582 SBL_CFLAGS += -DSBL_ENABLE_PLL
583 SBL_CFLAGS += -DSBL_ENABLE_CLOCKS
585 ifneq ($(SOC), am64x)
586 SBL_CFLAGS += -DSBL_ENABLE_DDR
587 endif
588 ############################################
589 # DISABLING the options above this caption
590 # improves boot time at the cost of moving
591 # PLL, LPSC and DDR init to the app
593 # ENABLING the options below this caption
594 # improves boot time by skipping stuff SBL
595 # usually does.
596 ###########################################
597 # If enabled, the SBL will branch to the start
598 # of MCU_0 app without resetting the core
599 # if csl defaults are godd enough this enables
600 # app to skip redoing mcu initialization
601 #SBL_CFLAGS += -DSBL_SKIP_MCU_RESET
603 # If enabled, SBL will skip initializing
604 # sysfw. The SBL will only load it.
605 # No SCI Client APIs will work. Saves
606 # boot time. When this is enabled
607 # make sure that SBL_SKIP_MCU_RESET is also
608 # enabled, as resetting a core needs SYSFW
609 # to be running.
610 # SBL_CFLAGS += -DSBL_SKIP_SYSFW_INIT
612 # If enabled, SBL will skip calling
613 # Sciclient_boardCfg* API.  Enabling
614 # it saves boot time, can affect
615 # functionality. The app must call the
616 # Sciclient_boardCfg* APIs that the SBL
617 # skips. Like for eg, if SBL skips calling
618 # Sciclient_boardCfgPm, then Sciclient_boardCfgRm
619 # and Sciclient_boardCfgSec must also
620 # be skipped.
621 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_BOARD
622 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_RM
623 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_SEC
624 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_PM
626 # If enabled, SBL will only enable the Clocks
627 # and PLLs for the MCU domain. Clocks and PLLs
628 # for the Main domaincan be initialized by the
629 # app to save boot time or if the application
630 # usecase demands it.
631 #SBL_CFLAGS += -DSBL_ENABLE_DEV_GRP_MCU
633 # If enabled, SBL will not leave the OSPI
634 # flash in XIP mode, so that the MAIN
635 # domain Cortex-A code (HLOS) can reset
636 # the flash and take control of it, if
637 # needed.
638 #SBL_CFLAGS += -DSBL_HLOS_OWNS_FLASH
640 # If enabled, SBL will skip any PINMUX
641 # init being used in the bootloader and
642 # expect that it will be handled by
643 # another app.
644 #SBL_CFLAGS += -DSBL_SKIP_PINMUX_ENABLE
646 # If enabled, SBL will skip handling the
647 # SoC Late Init functions normally contained
648 # in SBL_SocLateInit()
649 #SBL_CFLAGS += -DSBL_SKIP_LATE_INIT
651 # If enabled, the SBL will configure & use
652 # resources in the MCU domain ONLY to
653 # enable MCU-only code to run.
654 #SBL_CFLAGS += -DSBL_USE_MCU_DOMAIN_ONLY
656 # If enabled, the SBL will skip configuring ATCM memory
657 #SBL_CFLAGS += -DDISABLE_ATCM
659 # If enabled for OSPI boot the SBL will bypass the
660 # OSPI driver completely and let ROM copy the sysftw/application
661 # from flash.
662 #SBL_CFLAGS += -DSBL_BYPASS_OSPI_DRIVER
664 # If enabled the SBL image is built for running on VLAB simulation.
665 #SBL_CFLAGS += -DVLAB_SIM
667 ###########END BOOT PERF KNOBS#############
669 # Example - Building Custom SBL Images
670 # Build and SBl with custom flags to change
671 # different build configurations
672 CUST_SBL_TEST_SOCS = am65xx j721e am64x_evm
673 CUST_SBL_TEST_BOARDS = am65xx_evm j721e_evm am64x_evm
674 #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 "
675 #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 "
676 #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"
677 #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"
678 ifeq ($(findstring j7,$(SOC)),j7)
679 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"
680 # Custom example: Early CAN response (NOTE: before using the line below, comment out the line above)
681 #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"
682 else
683 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"
684 endif
685 #Custom configuration for AM64x OSPI Boot
686 #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 -DDISABLE_ATCM -DSBL_BYPASS_OSPI_DRIVER"
688 # SBL Custom LIB
689 sbl_lib_cust_COMP_LIST = sbl_lib_cust
690 sbl_lib_cust_RELPATH = ti/boot/sbl
691 export sbl_lib_cust_OBJPATH = $(DEST_ROOT)/sbl_lib_cust/obj
692 sbl_lib_cust_LIBNAME = sbl_lib_cust
693 sbl_lib_cust_PATH = $(PDK_SBL_COMP_PATH)
694 sbl_lib_cust_LIBNAME = sbl_lib_cust
695 sbl_lib_cust_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/cust
696 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)
697 export sbl_lib_cust_MAKEFILE
698 export sbl_lib_cust_LIBNAME
699 export sbl_lib_cust_LIBPATH
700 sbl_lib_cust_BOARD_DEPENDENCY = yes
701 sbl_lib_cust_SOC_DEPENDENCY = yes
702 sbl_lib_cust_CORE_DEPENDENCY = no
703 export sbl_lib_cust_COMP_LIST
704 export sbl_lib_cust_BOARD_DEPENDENCY
705 export sbl_lib_cust_CORE_DEPENDENCY
706 sbl_lib_cust_PKG_LIST = sbl_lib_cust
707 sbl_lib_cust_INCLUDE = $(sbl_lib_cust_PATH)
708 sbl_lib_cust_SOCLIST = $(CUST_SBL_TEST_SOCS)
709 sbl_lib_cust_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
710 export sbl_lib_cust_SOCLIST
711 export sbl_lib_cust_BOARDLIST
712 sbl_lib_cust_$(SOC)_CORELIST = mcu1_0
713 export sbl_lib_cust_$(SOC)_CORELIST
715 # SBL custom image
716 sbl_cust_img_COMP_LIST = sbl_cust_img
717 sbl_cust_img_RELPATH = ti/boot/sbl/board/k3
718 sbl_cust_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/cust/bin
719 sbl_cust_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
720 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)
721 export sbl_cust_img_MAKEFILE
722 export sbl_cust_img_SBL_CERT_KEY=$(SBL_CERT_KEY)
723 sbl_cust_img_BOARD_DEPENDENCY = yes
724 sbl_cust_img_SOC_DEPENDENCY = yes
725 sbl_cust_img_CORE_DEPENDENCY = no
726 export sbl_cust_img_COMP_LIST
727 export sbl_cust_img_BOARD_DEPENDENCY
728 export sbl_cust_img_SOC_DEPENDENCY
729 export sbl_cust_img_CORE_DEPENDENCY
730 sbl_cust_img_PKG_LIST = sbl
731 sbl_cust_img_INCLUDE = $(sbl_cust_img_PATH)
732 sbl_cust_img_SOCLIST = $(CUST_SBL_TEST_SOCS)
733 sbl_cust_img_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
734 export sbl_cust_img_SOCLIST
735 export sbl_cust_img_BOARDLIST
736 sbl_cust_img_$(SOC)_CORELIST = mcu1_0
737 export sbl_cust_img_$(SOC)_CORELIST
738 ifneq ($(SOC), am64x)
739 sbl_EXAMPLE_LIST += sbl_cust_img
740 endif
741 sbl_cust_img_SBL_IMAGEGEN = yes
742 export sbl_cust_img_SBL_IMAGEGEN
744 # SBL custom image - For HS build
745 export sbl_cust_img_hs_COMP_LIST = sbl_cust_img_hs
746 sbl_cust_img_hs_RELPATH = ti/boot/sbl/board/k3
747 sbl_cust_img_hs_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)_hs/cust/bin
748 sbl_cust_img_hs_PATH = $(PDK_SBL_COMP_PATH)/board/k3
749 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
750 export sbl_cust_img_hs_SBL_CERT_KEY=$(SBL_CERT_KEY_HS)
751 export sbl_cust_img_hs_BOARD_DEPENDENCY = yes
752 export sbl_cust_img_hs_SOC_DEPENDENCY = yes
753 export sbl_cust_img_hs_CORE_DEPENDENCY = no
754 sbl_cust_img_hs_PKG_LIST = sbl
755 sbl_cust_img_hs_INCLUDE = $(sbl_cust_img_hs_PATH)
756 export sbl_cust_img_hs_SOCLIST = $(CUST_SBL_TEST_SOCS)
757 export sbl_cust_img_hs_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
758 export sbl_cust_img_hs_$(SOC)_CORELIST = mcu1_0
759 export sbl_cust_img_hs_SBL_IMAGEGEN = yes
760 ifneq ($(SOC), am64x)
761 sbl_EXAMPLE_LIST += sbl_cust_img_hs
762 endif
764 # R5 boot performance Test - works only with custom SBL
765 sbl_boot_perf_test_COMP_LIST = sbl_boot_perf_test
766 sbl_boot_perf_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
767 sbl_boot_perf_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
768 sbl_boot_perf_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
769 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)
770 export sbl_boot_perf_test_MAKEFILE
771 sbl_boot_perf_test_BOARD_DEPENDENCY = no
772 sbl_boot_perf_test_SOC_DEPENDENCY = no
773 sbl_boot_perf_test_CORE_DEPENDENCY = no
774 export sbl_boot_perf_test_COMP_LIST
775 export sbl_boot_perf_test_BOARD_DEPENDENCY
776 export sbl_boot_perf_test_SOC_DEPENDENCY
777 export sbl_boot_perf_test_CORE_DEPENDENCY
778 sbl_boot_perf_test_PKG_LIST = sbl_boot_perf_test
779 sbl_boot_perf_test_INCLUDE = $(sbl_boot_perf_test_PATH)
780 sbl_boot_perf_test_SOCLIST = $(CUST_SBL_TEST_SOCS)
781 sbl_boot_perf_test_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
782 export sbl_boot_perf_test_SOCLIST
783 export sbl_boot_perf_test_BOARDLIST
784 sbl_boot_perf_test_$(SOC)_CORELIST = mcu1_0
785 export sbl_boot_perf_test_$(SOC)_CORELIST
786 ifneq ($(SOC), am64x)
787 sbl_EXAMPLE_LIST += sbl_boot_perf_test
788 endif
789 sbl_boot_perf_test_SBL_APPIMAGEGEN = yes
790 export sbl_boot_perf_test_SBL_APPIMAGEGEN
792 # SBL not supported for any profile
793 # other than release
794 ifneq ($(BUILD_PROFILE), release)
795 sbl_LIB_LIST =
796 sbl_EXAMPLE_LIST =
797 SBL_CFLAGS =
798 endif # ifneq ($(BUILD_PROFILE), release)
800 export sbl_LIB_LIST
801 export sbl_EXAMPLE_LIST
802 export SBL_CFLAGS
804 sbl_component_make_include := 1
805 endif