60a980658e8c3608396f7f8de117795f9fcf4d5a
[processor-sdk/pdk.git] / packages / ti / osal / osal_component.mk
1 #
2 # Copyright (c) 2016-2021, 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: osal_component.mk
34 #       This file is component include make file of OSAL library.
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 #                             board and the compiled obj/lib has to be kept
47 #                             under <board> directory
48 #                             "no" or "" or if this variable is not defined: means
49 #                             this module has no baord dependent code and hence
50 #                             the obj/libs are not kept under <board> 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 ($(osal_component_make_include), )
69 libosal_BOARDLIST       = evmAM572x evmAM335x evmAM437x iceK2G idkAM574x idkAM572x idkAM571x idkAM437x am65xx_evm am65xx_idk evmOMAPL137 lcdkOMAPL138 evmK2E evmK2H evmK2K evmK2L j721e_evm j7200_evm am64x_evm tpr12_evm tpr12_qt awr294x_evm
70 libosal_SOCLIST         = tda2xx tda2px tda2ex tda3xx dra78x dra72x dra75x am574x am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138 am65xx j721e j7200 am64x tpr12 awr294x
71 libosal_freertos_BOARDLIST  = am65xx_evm j721e_evm j7200_evm tpr12_evm awr294x_evm
72 libosal_freertos_SOCLIST    = am65xx j721e j7200 tpr12 awr294x
73 libosal_tda2xx_CORELIST = a15_0 ipu1_0
74 libosal_tda2px_CORELIST = a15_0 ipu1_0
75 libosal_tda2ex_CORELIST = a15_0 ipu1_0
76 libosal_tda3xx_CORELIST = ipu1_0
77 libosal_dra72x_CORELIST = c66x a15_0 ipu1_0
78 libosal_dra75x_CORELIST = c66x a15_0 ipu1_0
79 libosal_dra78x_CORELIST = c66x ipu1_0
80 libosal_am574x_CORELIST = c66x a15_0 ipu1_0
81 libosal_am572x_CORELIST = c66x a15_0 ipu1_0
82 libosal_am571x_CORELIST = c66x a15_0 ipu1_0
83 libosal_k2h_CORELIST    = c66x a15_0
84 libosal_k2k_CORELIST    = c66x a15_0
85 libosal_k2l_CORELIST    = c66x a15_0
86 libosal_k2e_CORELIST    = c66x a15_0
87 libosal_k2g_CORELIST    = c66x a15_0
88 libosal_omapl137_CORELIST    = c674x arm9_0
89 libosal_omapl138_CORELIST    = c674x arm9_0
90 libosal_c6678_CORELIST  = c66x
91 libosal_c6657_CORELIST  = c66x
92 libosal_am437x_CORELIST = a9host
93 libosal_am335x_CORELIST = a8host
94 libosal_am65xx_CORELIST = $(DEFAULT_am65xx_CORELIST)
95 libosal_j721e_CORELIST = $(DEFAULT_j721e_CORELIST)
96 libosal_j7200_CORELIST = $(DEFAULT_j7200_CORELIST)
97 libosal_am64x_CORELIST = $(DEFAULT_am64x_CORELIST)
98 libosal_tpr12_CORELIST = $(DEFAULT_tpr12_CORELIST)
99 libosal_awr294x_CORELIST = $(DEFAULT_awr294x_CORELIST)
100 libosal_freertos_am65xx_CORELIST = mcu1_0 mcu1_1
101 libosal_freertos_j721e_CORELIST = mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1
102 libosal_freertos_j7200_CORELIST = mcu1_0 mcu1_1 mcu2_0 mcu2_1
103 libosal_freertos_tpr12_CORELIST = $(DEFAULT_tpr12_CORELIST)
104 libosal_freertos_awr294x_CORELIST = $(DEFAULT_awr294x_CORELIST)
107 ############################
108 # osal package
109 # List of components included under osal lib
110 # The components included here are built and will be part of osal lib
111 ############################
112 osal_LIB_LIST = osal_nonos osal_nonos_indp
113 ifeq ($(BUILD_OS_TYPE),tirtos)
114 osal_LIB_LIST += osal_tirtos osal_tirtos_indp
115 endif
116 osal_LIB_LIST += osal_freertos
117 libosal_LIB_LIST = $(osal_LIB_LIST)
119 ############################
120 # osal examples
121 # List of examples under osal
122 # All the tests mentioned in list are built when test target is called
123 # List below all examples for allowed values
124 ############################
125 osal_EXAMPLE_LIST =
128 # OSAL Modules
131 # OSAL NONOS LIB
132 osal_nonos_COMP_LIST = osal_nonos
133 osal_nonos_RELPATH = ti/osal
134 osal_nonos_PATH = $(PDK_OSAL_COMP_PATH)
135 osal_nonos_LIBNAME = ti.osal
136 export osal_nonos_LIBNAME
137 osal_nonos_LIBPATH = $(osal_nonos_PATH)/lib/nonos
138 export osal_nonos_LIBPATH
139 osal_nonos_OBJPATH = $(osal_nonos_RELPATH)/osal_nonos
140 export osal_nonos_OBJPATH
141 osal_nonos_MAKEFILE = -f build/makefile_nonos.mk
142 export osal_nonos_MAKEFILE
143 osal_nonos_PLATFORM_DEPENDENCY = no
144 osal_nonos_CORE_DEPENDENCY = no
145 osal_nonos_SOC_DEPENDENCY = yes
146 export osal_nonos_COMP_LIST
147 export osal_nonos_PLATFORM_DEPENDENCY
148 export osal_nonos_CORE_DEPENDENCY
149 export osal_nonos_SOC_DEPENDENCY
150 osal_nonos_PKG_LIST = osal_nonos
151 export osal_nonos_PKG_LIST
152 osal_nonos_INCLUDE = $(osal_nonos_PATH)
153 osal_nonos_SOCLIST = $(libosal_SOCLIST)
154 export osal_nonos_SOCLIST
155 osal_nonos_$(SOC)_CORELIST = $(libosal_$(SOC)_CORELIST)
156 ifeq ($(SOC),$(filter $(SOC), j721e))
157 osal_nonos_$(SOC)_CORELIST += c7x-hostemu
158 endif
159 export osal_nonos_$(SOC)_CORELIST
161 # OSAL NONOS LIB DEVICE INDEPENDENT
162 osal_nonos_indp_COMP_LIST = osal_nonos_indp
163 osal_nonos_indp_RELPATH = ti/osal
164 osal_nonos_indp_PATH = $(PDK_OSAL_COMP_PATH)
165 osal_nonos_indp_LIBNAME = ti.osal
166 export osal_nonos_indp_LIBNAME
167 osal_nonos_indp_LIBPATH = $(osal_nonos_indp_PATH)/lib/nonos
168 export osal_nonos_indp_LIBPATH
169 osal_nonos_indp_OBJPATH = $(osal_nonos_indp_RELPATH)/osal_nonos_indp
170 export osal_nonos_indp_OBJPATH
171 osal_nonos_indp_MAKEFILE = -f build/makefile_nonos_indp.mk
172 export osal_nonos_indp_MAKEFILE
173 osal_nonos_indp_PLATFORM_DEPENDENCY = no
174 osal_nonos_indp_CORE_DEPENDENCY = no
175 osal_nonos_indp_SOC_DEPENDENCY = no
176 export osal_nonos_indp_COMP_LIST
177 export osal_nonos_indp_PLATFORM_DEPENDENCY
178 export osal_nonos_indp_CORE_DEPENDENCY
179 export osal_nonos_indp_SOC_DEPENDENCY
180 osal_nonos_indp_PKG_LIST = osal_nonos_indp
181 export osal_nonos_indp_PKG_LIST
182 osal_nonos_indp_INCLUDE = $(osal_nonos_indp_PATH)
183 osal_nonos_indp_SOCLIST = 
184 export osal_nonos_indp_SOCLIST
185 osal_nonos_indp_$(SOC)_CORELIST = $(libosal_$(SOC)_CORELIST)
186 export osal_nonos_indp_$(SOC)_CORELIST
188 # OSAL TIRTOS LIB
189 osal_tirtos_COMP_LIST = osal_tirtos
190 osal_tirtos_RELPATH = ti/osal
191 osal_tirtos_PATH = $(PDK_OSAL_COMP_PATH)
192 osal_tirtos_LIBNAME = ti.osal
193 export osal_tirtos_LIBNAME
194 osal_tirtos_LIBPATH = $(osal_tirtos_PATH)/lib/tirtos
195 export osal_tirtos_LIBPATH
196 osal_tirtos_OBJPATH = $(osal_tirtos_RELPATH)/osal_tirtos
197 export osal_tirtos_OBJPATH
198 osal_tirtos_MAKEFILE = -f build/makefile_tirtos.mk
199 export osal_tirtos_MAKEFILE
200 osal_tirtos_PLATFORM_DEPENDENCY = no
201 osal_tirtos_CORE_DEPENDENCY = no
202 osal_tirtos_SOC_DEPENDENCY = yes
203 export osal_tirtos_COMP_LIST
204 export osal_tirtos_PLATFORM_DEPENDENCY
205 export osal_tirtos_CORE_DEPENDENCY
206 export osal_tirtos_SOC_DEPENDENCY
207 osal_tirtos_PKG_LIST = osal_tirtos
208 export osal_tirtos_PKG_LIST
209 osal_tirtos_INCLUDE = $(osal_tirtos_PATH)
210 osal_tirtos_SOCLIST = $(libosal_SOCLIST)
211 export osal_tirtos_SOCLIST
212 osal_tirtos_$(SOC)_CORELIST = $(libosal_$(SOC)_CORELIST)
213 export osal_tirtos_$(SOC)_CORELIST
215 # OSAL TIRTOS DEVICE INDEPENDENT
216 osal_tirtos_indp_COMP_LIST = osal_tirtos_indp
217 osal_tirtos_indp_RELPATH = ti/osal
218 osal_tirtos_indp_PATH = $(PDK_OSAL_COMP_PATH)
219 osal_tirtos_indp_LIBNAME = ti.osal
220 export osal_tirtos_indp_LIBNAME
221 osal_tirtos_indp_LIBPATH = $(osal_tirtos_indp_PATH)/lib/tirtos
222 export osal_tirtos_indp_LIBPATH
223 osal_tirtos_indp_OBJPATH = $(osal_tirtos_indp_RELPATH)/osal_tirtos_indp
224 export osal_tirtos_indp_OBJPATH
225 osal_tirtos_indp_MAKEFILE = -f build/makefile_tirtos_indp.mk
226 export osal_tirtos_indp_MAKEFILE
227 osal_tirtos_indp_PLATFORM_DEPENDENCY = no
228 osal_tirtos_indp_CORE_DEPENDENCY = no
229 osal_tirtos_indp_SOC_DEPENDENCY = no
230 export osal_tirtos_indp_COMP_LIST
231 export osal_tirtos_indp_PLATFORM_DEPENDENCY
232 export osal_tirtos_indp_CORE_DEPENDENCY
233 export osal_tirtos_indp_SOC_DEPENDENCY
234 osal_tirtos_indp_PKG_LIST = osal_tirtos_indp
235 export osal_tirtos_indp_PKG_LIST
236 osal_tirtos_indp_INCLUDE = $(osal_tirtos_indp_PATH)
237 osal_tirtos_indp_SOCLIST = 
238 export osal_tirtos_indp_SOCLIST
239 osal_tirtos_indp_$(SOC)_CORELIST = $(libosal_$(SOC)_CORELIST)
240 export osal_tirtos_indp_$(SOC)_CORELIST
242 # OSAL FREE RTOS LIB
243 osal_freertos_COMP_LIST = osal_freertos
244 osal_freertos_RELPATH = ti/osal
245 osal_freertos_PATH = $(PDK_OSAL_COMP_PATH)
246 osal_freertos_LIBNAME = ti.osal
247 export osal_freertos_LIBNAME
248 osal_freertos_LIBPATH = $(osal_freertos_PATH)/lib/freertos
249 export osal_freertos_LIBPATH
250 osal_freertos_OBJPATH = $(osal_freertos_RELPATH)/osal_freertos
251 export osal_freertos_OBJPATH
252 osal_freertos_MAKEFILE = -f build/makefile_freertos.mk
253 export osal_freertos_MAKEFILE
254 osal_freertos_PLATFORM_DEPENDENCY = no
255 osal_freertos_CORE_DEPENDENCY = no
256 osal_freertos_SOC_DEPENDENCY = yes
257 export osal_freertos_COMP_LIST
258 export osal_freertos_PLATFORM_DEPENDENCY
259 export osal_freertos_CORE_DEPENDENCY
260 export osal_freertos_SOC_DEPENDENCY
261 osal_freertos_PKG_LIST = osal_freertos
262 export osal_freertos_PKG_LIST
263 osal_freertos_INCLUDE = $(osal_freertos_PATH)
264 osal_freertos_SOCLIST = $(libosal_freertos_SOCLIST)
265 export osal_freertos_SOCLIST
266 osal_freertos_$(SOC)_CORELIST = $(libosal_freertos_$(SOC)_CORELIST)
267 export osal_freertos_$(SOC)_CORELIST
270 # OSAL Examples
272 OSAL_Baremetal_TestApp_COMP_LIST = OSAL_Baremetal_TestApp
273 OSAL_Baremetal_TestApp_RELPATH = ti/osal/test/baremetal
274 OSAL_Baremetal_TestApp_PATH = $(PDK_OSAL_COMP_PATH)/test/baremetal
275 OSAL_Baremetal_TestApp_BOARD_DEPENDENCY = yes
276 OSAL_Baremetal_TestApp_CORE_DEPENDENCY = no
277 export OSAL_Baremetal_TestApp_COMP_LIST
278 export OSAL_Baremetal_TestApp_BOARD_DEPENDENCY
279 export OSAL_Baremetal_TestApp_CORE_DEPENDENCY
280 OSAL_Baremetal_TestApp_PKG_LIST = OSAL_Baremetal_TestApp
281 OSAL_Baremetal_TestApp_INCLUDE = $(OSAL_Baremetal_TestApp_PATH)
282 OSAL_Baremetal_TestApp_BOARDLIST = $(libosal_BOARDLIST)
283 export OSAL_Baremetal_TestApp_BOARDLIST
284 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
285 OSAL_Baremetal_TestApp_SBL_APPIMAGEGEN = yes
286 else
287 OSAL_Baremetal_TestApp_SBL_APPIMAGEGEN = no
288 endif
289 export OSAL_Baremetal_TestApp_SBL_APPIMAGEGEN
291 OSAL_freertos_TestApp_COMP_LIST = OSAL_freertos_TestApp
292 OSAL_freertos_TestApp_RELPATH = ti/osal/test/freertos
293 OSAL_freertos_TestApp_PATH = $(PDK_OSAL_COMP_PATH)/test/freertos
294 OSAL_freertos_TestApp_BOARD_DEPENDENCY = yes
295 OSAL_freertos_TestApp_CORE_DEPENDENCY = no
296 export OSAL_freertos_TestApp_COMP_LIST
297 export OSAL_freertos_TestApp_BOARD_DEPENDENCY
298 export OSAL_freertos_TestApp_CORE_DEPENDENCY
299 OSAL_freertos_TestApp_PKG_LIST = OSAL_freertos_TestApp
300 OSAL_freertos_TestApp_INCLUDE = $(OSAL_freertos_TestApp_PATH)
301 OSAL_freertos_TestApp_BOARDLIST = tpr12_evm
302 export OSAL_freertos_TestApp_BOARDLIST
303 OSAL_freertos_TestApp_SBL_APPIMAGEGEN = yes
304 export OSAL_freertos_TestApp_SBL_APPIMAGEGEN
306 # OSAL sysbios unit test app
307 OSAL_TestApp_COMP_LIST = OSAL_TestApp
308 OSAL_TestApp_RELPATH = ti/osal/test/sysbios_unit_test
309 OSAL_TestApp_PATH = $(PDK_OSAL_COMP_PATH)/test/sysbios_unit_test
310 OSAL_TestApp_BOARD_DEPENDENCY = yes
311 OSAL_TestApp_CORE_DEPENDENCY = no
312 OSAL_TestApp_XDC_CONFIGURO = yes
313 export OSAL_TestApp_COMP_LIST
314 export OSAL_TestApp_BOARD_DEPENDENCY
315 export OSAL_TestApp_CORE_DEPENDENCY
316 export OSAL_TestApp_XDC_CONFIGURO
317 OSAL_TestApp_PKG_LIST = OSAL_TestApp
318 OSAL_TestApp_INCLUDE = $(OSAL_TestApp_PATH)
319 OSAL_TestApp_BOARDLIST = $(libosal_BOARDLIST)
320 export OSAL_TestApp_BOARDLIST
321 OSAL_TestApp_$(SOC)_CORELIST = $(osal_$(SOC)_CORELIST)
322 export OSAL_TestApp_$(SOC)_CORELIST
323 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x tpr12))
324 OSAL_TestApp_SBL_APPIMAGEGEN = yes
325 else
326 OSAL_TestApp_SBL_APPIMAGEGEN = no
327 endif
328 export OSAL_TestApp_SBL_APPIMAGEGEN
330 #Default Core List
331 OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a15_0 c66x
333 # Overwrite default core list for below SoCs
334 ifeq ($(BOARD),$(filter $(BOARD), idkAM574x evmAM572x idkAM572x idkAM571x))
335 OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a15_0 ipu1_0 c66x
336 endif
338 ifeq ($(BOARD),$(filter $(BOARD), evmAM335x))
339 OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a8host
340 endif
343 ifeq ($(BOARD),$(filter $(BOARD), evmAM437x idkAM437x))
344 OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a9host
345 endif
347 ifeq ($(BOARD),$(filter $(BOARD), evmOMAPL137))
348 osal_baremetal_test_$(SOC)_CORELIST = c674x arm9_0
349 endif
351 ifeq ($(BOARD),$(filter $(BOARD), lcdkOMAPL138))
352 osal_baremetal_test_$(SOC)_CORELIST = c674x arm9_0
353 endif
355 ifeq ($(BOARD),$(filter $(BOARD), evmK2E))
356 osal_baremetal_test_$(SOC)_CORELIST = c66x a15_0
357 endif
359 ifeq ($(BOARD),$(filter $(BOARD), evmK2H evmK2K))
360 osal_baremetal_test_$(SOC)_CORELIST = c66x a15_0
361 endif
363 ifeq ($(BOARD),$(filter $(BOARD), evmK2L))
364 osal_baremetal_test_$(SOC)_CORELIST = c66x a15_0
365 endif
367 ifeq ($(BOARD),$(filter $(BOARD), evmOMAPL137))
368 osal_baremetal_test_$(SOC)_CORELIST = c674x arm9_0
369 endif
371 ifeq ($(BOARD),$(filter $(BOARD), lcdkOMAPL138))
372 osal_baremetal_test_$(SOC)_CORELIST = c674x arm9_0
373 endif
375 ifeq ($(BOARD),$(filter $(BOARD), evmK2E))
376 osal_baremetal_test_$(SOC)_CORELIST = c66x a15_0
377 endif
379 ifeq ($(BOARD),$(filter $(BOARD), evmK2H evmK2K))
380 osal_baremetal_test_$(SOC)_CORELIST = c66x a15_0
381 endif
383 ifeq ($(BOARD),$(filter $(BOARD), evmK2L))
384 osal_baremetal_test_$(SOC)_CORELIST = c66x a15_0
385 endif
387 ifeq ($(SOC),$(filter $(SOC), dra72x dra75x))
388 OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a15_0 ipu1_0 c66x
389 endif
391 ifeq ($(SOC),$(filter $(SOC), dra78x))
392 OSAL_Baremetal_TestApp_$(SOC)_CORELIST = ipu1_0 c66x
393 endif
395 ifeq ($(SOC),$(filter $(SOC), am64x))
396  OSAL_TestApp_$(SOC)_CORELIST = mcu1_0 mpu1_0 mcu2_0
397  OSAL_Baremetal_TestApp_$(SOC)_CORELIST = mcu1_0 mpu1_0 m4f_0 mcu2_0
398 endif
400 ifeq ($(SOC),$(filter $(SOC), am65xx))
401  OSAL_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0
402  OSAL_Baremetal_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0
403 endif
405 ifeq ($(SOC),$(filter $(SOC), j721e))
406         OSAL_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0 mcu2_0 mcu3_0 c66xdsp_1 c7x_1
407  OSAL_Baremetal_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0 mcu2_0 mcu3_0
408 endif
410 ifeq ($(SOC),$(filter $(SOC), j7200))
411  OSAL_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0 mcu2_0
412  OSAL_Baremetal_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0 mcu2_0
413 endif
415 ifeq ($(SOC),$(filter $(SOC), tpr12))
416  OSAL_TestApp_$(SOC)_CORELIST = mcu1_0 c66xdsp_1
417  OSAL_Baremetal_TestApp_$(SOC)_CORELIST = mcu1_0 c66xdsp_1
418  OSAL_freertos_TestApp_$(SOC)_CORELIST = mcu1_0 c66xdsp_1
419 endif
421 ifeq ($(SOC),$(filter $(SOC), awr294x))
422  OSAL_TestApp_$(SOC)_CORELIST = mcu1_0 c66xdsp_1
423  OSAL_Baremetal_TestApp_$(SOC)_CORELIST = mcu1_0 c66xdsp_1
424 endif
426 export OSAL_Baremetal_TestApp_$(SOC)_CORELIST
427 export OSAL_TestApp_$(SOC)_CORELIST
429 osal_EXAMPLE_LIST += OSAL_Baremetal_TestApp
430 osal_EXAMPLE_LIST += OSAL_freertos_TestApp
432 # do not support RTOS example for AM64x yet
433 osal_EXAMPLE_LIST += OSAL_TestApp
435 ifeq ($(CPLUSPLUS_BUILD), yes)
436 #cpptest
437 cpptest_COMP_LIST = cpptest
438 cpptest_RELPATH = ti/osal/test/cpptest
439 cpptest_PATH = $(PDK_OSAL_COMP_PATH)/test/cpptest
440 cpptest_BOARD_DEPENDENCY = yes
441 cpptest_CORE_DEPENDENCY = yes
442 export cpptest_COMP_LIST
443 export cpptest_BOARD_DEPENDENCY
444 export cpptest_CORE_DEPENDENCY
445 cpptest_PKG_LIST = cpptest
446 cpptest_INCLUDE = $(cpptest_PATH)
447 cpptest_BOARDLIST = $(libosal_BOARDLIST)
448 export cpptest_BOARDLIST
450 #Default Core List
451 ifeq ($(BOARD),$(filter $(BOARD), evmAM335x))
452 cpptest_$(SOC)_CORELIST = a8host
453 endif
455 ifeq ($(BOARD),$(filter $(BOARD), evmAM437x idkAM437x))
456 cpptest_$(SOC)_CORELIST = a9host
457 endif
459 ifeq ($(BOARD),$(filter $(BOARD), idkAM574x evmAM572x idkAM572x idkAM571x))
460 cpptest_$(SOC)_CORELIST = a15_0 ipu1_0 c66x
461 endif
463 ifeq ($(BOARD),$(filter $(BOARD), evmK2G iceK2G))
464 cpptest_$(SOC)_CORELIST = c66x a15_0
465 endif
467 export cpptest_$(SOC)_CORELIST
468 osal_EXAMPLE_LIST += cpptest
469 endif
471 export osal_LIB_LIST
472 export libosal_LIB_LIST
473 export osal_EXAMPLE_LIST
475 libosal_EXAMPLE_LIST = $(osal_EXAMPLE_LIST)
476 export libosal_EXAMPLE_LIST
478 osal_component_make_include := 1
479 endif