21248f0d56775aeeed56a5ead336f5e07b02f487
[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 awr294x_evm
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 awr294x
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
102 drvuart_awr294x_CORELIST = mcu1_0 c66xdsp_1
104 ############################
105 # uart package
106 # List of components included under uart lib
107 # The components included here are built and will be part of uart lib
108 ############################
109 uart_LIB_LIST = uart uart_dma uart_profile uart_dma_profile uart_indp uart_profile_indp uart_console
110 drvuart_LIB_LIST = $(uart_LIB_LIST)
112 ############################
113 # uart Firmwares
114 # All the firmware mentioned in list are built when build target is called
115 # List below all firmware for allowed values
116 ############################
117 uart_FIRM_LIST = icss_uart
118 drvuart_FIRM_LIST = $(uart_FIRM_LIST)
120 ############################
121 # uart examples
122 # List of examples under uart
123 # All the tests mentioned in list are built when test target is called
124 # List below all examples for allowed values
125 ############################
126 #uart_EXAMPLE_LIST = drv_uart_unit_test drv_uart_polling_mode_app drv_uart_intr_mode_app
127 uart_EXAMPLE_LIST = UART_Baremetal_TestApp UART_Baremetal_DMA_TestApp UART_TestApp UART_SMP_TestApp UART_DMA_TestApp UART_DMA_SMP_TestApp
128 uart_EXAMPLE_LIST += UART_Freertos_TestApp UART_Freertos_DMA_TestApp
129 drvuart_EXAMPLE_LIST = $(uart_EXAMPLE_LIST)
132 # UART Modules
135 # UART LIB
136 uart_COMP_LIST = uart
137 uart_RELPATH = ti/drv/uart
138 uart_PATH = $(PDK_UART_COMP_PATH)
139 uart_LIBNAME = ti.drv.uart
140 export uart_LIBNAME
141 uart_LIBPATH = $(uart_PATH)/lib
142 export uart_LIBPATH
143 uart_OBJPATH = $(uart_RELPATH)/uart
144 export uart_OBJPATH
145 uart_MAKEFILE = -f build/makefile.mk
146 export uart_MAKEFILE
147 uart_BOARD_DEPENDENCY = no
148 uart_CORE_DEPENDENCY = no
149 uart_SOC_DEPENDENCY = yes
150 export uart_COMP_LIST
151 export uart_BOARD_DEPENDENCY
152 export uart_CORE_DEPENDENCY
153 export uart_SOC_DEPENDENCY
154 uart_PKG_LIST = uart
155 uart_INCLUDE = $(uart_PATH)
156 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 awr294x
157 export uart_SOCLIST
158 uart_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
159 ifeq ($(SOC),$(filter $(SOC), j721e))
160 uart_$(SOC)_CORELIST += c7x_1
161 endif
162 export uart_$(SOC)_CORELIST
164 # UART LIB DEVICE INDEPENDENT
165 uart_indp_COMP_LIST = uart_indp
166 uart_indp_RELPATH = ti/drv/uart
167 uart_indp_PATH = $(PDK_UART_COMP_PATH)
168 uart_indp_LIBNAME = ti.drv.uart
169 export uart_indp_LIBNAME
170 uart_indp_LIBPATH = $(uart_indp_PATH)/lib
171 export uart_indp_LIBPATH
172 uart_indp_OBJPATH = $(uart_indp_RELPATH)/uart_indp
173 export uart_indp_OBJPATH
174 uart_indp_MAKEFILE = -f build/makefile_indp.mk
175 export uart_indp_MAKEFILE
176 uart_indp_BOARD_DEPENDENCY = no
177 uart_indp_CORE_DEPENDENCY = no
178 uart_indp_SOC_DEPENDENCY = no
179 export uart_indp_COMP_LIST
180 export uart_indp_BOARD_DEPENDENCY
181 export uart_indp_CORE_DEPENDENCY
182 export uart_indp_SOC_DEPENDENCY
183 uart_indp_PKG_LIST = uart_indp
184 uart_indp_INCLUDE = $(uart_indp_PATH)
185 uart_indp_SOCLIST = tda2xx tda2px tda2ex tda3xx dra78x am574x am572x am571x dra72x dra75x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138
186 export uart_indp_SOCLIST
187 uart_indp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
188 export uart_indp_$(SOC)_CORELIST
190 # UART DMA SOC LIB
191 uart_dma_COMP_LIST = uart_dma
192 uart_dma_RELPATH = ti/drv/uart
193 uart_dma_PATH = $(PDK_UART_COMP_PATH)
194 uart_dma_LIBNAME = ti.drv.uart.dma
195 export uart_dma_LIBNAME
196 uart_dma_LIBPATH = $(uart_dma_PATH)/lib
197 export uart_dma_LIBPATH
198 uart_dma_OBJPATH = $(uart_dma_RELPATH)/uart_dma
199 export uart_dma_OBJPATH
200 uart_dma_MAKEFILE = -f build/makefile_dma.mk
201 export uart_dma_MAKEFILE
202 uart_dma_BOARD_DEPENDENCY = no
203 uart_dma_CORE_DEPENDENCY = no
204 uart_dma_SOC_DEPENDENCY = yes
205 export uart_dma_COMP_LIST
206 export uart_dma_BOARD_DEPENDENCY
207 export uart_dma_CORE_DEPENDENCY
208 export uart_dma_SOC_DEPENDENCY
209 uart_dma_PKG_LIST = uart_dma
210 uart_dma_INCLUDE = $(uart_dma_PATH)
211 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 awr294x
212 export uart_dma_SOCLIST
213 uart_dma_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
214 export uart_dma_$(SOC)_CORELIST
216 # UART PROFILING SOC LIB
217 uart_profile_COMP_LIST = uart_profile
218 uart_profile_RELPATH = ti/drv/uart
219 uart_profile_PATH = $(PDK_UART_COMP_PATH)
220 uart_profile_LIBNAME = ti.drv.uart.profiling
221 export uart_profile_LIBNAME
222 uart_profile_LIBPATH = $(uart_profile_PATH)/lib
223 export uart_profile_LIBPATH
224 uart_profile_OBJPATH = $(uart_profile_RELPATH)/uart_profile
225 export uart_profile_OBJPATH
226 uart_profile_MAKEFILE = -f build/makefile_profile.mk
227 export uart_profile_MAKEFILE
228 uart_profile_BOARD_DEPENDENCY = no
229 uart_profile_CORE_DEPENDENCY = no
230 uart_profile_SOC_DEPENDENCY = yes
231 export uart_profile_COMP_LIST
232 export uart_profile_BOARD_DEPENDENCY
233 export uart_profile_CORE_DEPENDENCY
234 export uart_profile_SOC_DEPENDENCY
235 uart_profile_PKG_LIST = uart_profile
236 uart_profile_INCLUDE = $(uart_profile_PATH)
237 uart_profile_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138
238 export uart_profile_SOCLIST
239 uart_profile_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
240 export uart_profile_$(SOC)_CORELIST
242 # UART PROFILING SOC INDEPENDENT LIB
243 uart_profile_indp_COMP_LIST = uart_profile_indp
244 uart_profile_indp_RELPATH = ti/drv/uart
245 uart_profile_indp_PATH = $(PDK_UART_COMP_PATH)
246 uart_profile_indp_LIBNAME = ti.drv.uart.profiling
247 export uart_profile_indp_LIBNAME
248 uart_profile_indp_LIBPATH = $(uart_profile_indp_PATH)/lib
249 export uart_profile_indp_LIBPATH
250 uart_profile_indp_OBJPATH = $(uart_profile_indp_RELPATH)/uart_profile_indp
251 export uart_profile_indp_OBJPATH
252 uart_profile_indp_MAKEFILE = -f build/makefile_profile_indp.mk
253 export uart_profile_indp_MAKEFILE
254 uart_profile_indp_BOARD_DEPENDENCY = no
255 uart_profile_indp_CORE_DEPENDENCY = no
256 uart_profile_indp_SOC_DEPENDENCY = no
257 export uart_profile_indp_COMP_LIST
258 export uart_profile_indp_BOARD_DEPENDENCY
259 export uart_profile_indp_CORE_DEPENDENCY
260 export uart_profile_indp_SOC_DEPENDENCY
261 uart_profile_indp_PKG_LIST = uart_profile_indp
262 uart_profile_indp_INCLUDE = $(uart_profile_indp_PATH)
263 uart_profile_indp_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138
264 export uart_profile_indp_SOCLIST
265 uart_profile_indp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
266 export uart_profile_indp_$(SOC)_CORELIST
268 # UART DMA PROFILING SOC LIB
269 uart_dma_profile_COMP_LIST = uart_dma_profile
270 uart_dma_profile_RELPATH = ti/drv/uart
271 uart_dma_profile_PATH = $(PDK_UART_COMP_PATH)
272 uart_dma_profile_LIBNAME = ti.drv.uart.profiling.dma
273 export uart_dma_profile_LIBNAME
274 uart_dma_profile_LIBPATH = $(uart_dma_profile_PATH)/lib
275 export uart_dma_profile_LIBPATH
276 uart_dma_profile_OBJPATH = $(uart_dma_profile_RELPATH)/uart_dma_profile
277 export uart_dma_profile_OBJPATH
278 uart_dma_profile_MAKEFILE = -f build/makefile_dma_profile.mk
279 export uart_dma_profile_MAKEFILE
280 uart_dma_profile_BOARD_DEPENDENCY = no
281 uart_dma_profile_CORE_DEPENDENCY = no
282 uart_dma_profile_SOC_DEPENDENCY = yes
283 export uart_dma_profile_COMP_LIST
284 export uart_dma_profile_BOARD_DEPENDENCY
285 export uart_dma_profile_CORE_DEPENDENCY
286 export uart_dma_profile_SOC_DEPENDENCY
287 uart_dma_profile_PKG_LIST = uart_dma_profile
288 uart_dma_profile_INCLUDE = $(uart_dma_profile_PATH)
289 uart_dma_profile_SOCLIST = am574x am572x am571x dra72x dra75x dra78x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x
290 export uart_dma_profile_SOCLIST
291 uart_dma_profile_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
292 export uart_dma_profile_$(SOC)_CORELIST
294 # UART console LIB
295 uart_console_COMP_LIST = uart_console
296 uart_console_RELPATH = ti/drv/uart
297 uart_console_PATH = $(PDK_UART_COMP_PATH)
298 uart_console_LIBNAME = ti.drv.uart_console
299 export uart_console_LIBNAME
300 uart_console_LIBPATH = $(uart_console_PATH)/lib
301 export uart_console_LIBPATH
302 uart_console_OBJPATH = $(uart_console_RELPATH)/uart_console
303 export uart_console_OBJPATH
304 uart_console_MAKEFILE = -f build/makefile_console.mk
305 export uart_console_MAKEFILE
306 uart_console_BOARD_DEPENDENCY = no
307 uart_console_CORE_DEPENDENCY = no
308 uart_console_SOC_DEPENDENCY = yes
309 export uart_console_COMP_LIST
310 export uart_console_BOARD_DEPENDENCY
311 export uart_console_CORE_DEPENDENCY
312 export uart_console_SOC_DEPENDENCY
313 uart_console_PKG_LIST = uart_console
314 uart_console_INCLUDE = $(uart_console_PATH)
315 uart_console_SOCLIST = tda2xx tda2px tda2ex tda3xx am65xx j721e j7200 tpr12 awr294x
316 export uart_console_SOCLIST
317 uart_console_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
318 export uart_console_$(SOC)_CORELIST
321 # UART Firmwares
323 icss_uart_COMP_LIST = icss_uart
324 # temporary fix for nightly build
325 # icss_uart_RELPATH = ti/drv/uart/firmware/icss_uart
326 icss_uart_RELPATH = icss_uart
327 icss_uart_PATH = $(PDK_UART_COMP_PATH)/firmware/icss_uart
328 icss_uart_HEADERNAME = icss_uart
329 export icss_uart_HEADERNAME
330 icss_uart_HEADERPATH = $(icss_uart_PATH)/bin
331 export icss_uart_HEADERPATH
332 icss_uart_OBJPATH = $(icss_uart_RELPATH)
333 export icss_uart_OBJPATH
334 icss_uart_MAKEFILE = -f ../../build/makefile_icss_uart.mk
335 export icss_uart_MAKEFILE
336 icss_uart_BOARD_DEPENDENCY = no
337 icss_uart_CORE_DEPENDENCY = yes
338 icss_uart_SOC_DEPENDENCY = yes
339 export icss_uart_COMP_LIST
340 export icss_uart_BOARD_DEPENDENCY
341 export icss_uart_CORE_DEPENDENCY
342 export icss_uart_SOC_DEPENDENCY
343 icss_uart_PKG_LIST = icss_uart
344 export icss_uart_PKG_LIST
345 icss_uart_INCLUDE = $(icss_uart_PATH)
346 #icss_uart_SOCLIST = am437x am574x am572x am571x am335x k2g
347 icss_uart_SOCLIST = am335x
348 export icss_uart_SOCLIST
349 icss_uart_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
350 export icss_uart_$(SOC)_CORELIST
353 # UART Examples
356 # UART unit test baremetal app
357 UART_Baremetal_TestApp_COMP_LIST = UART_Baremetal_TestApp
358 UART_Baremetal_TestApp_RELPATH = ti/drv/uart/test
359 UART_Baremetal_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
360 UART_Baremetal_TestApp_BOARD_DEPENDENCY = yes
361 UART_Baremetal_TestApp_CORE_DEPENDENCY = no
362 UART_Baremetal_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes
363 export UART_Baremetal_TestApp_COMP_LIST
364 export UART_Baremetal_TestApp_BOARD_DEPENDENCY
365 export UART_Baremetal_TestApp_CORE_DEPENDENCY
366 export UART_Baremetal_TestApp_MAKEFILE
367 UART_Baremetal_TestApp_PKG_LIST = UART_Baremetal_TestApp
368 UART_Baremetal_TestApp_INCLUDE = $(UART_Baremetal_TestApp_PATH)
369 UART_Baremetal_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
370 export UART_Baremetal_TestApp_BOARDLIST
371 ifeq ($(SOC),$(filter $(SOC), j721e j7200 am64x))
372 UART_Baremetal_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELISTARM)
373 else
374 UART_Baremetal_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
375 endif
377 export UART_Baremetal_TestApp_$(SOC)_CORELIST
378 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
379 UART_Baremetal_TestApp_SBL_APPIMAGEGEN = yes
380 else
381 UART_Baremetal_TestApp_SBL_APPIMAGEGEN = no
382 endif
383 export UART_Baremetal_TestApp_SBL_APPIMAGEGEN
386 # UART unit test baremetal dma app
387 UART_Baremetal_DMA_TestApp_COMP_LIST = UART_Baremetal_DMA_TestApp
388 UART_Baremetal_DMA_TestApp_RELPATH = ti/drv/uart/test
389 UART_Baremetal_DMA_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
390 UART_Baremetal_DMA_TestApp_BOARD_DEPENDENCY = yes
391 UART_Baremetal_DMA_TestApp_CORE_DEPENDENCY = no
392 UART_Baremetal_DMA_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes DMA=enable
393 export UART_Baremetal_DMA_TestApp_COMP_LIST
394 export UART_Baremetal_DMA_TestApp_BOARD_DEPENDENCY
395 export UART_Baremetal_DMA_TestApp_CORE_DEPENDENCY
396 export UART_Baremetal_DMA_TestApp_MAKEFILE
397 UART_Baremetal_DMA_TestApp_PKG_LIST = UART_Baremetal_DMA_TestApp
398 UART_Baremetal_DMA_TestApp_INCLUDE = $(UART_Baremetal_DMA_TestApp_PATH)
399 UART_Baremetal_DMA_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
400 export UART_Baremetal_DMA_TestApp_BOARDLIST
401 ifeq ($(SOC),$(filter $(SOC), j721e j7200 am64x))
402 UART_Baremetal_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELISTARM)
403 else
404 UART_Baremetal_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
405 endif
406 export UART_Baremetal_DMA_TestApp_$(SOC)_CORELIST
407 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
408 UART_Baremetal_DMA_TestApp_SBL_APPIMAGEGEN = yes
409 export UART_Baremetal_DMA_TestApp_SBL_APPIMAGEGEN
410 endif
412 # UART unit test freertos app
413 export UART_Freertos_TestApp_COMP_LIST = UART_Freertos_TestApp
414 UART_Freertos_TestApp_RELPATH = ti/drv/uart/test
415 UART_Freertos_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
416 export UART_Freertos_TestApp_BOARD_DEPENDENCY = yes
417 export UART_Freertos_TestApp_CORE_DEPENDENCY = no
418 export UART_Freertos_TestApp_MAKEFILE = -f makefile IS_FREERTOS=yes
419 UART_Freertos_TestApp_PKG_LIST = UART_Freertos_TestApp
420 UART_Freertos_TestApp_INCLUDE = $(UART_Freertos_TestApp_PATH)
421 export UART_Freertos_TestApp_BOARDLIST = tpr12_evm
422 export UART_Freertos_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
423 export UART_Freertos_TestApp_SBL_APPIMAGEGEN = yes
425 # UART unit test freertos app
426 export UART_Freertos_DMA_TestApp_COMP_LIST = UART_Freertos_DMA_TestApp
427 UART_Freertos_DMA_TestApp_RELPATH = ti/drv/uart/test
428 UART_Freertos_DMA_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
429 export UART_Freertos_DMA_TestApp_BOARD_DEPENDENCY = yes
430 export UART_Freertos_DMA_TestApp_CORE_DEPENDENCY = no
431 export UART_Freertos_DMA_TestApp_MAKEFILE = -f makefile IS_FREERTOS=yes DMA=enable
432 UART_Freertos_DMA_TestApp_PKG_LIST = UART_Freertos_DMA_TestApp
433 UART_Freertos_DMA_TestApp_INCLUDE = $(UART_Freertos_DMA_TestApp_PATH)
434 export UART_Freertos_DMA_TestApp_BOARDLIST = tpr12_evm
435 export UART_Freertos_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
436 export UART_Freertos_DMA_TestApp_SBL_APPIMAGEGEN = yes
438 # UART unit test rtos app
439 UART_TestApp_COMP_LIST = UART_TestApp
440 UART_TestApp_RELPATH = ti/drv/uart/test
441 UART_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
442 UART_TestApp_BOARD_DEPENDENCY = yes
443 UART_TestApp_CORE_DEPENDENCY = no
444 UART_TestApp_MAKEFILE = -f makefile
445 UART_TestApp_XDC_CONFIGURO = yes
446 export UART_TestApp_COMP_LIST
447 export UART_TestApp_BOARD_DEPENDENCY
448 export UART_TestApp_CORE_DEPENDENCY
449 export UART_TestApp_MAKEFILE
450 export UART_TestApp_XDC_CONFIGURO
451 UART_TestApp_PKG_LIST = UART_TestApp
452 UART_TestApp_INCLUDE = $(UART_TestApp_PATH)
453 UART_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
454 export UART_TestApp_BOARDLIST
455 ifeq ($(SOC),$(filter $(SOC), am64x))
456 UART_TestApp_$(SOC)_CORELIST = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1
457 else
458 UART_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
459 endif
460 export UART_TestApp_$(SOC)_CORELIST
461 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
462 UART_TestApp_SBL_APPIMAGEGEN = yes
463 export UART_TestApp_SBL_APPIMAGEGEN
464 endif
466 # UART unit test rtos app with SMP enabled
467 UART_SMP_TestApp_COMP_LIST = UART_SMP_TestApp
468 UART_SMP_TestApp_RELPATH = ti/drv/uart/test
469 UART_SMP_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
470 UART_SMP_TestApp_BOARD_DEPENDENCY = yes
471 UART_SMP_TestApp_CORE_DEPENDENCY = no
472 UART_SMP_TestApp_MAKEFILE = -f makefile SMP=enable
473 UART_SMP_TestApp_XDC_CONFIGURO = yes
474 export UART_SMP_TestApp_COMP_LIST
475 export UART_SMP_TestApp_BOARD_DEPENDENCY
476 export UART_SMP_TestApp_CORE_DEPENDENCY
477 export UART_SMP_TestApp_MAKEFILE
478 export UART_SMP_TestApp_XDC_CONFIGURO
479 UART_SMP_TestApp_PKG_LIST = UART_SMP_TestApp
480 UART_SMP_TestApp_INCLUDE = $(UART_SMP_TestApp_PATH)
481 UART_SMP_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
482 export UART_SMP_TestApp_BOARDLIST
483 UART_SMP_TestApp_$(SOC)_CORELIST = mpu1_0
484 export UART_SMP_TestApp_$(SOC)_CORELIST
485 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
486 UART_SMP_TestApp_SBL_APPIMAGEGEN = yes
487 export UART_SMP_TestApp_SBL_APPIMAGEGEN
488 endif
490 # UART unit test rtos dma app
491 UART_DMA_TestApp_COMP_LIST = UART_DMA_TestApp
492 UART_DMA_TestApp_RELPATH = ti/drv/uart/test
493 UART_DMA_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
494 UART_DMA_TestApp_BOARD_DEPENDENCY = yes
495 UART_DMA_TestApp_CORE_DEPENDENCY = no
496 UART_DMA_TestApp_MAKEFILE = -f makefile DMA=enable
497 UART_DMA_TestApp_XDC_CONFIGURO = yes
498 export UART_DMA_TestApp_COMP_LIST
499 export UART_DMA_TestApp_BOARD_DEPENDENCY
500 export UART_DMA_TestApp_CORE_DEPENDENCY
501 export UART_DMA_TestApp_MAKEFILE
502 export UART_DMA_TestApp_XDC_CONFIGURO
503 UART_DMA_TestApp_PKG_LIST = UART_DMA_TestApp
504 UART_DMA_TestApp_INCLUDE = $(UART_DMA_TestApp_PATH)
505 UART_DMA_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
506 export UART_DMA_TestApp_BOARDLIST
507 ifeq ($(SOC),$(filter $(SOC), j721e j7200 am64x))
508 UART_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELISTARM)
509 else
510 UART_DMA_TestApp_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
511 endif
512 export UART_DMA_TestApp_$(SOC)_CORELIST
513 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
514 UART_DMA_TestApp_SBL_APPIMAGEGEN = yes
515 export UART_DMA_TestApp_SBL_APPIMAGEGEN
516 endif
518 # UART unit test rtos dma app with SMP enabled
519 UART_DMA_SMP_TestApp_COMP_LIST = UART_DMA_SMP_TestApp
520 UART_DMA_SMP_TestApp_RELPATH = ti/drv/uart/test
521 UART_DMA_SMP_TestApp_PATH = $(PDK_UART_COMP_PATH)/test
522 UART_DMA_SMP_TestApp_BOARD_DEPENDENCY = yes
523 UART_DMA_SMP_TestApp_CORE_DEPENDENCY = no
524 UART_DMA_SMP_TestApp_MAKEFILE = -f makefile DMA=enable SMP=enable
525 UART_DMA_SMP_TestApp_XDC_CONFIGURO = yes
526 export UART_DMA_SMP_TestApp_COMP_LIST
527 export UART_DMA_SMP_TestApp_BOARD_DEPENDENCY
528 export UART_DMA_SMP_TestApp_CORE_DEPENDENCY
529 export UART_DMA_SMP_TestApp_MAKEFILE
530 export UART_DMA_SMP_TestApp_XDC_CONFIGURO
531 UART_DMA_SMP_TestApp_PKG_LIST = UART_DMA_SMP_TestApp
532 UART_DMA_SMP_TestApp_INCLUDE = $(UART_DMA_SMP_TestApp_PATH)
533 UART_DMA_SMP_TestApp_BOARDLIST = $(drvuart_BOARDLIST)
534 export UART_DMA_SMP_TestApp_BOARDLIST
535 UART_DMA_SMP_TestApp_$(SOC)_CORELIST = mpu1_0
536 export UART_DMA_SMP_TestApp_$(SOC)_CORELIST
537 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
538 UART_DMA_SMP_TestApp_SBL_APPIMAGEGEN = yes
539 export UART_DMA_SMP_TestApp_SBL_APPIMAGEGEN
540 endif
542 # UART Polling mode Test app
543 UART_BasicExample_Polling_ExampleProject_COMP_LIST = UART_BasicExample_Polling_ExampleProject
544 UART_BasicExample_Polling_ExampleProject_RELPATH = ti/drv/uart/example/UART_BasicExample_Polling_ExampleProject
545 UART_BasicExample_Polling_ExampleProject_PATH = $(PDK_UART_COMP_PATH)/example/UART_BasicExample_Polling_ExampleProject
546 UART_BasicExample_Polling_ExampleProject_BOARD_DEPENDENCY = yes
547 UART_BasicExample_Polling_ExampleProject_CORE_DEPENDENCY = no
548 UART_BasicExample_Polling_ExampleProject_XDC_CONFIGURO = yes
549 export UART_BasicExample_Polling_ExampleProject_COMP_LIST
550 export UART_BasicExample_Polling_ExampleProject_BOARD_DEPENDENCY
551 export UART_BasicExample_Polling_ExampleProject_CORE_DEPENDENCY
552 export UART_BasicExample_Polling_ExampleProject_XDC_CONFIGURO
553 UART_BasicExample_Polling_ExampleProject_PKG_LIST = UART_BasicExample_Polling_ExampleProject
554 UART_BasicExample_Polling_ExampleProject_INCLUDE = $(UART_BasicExample_Polling_ExampleProject_PATH)
555 UART_BasicExample_Polling_ExampleProject_BOARDLIST = tda2xx-evm tda2px-evm tda2ex-evm tda3xx-evm evmDRA75x evmDRA78x
556 export UART_BasicExample_Polling_ExampleProject_BOARDLIST
557 UART_BasicExample_Polling_ExampleProject_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
558 export UART_BasicExample_Polling_ExampleProject_$(SOC)_CORELIST
559 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
560 UART_BasicExample_Polling_ExampleProject_SBL_APPIMAGEGEN = yes
561 export UART_BasicExample_Polling_ExampleProject_SBL_APPIMAGEGEN
562 endif
564 # UART Interrupt mode Test app
565 UART_BasicExample_Intr_ExampleProject_COMP_LIST = UART_BasicExample_Intr_ExampleProject
566 UART_BasicExample_Intr_ExampleProject_RELPATH = ti/drv/uart/example/UART_BasicExample_Intr_ExampleProject
567 UART_BasicExample_Intr_ExampleProject_PATH = $(PDK_UART_COMP_PATH)/example/UART_BasicExample_Intr_ExampleProject
568 UART_BasicExample_Intr_ExampleProject_BOARD_DEPENDENCY = yes
569 UART_BasicExample_Intr_ExampleProject_CORE_DEPENDENCY = no
570 UART_BasicExample_Intr_ExampleProject_XDC_CONFIGURO = yes
571 export UART_BasicExample_Intr_ExampleProject_COMP_LIST
572 export UART_BasicExample_Intr_ExampleProject_BOARD_DEPENDENCY
573 export UART_BasicExample_Intr_ExampleProject_CORE_DEPENDENCY
574 export UART_BasicExample_Intr_ExampleProject_XDC_CONFIGURO
575 UART_BasicExample_Intr_ExampleProject_PKG_LIST = UART_BasicExample_Intr_ExampleProject
576 UART_BasicExample_Intr_ExampleProject_INCLUDE = $(UART_BasicExample_Intr_ExampleProject_PATH)
577 UART_BasicExample_Intr_ExampleProject_BOARDLIST = tda2xx-evm tda2px-evm tda2ex-evm tda3xx-evm evmDRA75x evmDRA78x
578 export UART_BasicExample_Intr_ExampleProject_BOARDLIST
579 UART_BasicExample_Intr_ExampleProject_$(SOC)_CORELIST = $(drvuart_$(SOC)_CORELIST)
580 export UART_BasicExample_Intr_ExampleProject_$(SOC)_CORELIST
581 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
582 UART_BasicExample_Intr_ExampleProject_SBL_APPIMAGEGEN = yes
583 export UART_BasicExample_Intr_ExampleProject_SBL_APPIMAGEGEN
584 endif
586 export drvuart_LIB_LIST
587 export uart_LIB_LIST
588 export uart_EXAMPLE_LIST
589 export drvuart_EXAMPLE_LIST
590 export drvuart_FIRM_LIST
591 export uart_FIRM_LIST
593 uart_component_make_include := 1
594 endif