]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/uart/uart_component.mk
AM64x Build Fix: Use CORELISTARM for UART baremetal app
[processor-sdk/pdk.git] / packages / ti / drv / uart / uart_component.mk
1 #
2 # Copyright (c) 2017 - 2019, 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: uart_component.mk
34 #       This file is component include make file of UART 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 #                             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 ($(uart_component_make_include), )
69 # under other list
70 drvuart_BOARDLIST       = am65xx_evm am65xx_idk j721e_sim j721e_evm j7200_evm am64x_evm tpr12_evm tpr12_qt
71 drvuart_dma_SOCLIST     = tda2xx tda2px dra72x dra75x tda2ex tda3xx dra78x am574x am572x am571x k2h k2k k2l k2e k2g c6678 c6657 omapl137 omapl138 am437x am65xx j721e j7200
72 drvuart_SOCLIST         = tda2xx tda2px dra72x dra75x tda2ex tda3xx dra78x am574x am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138 am65xx j721e j7200 am64x tpr12
73 drvuart_tda2xx_CORELIST = ipu1_0
74 drvuart_tda2px_CORELIST = ipu1_0
75 drvuart_tda2ex_CORELIST = ipu1_0
76 drvuart_tda3xx_CORELIST = ipu1_0
77 drvuart_dra78x_CORELIST = c66x ipu1_0
78 drvuart_am574x_CORELIST = c66x a15_0 ipu1_0
79 drvuart_am572x_CORELIST = c66x a15_0 ipu1_0
80 drvuart_am571x_CORELIST = c66x a15_0 ipu1_0
81 drvuart_dra72x_CORELIST = c66x a15_0 ipu1_0
82 drvuart_dra75x_CORELIST = c66x a15_0 ipu1_0
83 drvuart_k2h_CORELIST    = c66x a15_0
84 drvuart_k2k_CORELIST    = c66x a15_0
85 drvuart_k2l_CORELIST    = c66x a15_0
86 drvuart_k2e_CORELIST    = c66x a15_0
87 drvuart_k2g_CORELIST    = c66x a15_0
88 drvuart_omapl137_CORELIST    = c674x arm9_0
89 drvuart_omapl138_CORELIST    = c674x arm9_0
90 drvuart_c6678_CORELIST  = c66x
91 drvuart_c6657_CORELIST  = c66x
92 drvuart_am437x_CORELIST = a9host
93 drvuart_am335x_CORELIST = a8host pru_0 pru_1
94 drvuart_am65xx_CORELIST = mpu1_0 mcu1_0 mcu1_1
95 drvuart_j721e_CORELIST = $(DEFAULT_j721e_CORELIST)
96 drvuart_j721e_CORELISTARM = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1
97 drvuart_j7200_CORELIST = $(DEFAULT_j7200_CORELIST)
98 drvuart_j7200_CORELISTARM = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1
99 drvuart_am64x_CORELIST = $(DEFAULT_am64x_CORELIST)
100 drvuart_am64x_CORELISTARM = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1
101 drvuart_tpr12_CORELIST = mcu1_0 c66xdsp_1
103 ############################
104 # uart package
105 # List of components included under uart lib
106 # The components included here are built and will be part of uart lib
107 ############################
108 uart_LIB_LIST = uart uart_dma uart_profile uart_dma_profile uart_indp uart_profile_indp uart_console
109 drvuart_LIB_LIST = $(uart_LIB_LIST)
111 ############################
112 # uart Firmwares
113 # All the firmware mentioned in list are built when build target is called
114 # List below all firmware for allowed values
115 ############################
116 uart_FIRM_LIST = icss_uart
117 drvuart_FIRM_LIST = $(uart_FIRM_LIST)
119 ############################
120 # uart examples
121 # List of examples under uart
122 # All the tests mentioned in list are built when test target is called
123 # List below all examples for allowed values
124 ############################
125 #uart_EXAMPLE_LIST = drv_uart_unit_test drv_uart_polling_mode_app drv_uart_intr_mode_app
126 uart_EXAMPLE_LIST = UART_Baremetal_TestApp UART_Baremetal_DMA_TestApp UART_TestApp UART_SMP_TestApp UART_DMA_TestApp UART_DMA_SMP_TestApp
127 drvuart_EXAMPLE_LIST = $(uart_EXAMPLE_LIST)
130 # UART Modules
133 # UART LIB
134 uart_COMP_LIST = uart
135 uart_RELPATH = ti/drv/uart
136 uart_PATH = $(PDK_UART_COMP_PATH)
137 uart_LIBNAME = ti.drv.uart
138 export uart_LIBNAME
139 uart_LIBPATH = $(uart_PATH)/lib
140 export uart_LIBPATH
141 uart_OBJPATH = $(uart_RELPATH)/uart
142 export uart_OBJPATH
143 uart_MAKEFILE = -f build/makefile.mk
144 export uart_MAKEFILE
145 uart_BOARD_DEPENDENCY = no
146 uart_CORE_DEPENDENCY = no
147 uart_SOC_DEPENDENCY = yes
148 export uart_COMP_LIST
149 export uart_BOARD_DEPENDENCY
150 export uart_CORE_DEPENDENCY
151 export uart_SOC_DEPENDENCY
152 uart_PKG_LIST = uart
153 uart_INCLUDE = $(uart_PATH)
154 uart_SOCLIST = tda2xx tda2px tda2ex tda3xx dra78x am574x am572x am571x dra72x dra75x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138 am65xx j721e j7200 am64x tpr12
155 export uart_SOCLIST
156 uart_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
157 ifeq ($(SOC),$(filter $(SOC), j721e))
158 uart_$(SOC)_CORELIST += c7x_1
159 endif
160 export uart_$(SOC)_CORELIST
162 # UART LIB DEVICE INDEPENDENT
163 uart_indp_COMP_LIST = uart_indp
164 uart_indp_RELPATH = ti/drv/uart
165 uart_indp_PATH = $(PDK_UART_COMP_PATH)
166 uart_indp_LIBNAME = ti.drv.uart
167 export uart_indp_LIBNAME
168 uart_indp_LIBPATH = $(uart_indp_PATH)/lib
169 export uart_indp_LIBPATH
170 uart_indp_OBJPATH = $(uart_indp_RELPATH)/uart_indp
171 export uart_indp_OBJPATH
172 uart_indp_MAKEFILE = -f build/makefile_indp.mk
173 export uart_indp_MAKEFILE
174 uart_indp_BOARD_DEPENDENCY = no
175 uart_indp_CORE_DEPENDENCY = no
176 uart_indp_SOC_DEPENDENCY = no
177 export uart_indp_COMP_LIST
178 export uart_indp_BOARD_DEPENDENCY
179 export uart_indp_CORE_DEPENDENCY
180 export uart_indp_SOC_DEPENDENCY
181 uart_indp_PKG_LIST = uart_indp
182 uart_indp_INCLUDE = $(uart_indp_PATH)
183 uart_indp_SOCLIST = tda2xx tda2px tda2ex tda3xx dra78x am574x am572x am571x dra72x dra75x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138
184 export uart_indp_SOCLIST
185 uart_indp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
186 export uart_indp_$(SOC)_CORELIST
188 # UART DMA SOC LIB
189 uart_dma_COMP_LIST = uart_dma
190 uart_dma_RELPATH = ti/drv/uart
191 uart_dma_PATH = $(PDK_UART_COMP_PATH)
192 uart_dma_LIBNAME = ti.drv.uart.dma
193 export uart_dma_LIBNAME
194 uart_dma_LIBPATH = $(uart_dma_PATH)/lib
195 export uart_dma_LIBPATH
196 uart_dma_OBJPATH = $(uart_dma_RELPATH)/uart_dma
197 export uart_dma_OBJPATH
198 uart_dma_MAKEFILE = -f build/makefile_dma.mk
199 export uart_dma_MAKEFILE
200 uart_dma_BOARD_DEPENDENCY = no
201 uart_dma_CORE_DEPENDENCY = no
202 uart_dma_SOC_DEPENDENCY = yes
203 export uart_dma_COMP_LIST
204 export uart_dma_BOARD_DEPENDENCY
205 export uart_dma_CORE_DEPENDENCY
206 export uart_dma_SOC_DEPENDENCY
207 uart_dma_PKG_LIST = uart_dma
208 uart_dma_INCLUDE = $(uart_dma_PATH)
209 uart_dma_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 omapl137 omapl138 am437x am65xx j721e j7200 am335x am64x tpr12
210 export uart_dma_SOCLIST
211 uart_dma_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
212 export uart_dma_$(SOC)_CORELIST
214 # UART PROFILING SOC LIB
215 uart_profile_COMP_LIST = uart_profile
216 uart_profile_RELPATH = ti/drv/uart
217 uart_profile_PATH = $(PDK_UART_COMP_PATH)
218 uart_profile_LIBNAME = ti.drv.uart.profiling
219 export uart_profile_LIBNAME
220 uart_profile_LIBPATH = $(uart_profile_PATH)/lib
221 export uart_profile_LIBPATH
222 uart_profile_OBJPATH = $(uart_profile_RELPATH)/uart_profile
223 export uart_profile_OBJPATH
224 uart_profile_MAKEFILE = -f build/makefile_profile.mk
225 export uart_profile_MAKEFILE
226 uart_profile_BOARD_DEPENDENCY = no
227 uart_profile_CORE_DEPENDENCY = no
228 uart_profile_SOC_DEPENDENCY = yes
229 export uart_profile_COMP_LIST
230 export uart_profile_BOARD_DEPENDENCY
231 export uart_profile_CORE_DEPENDENCY
232 export uart_profile_SOC_DEPENDENCY
233 uart_profile_PKG_LIST = uart_profile
234 uart_profile_INCLUDE = $(uart_profile_PATH)
235 uart_profile_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138
236 export uart_profile_SOCLIST
237 uart_profile_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
238 export uart_profile_$(SOC)_CORELIST
240 # UART PROFILING SOC INDEPENDENT LIB
241 uart_profile_indp_COMP_LIST = uart_profile_indp
242 uart_profile_indp_RELPATH = ti/drv/uart
243 uart_profile_indp_PATH = $(PDK_UART_COMP_PATH)
244 uart_profile_indp_LIBNAME = ti.drv.uart.profiling
245 export uart_profile_indp_LIBNAME
246 uart_profile_indp_LIBPATH = $(uart_profile_indp_PATH)/lib
247 export uart_profile_indp_LIBPATH
248 uart_profile_indp_OBJPATH = $(uart_profile_indp_RELPATH)/uart_profile_indp
249 export uart_profile_indp_OBJPATH
250 uart_profile_indp_MAKEFILE = -f build/makefile_profile_indp.mk
251 export uart_profile_indp_MAKEFILE
252 uart_profile_indp_BOARD_DEPENDENCY = no
253 uart_profile_indp_CORE_DEPENDENCY = no
254 uart_profile_indp_SOC_DEPENDENCY = no
255 export uart_profile_indp_COMP_LIST
256 export uart_profile_indp_BOARD_DEPENDENCY
257 export uart_profile_indp_CORE_DEPENDENCY
258 export uart_profile_indp_SOC_DEPENDENCY
259 uart_profile_indp_PKG_LIST = uart_profile_indp
260 uart_profile_indp_INCLUDE = $(uart_profile_indp_PATH)
261 uart_profile_indp_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138
262 export uart_profile_indp_SOCLIST
263 uart_profile_indp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
264 export uart_profile_indp_$(SOC)_CORELIST
266 # UART DMA PROFILING SOC LIB
267 uart_dma_profile_COMP_LIST = uart_dma_profile
268 uart_dma_profile_RELPATH = ti/drv/uart
269 uart_dma_profile_PATH = $(PDK_UART_COMP_PATH)
270 uart_dma_profile_LIBNAME = ti.drv.uart.profiling.dma
271 export uart_dma_profile_LIBNAME
272 uart_dma_profile_LIBPATH = $(uart_dma_profile_PATH)/lib
273 export uart_dma_profile_LIBPATH
274 uart_dma_profile_OBJPATH = $(uart_dma_profile_RELPATH)/uart_dma_profile
275 export uart_dma_profile_OBJPATH
276 uart_dma_profile_MAKEFILE = -f build/makefile_dma_profile.mk
277 export uart_dma_profile_MAKEFILE
278 uart_dma_profile_BOARD_DEPENDENCY = no
279 uart_dma_profile_CORE_DEPENDENCY = no
280 uart_dma_profile_SOC_DEPENDENCY = yes
281 export uart_dma_profile_COMP_LIST
282 export uart_dma_profile_BOARD_DEPENDENCY
283 export uart_dma_profile_CORE_DEPENDENCY
284 export uart_dma_profile_SOC_DEPENDENCY
285 uart_dma_profile_PKG_LIST = uart_dma_profile
286 uart_dma_profile_INCLUDE = $(uart_dma_profile_PATH)
287 uart_dma_profile_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x
288 export uart_dma_profile_SOCLIST
289 uart_dma_profile_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
290 export uart_dma_profile_$(SOC)_CORELIST
292 # UART console LIB
293 uart_console_COMP_LIST = uart_console
294 uart_console_RELPATH = ti/drv/uart
295 uart_console_PATH = $(PDK_UART_COMP_PATH)
296 uart_console_LIBNAME = ti.drv.uart_console
297 export uart_console_LIBNAME
298 uart_console_LIBPATH = $(uart_console_PATH)/lib
299 export uart_console_LIBPATH
300 uart_console_OBJPATH = $(uart_console_RELPATH)/uart_console
301 export uart_console_OBJPATH
302 uart_console_MAKEFILE = -f build/makefile_console.mk
303 export uart_console_MAKEFILE
304 uart_console_BOARD_DEPENDENCY = no
305 uart_console_CORE_DEPENDENCY = no
306 uart_console_SOC_DEPENDENCY = yes
307 export uart_console_COMP_LIST
308 export uart_console_BOARD_DEPENDENCY
309 export uart_console_CORE_DEPENDENCY
310 export uart_console_SOC_DEPENDENCY
311 uart_console_PKG_LIST = uart_console
312 uart_console_INCLUDE = $(uart_console_PATH)
313 uart_console_SOCLIST = tda2xx tda2px tda2ex tda3xx am65xx j721e j7200 tpr12
314 export uart_console_SOCLIST
315 uart_console_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
316 export uart_console_$(SOC)_CORELIST
319 # UART Firmwares
321 icss_uart_COMP_LIST = icss_uart
322 # temporary fix for nightly build
323 # icss_uart_RELPATH = ti/drv/uart/firmware/icss_uart
324 icss_uart_RELPATH = icss_uart
325 icss_uart_PATH = $(PDK_UART_COMP_PATH)/firmware/icss_uart
326 icss_uart_HEADERNAME = icss_uart
327 export icss_uart_HEADERNAME
328 icss_uart_HEADERPATH = $(icss_uart_PATH)/bin
329 export icss_uart_HEADERPATH
330 icss_uart_OBJPATH = $(icss_uart_RELPATH)
331 export icss_uart_OBJPATH
332 icss_uart_MAKEFILE = -f ../../build/makefile_icss_uart.mk
333 export icss_uart_MAKEFILE
334 icss_uart_BOARD_DEPENDENCY = no
335 icss_uart_CORE_DEPENDENCY = yes
336 icss_uart_SOC_DEPENDENCY = yes
337 export icss_uart_COMP_LIST
338 export icss_uart_BOARD_DEPENDENCY
339 export icss_uart_CORE_DEPENDENCY
340 export icss_uart_SOC_DEPENDENCY
341 icss_uart_PKG_LIST = icss_uart
342 export icss_uart_PKG_LIST
343 icss_uart_INCLUDE = $(icss_uart_PATH)
344 #icss_uart_SOCLIST = am437x am574x am572x am571x am335x k2g
345 icss_uart_SOCLIST = am335x
346 export icss_uart_SOCLIST
347 icss_uart_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
348 export icss_uart_$(SOC)_CORELIST
351 # UART Examples
354 # UART unit test baremetal app
355 UART_Baremetal_TestApp_COMP_LIST = UART_Baremetal_TestApp
356 UART_Baremetal_TestApp_RELPATH = ti/drv/uart/test
357 UART_Baremetal_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
358 UART_Baremetal_TestApp_BOARD_DEPENDENCY = yes
359 UART_Baremetal_TestApp_CORE_DEPENDENCY = no
360 UART_Baremetal_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes
361 export UART_Baremetal_TestApp_COMP_LIST
362 export UART_Baremetal_TestApp_BOARD_DEPENDENCY
363 export UART_Baremetal_TestApp_CORE_DEPENDENCY
364 export UART_Baremetal_TestApp_MAKEFILE
365 UART_Baremetal_TestApp_PKG_LIST = UART_Baremetal_TestApp
366 UART_Baremetal_TestApp_INCLUDE = $(UART_Baremetal_TestApp_PATH)
367 UART_Baremetal_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
368 export UART_Baremetal_TestApp_BOARDLIST
369 ifeq ($(SOC),$(filter $(SOC), j721e j7200 am64x))
370 UART_Baremetal_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELISTARM)
371 else
372 UART_Baremetal_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
373 endif
375 export UART_Baremetal_TestApp_$(SOC)_CORELIST
376 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
377 UART_Baremetal_TestApp_SBL_APPIMAGEGEN = yes
378 else
379 UART_Baremetal_TestApp_SBL_APPIMAGEGEN = no
380 endif
381 export UART_Baremetal_TestApp_SBL_APPIMAGEGEN
384 # UART unit test baremetal dma app
385 UART_Baremetal_DMA_TestApp_COMP_LIST = UART_Baremetal_DMA_TestApp
386 UART_Baremetal_DMA_TestApp_RELPATH = ti/drv/uart/test
387 UART_Baremetal_DMA_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
388 UART_Baremetal_DMA_TestApp_BOARD_DEPENDENCY = yes
389 UART_Baremetal_DMA_TestApp_CORE_DEPENDENCY = no
390 UART_Baremetal_DMA_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes DMA=enable
391 export UART_Baremetal_DMA_TestApp_COMP_LIST
392 export UART_Baremetal_DMA_TestApp_BOARD_DEPENDENCY
393 export UART_Baremetal_DMA_TestApp_CORE_DEPENDENCY
394 export UART_Baremetal_DMA_TestApp_MAKEFILE
395 UART_Baremetal_DMA_TestApp_PKG_LIST = UART_Baremetal_DMA_TestApp
396 UART_Baremetal_DMA_TestApp_INCLUDE = $(UART_Baremetal_DMA_TestApp_PATH)
397 UART_Baremetal_DMA_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
398 export UART_Baremetal_DMA_TestApp_BOARDLIST
399 ifeq ($(SOC),$(filter $(SOC), j721e j7200 am64x))
400 UART_Baremetal_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELISTARM)
401 else
402 UART_Baremetal_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
403 endif
404 export UART_Baremetal_DMA_TestApp_$(SOC)_CORELIST
405 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
406 UART_Baremetal_DMA_TestApp_SBL_APPIMAGEGEN = yes
407 export UART_Baremetal_DMA_TestApp_SBL_APPIMAGEGEN
408 endif
410 # UART unit test rtos app
411 UART_TestApp_COMP_LIST = UART_TestApp
412 UART_TestApp_RELPATH = ti/drv/uart/test
413 UART_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
414 UART_TestApp_BOARD_DEPENDENCY = yes
415 UART_TestApp_CORE_DEPENDENCY = no
416 UART_TestApp_MAKEFILE = -f makefile
417 UART_TestApp_XDC_CONFIGURO = yes
418 export UART_TestApp_COMP_LIST
419 export UART_TestApp_BOARD_DEPENDENCY
420 export UART_TestApp_CORE_DEPENDENCY
421 export UART_TestApp_MAKEFILE
422 export UART_TestApp_XDC_CONFIGURO
423 UART_TestApp_PKG_LIST = UART_TestApp
424 UART_TestApp_INCLUDE = $(UART_TestApp_PATH)
425 UART_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
426 export UART_TestApp_BOARDLIST
427 ifeq ($(SOC),$(filter $(SOC), am64x))
428 UART_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1
429 else
430 UART_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
431 endif
432 export UART_TestApp_$(SOC)_CORELIST
433 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
434 UART_TestApp_SBL_APPIMAGEGEN = yes
435 export UART_TestApp_SBL_APPIMAGEGEN
436 endif
438 # UART unit test rtos app with SMP enabled
439 UART_SMP_TestApp_COMP_LIST = UART_SMP_TestApp
440 UART_SMP_TestApp_RELPATH = ti/drv/uart/test
441 UART_SMP_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
442 UART_SMP_TestApp_BOARD_DEPENDENCY = yes
443 UART_SMP_TestApp_CORE_DEPENDENCY = no
444 UART_SMP_TestApp_MAKEFILE = -f makefile SMP=enable
445 UART_SMP_TestApp_XDC_CONFIGURO = yes
446 export UART_SMP_TestApp_COMP_LIST
447 export UART_SMP_TestApp_BOARD_DEPENDENCY
448 export UART_SMP_TestApp_CORE_DEPENDENCY
449 export UART_SMP_TestApp_MAKEFILE
450 export UART_SMP_TestApp_XDC_CONFIGURO
451 UART_SMP_TestApp_PKG_LIST = UART_SMP_TestApp
452 UART_SMP_TestApp_INCLUDE = $(UART_SMP_TestApp_PATH)
453 UART_SMP_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
454 export UART_SMP_TestApp_BOARDLIST
455 UART_SMP_TestApp_$(SOC)_CORELIST = mpu1_0
456 export UART_SMP_TestApp_$(SOC)_CORELIST
457 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
458 UART_SMP_TestApp_SBL_APPIMAGEGEN = yes
459 export UART_SMP_TestApp_SBL_APPIMAGEGEN
460 endif
462 # UART unit test rtos dma app
463 UART_DMA_TestApp_COMP_LIST = UART_DMA_TestApp
464 UART_DMA_TestApp_RELPATH = ti/drv/uart/test
465 UART_DMA_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
466 UART_DMA_TestApp_BOARD_DEPENDENCY = yes
467 UART_DMA_TestApp_CORE_DEPENDENCY = no
468 UART_DMA_TestApp_MAKEFILE = -f makefile DMA=enable
469 UART_DMA_TestApp_XDC_CONFIGURO = yes
470 export UART_DMA_TestApp_COMP_LIST
471 export UART_DMA_TestApp_BOARD_DEPENDENCY
472 export UART_DMA_TestApp_CORE_DEPENDENCY
473 export UART_DMA_TestApp_MAKEFILE
474 export UART_DMA_TestApp_XDC_CONFIGURO
475 UART_DMA_TestApp_PKG_LIST = UART_DMA_TestApp
476 UART_DMA_TestApp_INCLUDE = $(UART_DMA_TestApp_PATH)
477 UART_DMA_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
478 export UART_DMA_TestApp_BOARDLIST
479 ifeq ($(SOC),$(filter $(SOC), j721e j7200 am64x))
480 UART_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELISTARM)
481 else
482 UART_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
483 endif
484 export UART_DMA_TestApp_$(SOC)_CORELIST
485 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
486 UART_DMA_TestApp_SBL_APPIMAGEGEN = yes
487 export UART_DMA_TestApp_SBL_APPIMAGEGEN
488 endif
490 # UART unit test rtos dma app with SMP enabled
491 UART_DMA_SMP_TestApp_COMP_LIST = UART_DMA_SMP_TestApp
492 UART_DMA_SMP_TestApp_RELPATH = ti/drv/uart/test
493 UART_DMA_SMP_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
494 UART_DMA_SMP_TestApp_BOARD_DEPENDENCY = yes
495 UART_DMA_SMP_TestApp_CORE_DEPENDENCY = no
496 UART_DMA_SMP_TestApp_MAKEFILE = -f makefile DMA=enable SMP=enable
497 UART_DMA_SMP_TestApp_XDC_CONFIGURO = yes
498 export UART_DMA_SMP_TestApp_COMP_LIST
499 export UART_DMA_SMP_TestApp_BOARD_DEPENDENCY
500 export UART_DMA_SMP_TestApp_CORE_DEPENDENCY
501 export UART_DMA_SMP_TestApp_MAKEFILE
502 export UART_DMA_SMP_TestApp_XDC_CONFIGURO
503 UART_DMA_SMP_TestApp_PKG_LIST = UART_DMA_SMP_TestApp
504 UART_DMA_SMP_TestApp_INCLUDE = $(UART_DMA_SMP_TestApp_PATH)
505 UART_DMA_SMP_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
506 export UART_DMA_SMP_TestApp_BOARDLIST
507 UART_DMA_SMP_TestApp_$(SOC)_CORELIST = mpu1_0
508 export UART_DMA_SMP_TestApp_$(SOC)_CORELIST
509 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
510 UART_DMA_SMP_TestApp_SBL_APPIMAGEGEN = yes
511 export UART_DMA_SMP_TestApp_SBL_APPIMAGEGEN
512 endif
514 # UART Polling mode Test app
515 UART_BasicExample_Polling_ExampleProject_COMP_LIST = UART_BasicExample_Polling_ExampleProject
516 UART_BasicExample_Polling_ExampleProject_RELPATH = ti/drv/uart/example/UART_BasicExample_Polling_ExampleProject
517 UART_BasicExample_Polling_ExampleProject_PATH = $(PDK_UART_COMP_PATH)/example/UART_BasicExample_Polling_ExampleProject
518 UART_BasicExample_Polling_ExampleProject_BOARD_DEPENDENCY = yes
519 UART_BasicExample_Polling_ExampleProject_CORE_DEPENDENCY = no
520 UART_BasicExample_Polling_ExampleProject_XDC_CONFIGURO = yes
521 export UART_BasicExample_Polling_ExampleProject_COMP_LIST
522 export UART_BasicExample_Polling_ExampleProject_BOARD_DEPENDENCY
523 export UART_BasicExample_Polling_ExampleProject_CORE_DEPENDENCY
524 export UART_BasicExample_Polling_ExampleProject_XDC_CONFIGURO
525 UART_BasicExample_Polling_ExampleProject_PKG_LIST = UART_BasicExample_Polling_ExampleProject
526 UART_BasicExample_Polling_ExampleProject_INCLUDE = $(UART_BasicExample_Polling_ExampleProject_PATH)
527 UART_BasicExample_Polling_ExampleProject_BOARDLIST = tda2xx-evm tda2px-evm tda2ex-evm tda3xx-evm evmDRA75x evmDRA78x
528 export UART_BasicExample_Polling_ExampleProject_BOARDLIST
529 UART_BasicExample_Polling_ExampleProject_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
530 export UART_BasicExample_Polling_ExampleProject_$(SOC)_CORELIST
531 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
532 UART_BasicExample_Polling_ExampleProject_SBL_APPIMAGEGEN = yes
533 export UART_BasicExample_Polling_ExampleProject_SBL_APPIMAGEGEN
534 endif
536 # UART Interrupt mode Test app
537 UART_BasicExample_Intr_ExampleProject_COMP_LIST = UART_BasicExample_Intr_ExampleProject
538 UART_BasicExample_Intr_ExampleProject_RELPATH = ti/drv/uart/example/UART_BasicExample_Intr_ExampleProject
539 UART_BasicExample_Intr_ExampleProject_PATH = $(PDK_UART_COMP_PATH)/example/UART_BasicExample_Intr_ExampleProject
540 UART_BasicExample_Intr_ExampleProject_BOARD_DEPENDENCY = yes
541 UART_BasicExample_Intr_ExampleProject_CORE_DEPENDENCY = no
542 UART_BasicExample_Intr_ExampleProject_XDC_CONFIGURO = yes
543 export UART_BasicExample_Intr_ExampleProject_COMP_LIST
544 export UART_BasicExample_Intr_ExampleProject_BOARD_DEPENDENCY
545 export UART_BasicExample_Intr_ExampleProject_CORE_DEPENDENCY
546 export UART_BasicExample_Intr_ExampleProject_XDC_CONFIGURO
547 UART_BasicExample_Intr_ExampleProject_PKG_LIST = UART_BasicExample_Intr_ExampleProject
548 UART_BasicExample_Intr_ExampleProject_INCLUDE = $(UART_BasicExample_Intr_ExampleProject_PATH)
549 UART_BasicExample_Intr_ExampleProject_BOARDLIST = tda2xx-evm tda2px-evm tda2ex-evm tda3xx-evm evmDRA75x evmDRA78x
550 export UART_BasicExample_Intr_ExampleProject_BOARDLIST
551 UART_BasicExample_Intr_ExampleProject_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
552 export UART_BasicExample_Intr_ExampleProject_$(SOC)_CORELIST
553 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
554 UART_BasicExample_Intr_ExampleProject_SBL_APPIMAGEGEN = yes
555 export UART_BasicExample_Intr_ExampleProject_SBL_APPIMAGEGEN
556 endif
558 export drvuart_LIB_LIST
559 export uart_LIB_LIST
560 export uart_EXAMPLE_LIST
561 export drvuart_EXAMPLE_LIST
562 export drvuart_FIRM_LIST
563 export uart_FIRM_LIST
565 uart_component_make_include := 1
566 endif