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_sim
71 sbl_SOCLIST = am65xx j721e
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 ############################
82 # sbl package
83 # List of components included under sbl
84 # The components included here are built and will be part of sbl
85 ############################
86 sbl_LIB_LIST = sbl_lib_mmcsd sbl_lib_ospi sbl_lib_cust
88 ############################
89 # sbl example
90 # List of examples under sbl (+= is used at each example definition)
91 # All the tests mentioned in list are built when test target is called
92 # List below all examples for allowed values
93 ############################
94 sbl_EXAMPLE_LIST =
96 #
97 # SBL Modules
98 #
100 # SBL MMCSD LIB
101 sbl_lib_mmcsd_COMP_LIST = sbl_lib_mmcsd
102 sbl_lib_mmcsd_RELPATH = ti/boot/sbl/mmcsd
103 sbl_lib_mmcsd_PATH = $(PDK_SBL_COMP_PATH)
104 sbl_lib_mmcsd_LIBNAME = sbl_lib_mmcsd
105 sbl_lib_mmcsd_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/mmcsd
106 sbl_lib_mmcsd_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=mmcsd
107 export sbl_lib_mmcsd_MAKEFILE
108 export sbl_lib_mmcsd_LIBNAME
109 export sbl_lib_mmcsd_LIBPATH
110 sbl_lib_mmcsd_BOARD_DEPENDENCY = yes
111 sbl_lib_mmcsd_SOC_DEPENDENCY = yes
112 sbl_lib_mmcsd_CORE_DEPENDENCY = no
113 export sbl_lib_mmcsd_COMP_LIST
114 export sbl_lib_mmcsd_BOARD_DEPENDENCY
115 export sbl_lib_mmcsd_CORE_DEPENDENCY
116 sbl_lib_mmcsd_PKG_LIST = sbl_lib_mmcsd
117 sbl_lib_mmcsd_INCLUDE = $(sbl_lib_mmcsd_PATH)
118 sbl_lib_mmcsd_SOCLIST = $(sbl_SOCLIST)
119 sbl_lib_mmcsd_BOARDLIST = $(sbl_BOARDLIST)
120 export sbl_lib_mmcsd_SOCLIST
121 export sbl_lib_mmcsd_BOARDLIST
122 sbl_lib_mmcsd_$(SOC)_CORELIST = mcu1_0
123 export sbl_lib_mmcsd_$(SOC)_CORELIST
125 # SBL OSPI LIB
126 sbl_lib_ospi_COMP_LIST = sbl_lib_ospi
127 sbl_lib_ospi_RELPATH = ti/boot/sbl/ospi
128 sbl_lib_ospi_PATH = $(PDK_SBL_COMP_PATH)
129 sbl_lib_ospi_LIBNAME = sbl_lib_ospi
130 sbl_lib_ospi_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/ospi
131 sbl_lib_ospi_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=ospi
132 export sbl_lib_ospi_MAKEFILE
133 export sbl_lib_ospi_LIBNAME
134 export sbl_lib_ospi_LIBPATH
135 sbl_lib_ospi_BOARD_DEPENDENCY = yes
136 sbl_lib_ospi_SOC_DEPENDENCY = yes
137 sbl_lib_ospi_CORE_DEPENDENCY = no
138 export sbl_lib_ospi_COMP_LIST
139 export sbl_lib_ospi_BOARD_DEPENDENCY
140 export sbl_lib_ospi_CORE_DEPENDENCY
141 sbl_lib_ospi_PKG_LIST = sbl_lib_ospi
142 sbl_lib_ospi_INCLUDE = $(sbl_lib_ospi_PATH)
143 sbl_lib_ospi_SOCLIST = am65xx
144 sbl_lib_ospi_BOARDLIST = am65xx_evm am65xx_idk
145 export sbl_lib_ospi_SOCLIST
146 export sbl_lib_ospi_BOARDLIST
147 sbl_lib_ospi_$(SOC)_CORELIST = mcu1_0
148 export sbl_lib_ospi_$(SOC)_CORELIST
150 #
151 # SBL Examples
152 #
153 # SBL MMCSD Image
154 sbl_mmcsd_img_COMP_LIST = sbl_mmcsd_img
155 sbl_mmcsd_img_RELPATH = ti/boot/sbl/board/k3
156 sbl_mmcsd_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/mmcsd/bin
157 sbl_mmcsd_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
158 sbl_mmcsd_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=mmcsd
159 export sbl_mmcsd_img_MAKEFILE
160 sbl_mmcsd_img_BOARD_DEPENDENCY = yes
161 sbl_mmcsd_img_SOC_DEPENDENCY = yes
162 sbl_mmcsd_img_CORE_DEPENDENCY = no
163 export sbl_mmcsd_img_COMP_LIST
164 export sbl_mmcsd_img_BOARD_DEPENDENCY
165 export sbl_mmcsd_img_SOC_DEPENDENCY
166 export sbl_mmcsd_img_CORE_DEPENDENCY
167 sbl_mmcsd_img_PKG_LIST = sbl
168 sbl_mmcsd_img_INCLUDE = $(sbl_mmcsd_img_PATH)
169 sbl_mmcsd_img_BOARDLIST = $(sbl_BOARDLIST)
170 export sbl_mmcsd_img_BOARDLIST
171 sbl_mmcsd_img_$(SOC)_CORELIST = mcu1_0
172 export sbl_mmcsd_img_$(SOC)_CORELIST
173 sbl_EXAMPLE_LIST += sbl_mmcsd_img
174 sbl_mmcsd_img_SBL_IMAGEGEN = yes
175 export sbl_mmcsd_img_SBL_IMAGEGEN
177 # SBL OSPI Image
178 sbl_ospi_img_COMP_LIST = sbl_ospi_img
179 sbl_ospi_img_RELPATH = ti/boot/sbl/board/k3
180 sbl_ospi_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/ospi/bin
181 sbl_ospi_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
182 sbl_ospi_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=ospi
183 export sbl_ospi_img_MAKEFILE
184 sbl_ospi_img_BOARD_DEPENDENCY = yes
185 sbl_ospi_img_SOC_DEPENDENCY = yes
186 sbl_ospi_img_CORE_DEPENDENCY = no
187 export sbl_ospi_img_COMP_LIST
188 export sbl_ospi_img_BOARD_DEPENDENCY
189 export sbl_ospi_img_SOC_DEPENDENCY
190 export sbl_ospi_img_CORE_DEPENDENCY
191 sbl_ospi_img_PKG_LIST = sbl
192 sbl_ospi_img_INCLUDE = $(sbl_ospi_img_PATH)
193 sbl_ospi_img_BOARDLIST = am65xx_evm am65xx_idk
194 export sbl_ospi_img_BOARDLIST
195 sbl_ospi_img_$(SOC)_CORELIST = mcu1_0
196 export sbl_ospi_img_$(SOC)_CORELIST
197 sbl_EXAMPLE_LIST += sbl_ospi_img
198 sbl_ospi_img_SBL_IMAGEGEN = yes
199 export sbl_ospi_img_SBL_IMAGEGEN
201 # Individual Core Boot Test
202 sbl_boot_test_COMP_LIST = sbl_boot_test
203 sbl_boot_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
204 sbl_boot_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
205 sbl_boot_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
206 sbl_boot_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_boot_test.mk
207 export sbl_boot_test_MAKEFILE
208 sbl_boot_test_BOARD_DEPENDENCY = no
209 sbl_boot_test_SOC_DEPENDENCY = no
210 sbl_boot_test_CORE_DEPENDENCY = no
211 export sbl_boot_test_COMP_LIST
212 export sbl_boot_test_BOARD_DEPENDENCY
213 export sbl_boot_test_SOC_DEPENDENCY
214 export sbl_boot_test_CORE_DEPENDENCY
215 sbl_boot_test_PKG_LIST = sbl_boot_test
216 sbl_boot_test_INCLUDE = $(sbl_boot_test_PATH)
217 sbl_boot_test_BOARDLIST = $(sbl_BOARDLIST)
218 export sbl_boot_test_BOARDLIST
219 sbl_boot_test_$(SOC)_CORELIST = $(sbl_$(SOC)_CORELIST)
220 export sbl_boot_test_$(SOC)_CORELIST
221 sbl_EXAMPLE_LIST += sbl_boot_test
222 sbl_boot_test_SBL_APPIMAGEGEN = yes
223 export sbl_boot_test_SBL_APPIMAGEGEN
225 # Multicore AMP Boot Test
226 sbl_multicore_amp_COMP_LIST = sbl_multicore_amp
227 sbl_multicore_amp_RELPATH = ti/boot/sbl/example/k3MulticoreApp
228 sbl_multicore_amp_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
229 sbl_multicore_amp_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
230 sbl_multicore_amp_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_amp.mk
231 export sbl_multicore_amp_MAKEFILE
232 sbl_multicore_amp_BOARD_DEPENDENCY = no
233 sbl_multicore_amp_SOC_DEPENDENCY = no
234 sbl_multicore_amp_CORE_DEPENDENCY = no
235 export sbl_multicore_amp_COMP_LIST
236 export sbl_multicore_amp_BOARD_DEPENDENCY
237 export sbl_multicore_amp_SOC_DEPENDENCY
238 export sbl_multicore_amp_CORE_DEPENDENCY
239 sbl_multicore_amp_PKG_LIST = sbl_multicore_amp
240 sbl_multicore_amp_INCLUDE = $(sbl_multicore_amp_PATH)
241 sbl_multicore_amp_BOARDLIST = $(sbl_BOARDLIST)
242 export sbl_multicore_amp_BOARDLIST
243 sbl_multicore_amp_$(SOC)_CORELIST = $($(SOC)_LASTCORE)
244 export sbl_multicore_amp_$(SOC)_CORELIST
245 sbl_EXAMPLE_LIST += sbl_multicore_amp
246 sbl_multicore_amp_SBL_APPIMAGEGEN = no
247 export sbl_multicore_amp_SBL_APPIMAGEGEN
249 # R5 Lockstep and MPU SMP Boot Test
250 sbl_smp_test_COMP_LIST = sbl_smp_test
251 sbl_smp_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
252 sbl_smp_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
253 sbl_smp_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
254 sbl_smp_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_smp_test.mk BOOTMODE=mmcsd
255 export sbl_smp_test_MAKEFILE
256 sbl_smp_test_BOARD_DEPENDENCY = no
257 sbl_smp_test_SOC_DEPENDENCY = no
258 sbl_smp_test_CORE_DEPENDENCY = no
259 export sbl_smp_test_COMP_LIST
260 export sbl_smp_test_BOARD_DEPENDENCY
261 export sbl_smp_test_SOC_DEPENDENCY
262 export sbl_smp_test_CORE_DEPENDENCY
263 sbl_smp_test_PKG_LIST = sbl_smp_test
264 sbl_smp_test_INCLUDE = $(sbl_smp_test_PATH)
265 sbl_smp_test_BOARDLIST = $(sbl_BOARDLIST)
266 export sbl_smp_test_BOARDLIST
267 sbl_smp_test_$(SOC)_CORELIST = $($(SOC)_smp_CORELIST)
268 export sbl_smp_test_$(SOC)_CORELIST
269 sbl_EXAMPLE_LIST += sbl_smp_test
270 sbl_smp_test_SBL_APPIMAGEGEN = yes
271 export sbl_smp_test_SBL_APPIMAGEGEN
273 # Multicore SMP Boot Test
274 sbl_multicore_smp_COMP_LIST = sbl_multicore_smp
275 sbl_multicore_smp_RELPATH = ti/boot/sbl/example/k3MulticoreApp
276 sbl_multicore_smp_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
277 sbl_multicore_smp_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
278 sbl_multicore_smp_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_multicore_smp.mk
279 export sbl_multicore_smp_MAKEFILE
280 sbl_multicore_smp_BOARD_DEPENDENCY = no
281 sbl_multicore_smp_SOC_DEPENDENCY = no
282 sbl_multicore_smp_CORE_DEPENDENCY = no
283 export sbl_multicore_smp_COMP_LIST
284 export sbl_multicore_smp_BOARD_DEPENDENCY
285 export sbl_multicore_smp_SOC_DEPENDENCY
286 export sbl_multicore_smp_CORE_DEPENDENCY
287 sbl_multicore_smp_PKG_LIST = sbl_multicore_smp
288 sbl_multicore_smp_INCLUDE = $(sbl_multicore_smp_PATH)
289 sbl_multicore_smp_BOARDLIST = $(sbl_BOARDLIST)
290 export sbl_multicore_smp_BOARDLIST
291 sbl_multicore_smp_$(SOC)_CORELIST := $($(SOC)_LASTCORE)
292 export sbl_multicore_smp_$(SOC)_CORELIST
293 sbl_EXAMPLE_LIST += sbl_multicore_smp
294 sbl_multicore_smp_SBL_APPIMAGEGEN = no
295 export sbl_multicore_smp_SBL_APPIMAGEGEN
297 # R5 boot performance Test
298 sbl_boot_perf_test_COMP_LIST = sbl_boot_perf_test
299 sbl_boot_perf_test_RELPATH = ti/boot/sbl/example/k3MulticoreApp
300 sbl_boot_perf_test_BINPATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp/binary
301 sbl_boot_perf_test_PATH = $(PDK_SBL_COMP_PATH)/example/k3MulticoreApp
302 sbl_boot_perf_test_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_mcu0_boot_perf_test.mk
303 export sbl_boot_perf_test_MAKEFILE
304 sbl_boot_perf_test_BOARD_DEPENDENCY = no
305 sbl_boot_perf_test_SOC_DEPENDENCY = no
306 sbl_boot_perf_test_CORE_DEPENDENCY = no
307 export sbl_boot_perf_test_COMP_LIST
308 export sbl_boot_perf_test_BOARD_DEPENDENCY
309 export sbl_boot_perf_test_SOC_DEPENDENCY
310 export sbl_boot_perf_test_CORE_DEPENDENCY
311 sbl_boot_perf_test_PKG_LIST = sbl_boot_perf_test
312 sbl_boot_perf_test_INCLUDE = $(sbl_boot_perf_test_PATH)
313 sbl_boot_perf_test_BOARDLIST = $(sbl_BOARDLIST)
314 export sbl_boot_perf_test_BOARDLIST
315 sbl_boot_perf_test_$(SOC)_CORELIST = mcu1_0
316 export sbl_boot_perf_test_$(SOC)_CORELIST
317 sbl_EXAMPLE_LIST += sbl_boot_perf_test
318 sbl_boot_perf_test_SBL_APPIMAGEGEN = yes
319 export sbl_boot_perf_test_SBL_APPIMAGEGEN
321 # 0 - use cpu for reads (slower, no $ coherency ops needed), smaller SBL
322 # 1 - use dma for data reads (faster, $ coherency ops needed), larger SBL
323 SBL_CFLAGS = -DSBL_USE_DMA=1
325 # Display profiling info before MCU1_0 boot
326 # increases delay time, between end of SBL
327 # and start of app, but useful for
328 # debugging and tuning performace knobs
329 #SBL_CFLAGS += -DSBL_DISPLAY_PROFILE_INFO
331 ###### Use boot_perf_benchmark example#######
332 ###### to fine tune the perf knobs #########
334 ###########START BOOT PERF KNOBS#############
335 # SBL log level
336 # no logs = 0, only errors =1, normal logs = 2, all logs = 3
337 SBL_CFLAGS += -DSBL_LOG_LEVEL=2
339 SBL_CFLAGS += -DSBL_ENABLE_PLL
340 SBL_CFLAGS += -DSBL_ENABLE_CLOCKS
341 SBL_CFLAGS += -DSBL_ENABLE_DDR
343 ############################################
344 # DISABLING the options above this caption
345 # improves boot time at the cost of moving
346 # PLL, LPSC and DDR init to the app
347 #
348 # ENABLING the options below this caption
349 # improves boot time by skipping stuff SBL
350 # usually does.
351 ###########################################
352 # If enabled, the SBL will branch to the start
353 # of MCU_0 app without resetting the core
354 # if csl defaults are godd enough this enables
355 # app to skip redoing mcu initialization
356 #SBL_CFLAGS += -DSBL_SKIP_MCU_RESET
358 # If enabled, SBL will skip calling
359 # Sciclient_boardCfgPm API. Enabling
360 # it saves boot time, but uart traces
361 # will get garbled. The app must call
362 # Sciclient_boardCfgPm for UART_printf
363 #to work again.
364 #SBL_CFLAGS += -DSBL_SKIP_BRD_CFG_PM
366 ###########END BOOT PERF KNOBS#############
368 # Example - Building Custom SBL Images
369 # Build and SBl with custom flags to change
370 # different build configurations
371 CUST_SBL_TEST_SOCS = am65xx
372 CUST_SBL_TEST_BOARDS = am65xx_evm
373 #CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=1 -DSBL_LOG_LEVEL=0 -DSBL_SKIP_MCU_RESET -DSBL_SKIP_BRD_CFG_PM -DBOOT_OSPI "
374 CUST_SBL_TEST_FLAGS =" -DSBL_USE_DMA=0 -DSBL_LOG_LEVEL=0 -DSBL_SKIP_MCU_RESET -DSBL_SKIP_BRD_CFG_BOARD -DSBL_SKIP_BRD_CFG_RM -DSBL_SKIP_BRD_CFG_SEC -DSBL_SKIP_BRD_CFG_PM -DBOOT_OSPI"
376 # SBL Custom LIB
377 sbl_lib_cust_COMP_LIST = sbl_lib_cust
378 sbl_lib_cust_RELPATH = ti/boot/sbl/cust
379 sbl_lib_cust_PATH = $(PDK_SBL_COMP_PATH)
380 sbl_lib_cust_LIBNAME = sbl_lib_cust
381 sbl_lib_cust_LIBPATH = $(PDK_SBL_COMP_PATH)/lib/cust
382 sbl_lib_cust_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_lib.mk BOOTMODE=cust CUST_SBL_FLAGS=$(CUST_SBL_TEST_FLAGS)
383 export sbl_lib_cust_MAKEFILE
384 export sbl_lib_cust_LIBNAME
385 export sbl_lib_cust_LIBPATH
386 sbl_lib_cust_BOARD_DEPENDENCY = yes
387 sbl_lib_cust_SOC_DEPENDENCY = yes
388 sbl_lib_cust_CORE_DEPENDENCY = no
389 export sbl_lib_cust_COMP_LIST
390 export sbl_lib_cust_BOARD_DEPENDENCY
391 export sbl_lib_cust_CORE_DEPENDENCY
392 sbl_lib_cust_PKG_LIST = sbl_lib_cust
393 sbl_lib_cust_INCLUDE = $(sbl_lib_cust_PATH)
394 sbl_lib_cust_SOCLIST = $(CUST_SBL_TEST_SOCS)
395 sbl_lib_cust_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
396 export sbl_lib_cust_SOCLIST
397 export sbl_lib_cust_BOARDLIST
398 sbl_lib_cust_$(SOC)_CORELIST = mcu1_0
399 export sbl_lib_cust_$(SOC)_CORELIST
401 # SBL custom image
402 sbl_cust_img_COMP_LIST = sbl_cust_img
403 sbl_cust_img_RELPATH = ti/boot/sbl/board/k3
404 sbl_cust_img_CUSTOM_BINPATH = $(PDK_SBL_COMP_PATH)/binary/$(BOARD)/cust/bin
405 sbl_cust_img_PATH = $(PDK_SBL_COMP_PATH)/board/k3
406 sbl_cust_img_MAKEFILE = -f$(PDK_SBL_COMP_PATH)/build/sbl_img.mk BOOTMODE=cust CUST_SBL_FLAGS=$(CUST_SBL_TEST_FLAGS)
407 export sbl_cust_img_MAKEFILE
408 sbl_cust_img_BOARD_DEPENDENCY = yes
409 sbl_cust_img_SOC_DEPENDENCY = yes
410 sbl_cust_img_CORE_DEPENDENCY = no
411 export sbl_cust_img_COMP_LIST
412 export sbl_cust_img_BOARD_DEPENDENCY
413 export sbl_cust_img_SOC_DEPENDENCY
414 export sbl_cust_img_CORE_DEPENDENCY
415 sbl_cust_img_PKG_LIST = sbl
416 sbl_cust_img_INCLUDE = $(sbl_cust_img_PATH)
417 sbl_cust_img_SOCLIST = $(CUST_SBL_TEST_SOCS)
418 sbl_cust_img_BOARDLIST = $(CUST_SBL_TEST_BOARDS)
419 export sbl_cust_img_SOCLIST
420 export sbl_cust_img_BOARDLIST
421 sbl_cust_img_$(SOC)_CORELIST = mcu1_0
422 export sbl_cust_img_$(SOC)_CORELIST
423 sbl_EXAMPLE_LIST += sbl_cust_img
424 sbl_cust_img_SBL_IMAGEGEN = yes
425 export sbl_cust_img_SBL_IMAGEGEN
427 export sbl_LIB_LIST
428 export sbl_EXAMPLE_LIST
429 export SBL_CFLAGS
431 sbl_component_make_include := 1
432 endif