1 #
2 # Copyright (c) 2013-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: component.mk
34 # This file is component include make file of PDK.
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 board 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 # <mod>_FP_DEPENDENCY - "yes": means the code for this module depends on
67 # target toolchain floating point support. Enabling
68 # this option will enable floating point print
69 # support for toolchains which link out floating
70 # point print support to save memory.
71 #
72 ifeq ($(pdk_component_make_include), )
74 include $(PDK_INSTALL_PATH)/ti/build/soc_info.mk
76 # The below defines the DEFAULT_$(SOC)_CORELIST which are used by various components for an SOC
77 # This is derived from the CORELIST_$(SOC) defined in soc_info.mk which encompasses all the available cores for a SOC.
78 # The DEFAULT_$(SOC)_CORELIST is a subset of all the cores and is used for building components.
80 # Filter out PRU cores from default cores list for building components
81 DEFAULT_CORELIST_EXCLUDE_CORES = $(CORE_LIST_PRU)
83 # For J7 cores, mpu1_1 is not a part of default core list
84 ifeq ($(SOC),$(filter $(SOC), j721e j7200))
85 DEFAULT_CORELIST_EXCLUDE_CORES += mpu1_1
86 endif
88 DEFAULT_$(SOC)_CORELIST = $(filter-out $(DEFAULT_CORELIST_EXCLUDE_CORES), $(CORE_LIST_$(SOC)))
90 # Core types (without the core IDs). This will be used to parse and order the establish the order of cores
91 # in the case of building libraries for multiple cores
93 # Component specific CFLAGS
94 PDK_CFLAGS =
95 PDK_LNKFLAGS =
97 ############################
98 # device pdk package
99 # List of components included under pdk lib
100 # The components included here are built and will be part of pdk lib
101 ############################
102 pdk_LIB_LIST =
104 ############################
105 # device pdk firmware
106 # List of components included under pdk firmware
107 # The components included here are built and will be part of pdk firmware
108 ############################
109 pdk_FIRM_LIST =
111 ############################
112 # device pdk application utility packages
113 # List of application utilities under pdk
114 # The components included here are built and will be part of pdk app_lib
115 ############################
116 pdk_APP_LIB_LIST =
118 ############################
119 # device pdk examples
120 # List of examples under pdk
121 # All the tests mentioned in list are built when test target is called
122 # List below all examples for allowed values
123 ############################
124 pdk_EXAMPLE_LIST =
126 ############################
127 # Duplicate example list which should not be built with "all" (since this is
128 # duplicate -j option will build both and result in .obj correuption) but needs
129 # to be still exposed to top level makefile so that user can individually call
130 # them. Also these duplicate targets doesn't support package option and hence
131 # should not be included when packaging
132 ############################
133 pdk_DUP_EXAMPLE_LIST =
135 ###########################
136 # PDK Utils list which are not built on every build
137 # Example includes the sciclient board configruation.
138 # This is specifically used when some additional tools are required to build
139 # these utilities like python.
140 ###########################
141 pdk_UTILS_LIST =
143 # Components included independent of OS type
145 #include each module component makefile
146 -include $(PDK_SDL_COMP_PATH)/sdl_component.mk
147 ifneq ($(sdl_LIB_LIST),)
148 pdk_LIB_LIST += $(sdl_LIB_LIST)
149 endif
151 -include $(PDK_CSL_COMP_PATH)/csl_component.mk
152 ifneq ($(csl_LIB_LIST),)
153 pdk_LIB_LIST += $(csl_LIB_LIST)
154 endif
155 ifneq ($(csl_APP_LIB_LIST),)
156 pdk_APP_LIB_LIST += $(csl_APP_LIB_LIST)
157 endif
158 ifneq ($(csl_EXAMPLE_LIST),)
159 pdk_EXAMPLE_LIST += $(csl_EXAMPLE_LIST)
160 endif
161 ifneq ($(csl_DUP_EXAMPLE_LIST),)
162 pdk_DUP_EXAMPLE_LIST += $(csl_DUP_EXAMPLE_LIST)
163 endif
165 # - used to ignore include if component not present
166 -include $(PDK_BOARD_COMP_PATH)/board_component.mk
167 ifneq ($(board_LIB_LIST),)
168 pdk_LIB_LIST += $(board_LIB_LIST)
169 endif
170 ifneq ($(board_APP_LIB_LIST),)
171 pdk_APP_LIB_LIST += $(board_APP_LIB_LIST)
172 endif
173 ifneq ($(board_EXAMPLE_LIST),)
174 pdk_EXAMPLE_LIST += $(board_EXAMPLE_LIST)
175 endif
177 # - used to ignore include if component not present
178 -include $(PDK_PM_COMP_PATH)/pm_component.mk
179 ifneq ($(pm_LIB_LIST),)
180 pdk_LIB_LIST += $(pm_LIB_LIST)
181 endif
182 ifneq ($(pm_APP_LIB_LIST),)
183 pdk_APP_LIB_LIST += $(pm_APP_LIB_LIST)
184 endif
185 ifneq ($(pm_EXAMPLE_LIST),)
186 pdk_EXAMPLE_LIST += $(pm_EXAMPLE_LIST)
187 endif
189 # - used to ignore include if component not present
190 -include $(PDK_PMIC_COMP_PATH)/pmic_component.mk
191 ifneq ($(pmic_LIB_LIST),)
192 pdk_LIB_LIST += $(pmic_LIB_LIST)
193 endif
194 ifneq ($(pmic_APP_LIB_LIST),)
195 pdk_APP_LIB_LIST += $(pmic_APP_LIB_LIST)
196 endif
197 ifneq ($(pmic_EXAMPLE_LIST),)
198 pdk_EXAMPLE_LIST += $(pmic_EXAMPLE_LIST)
199 endif
201 # - used to ignore include if component not present
202 -include $(PDK_AUD_COMP_PATH)/aud_component.mk
203 ifneq ($(aud_LIB_LIST),)
204 pdk_LIB_LIST += $(aud_LIB_LIST)
205 endif
206 ifneq ($(aud_APP_LIB_LIST),)
207 pdk_APP_LIB_LIST += $(aud_APP_LIB_LIST)
208 endif
209 ifneq ($(aud_EXAMPLE_LIST),)
210 pdk_EXAMPLE_LIST += $(aud_EXAMPLE_LIST)
211 endif
213 # - used to ignore include if component not present
214 -include $(PDK_SBL_COMP_PATH)/sbl_component.mk
215 ifneq ($(sbl_LIB_LIST),)
216 pdk_LIB_LIST += $(sbl_LIB_LIST)
217 endif
218 ifneq ($(sbl_APP_LIB_LIST),)
219 pdk_APP_LIB_LIST += $(sbl_APP_LIB_LIST)
220 endif
221 ifneq ($(sbl_EXAMPLE_LIST),)
222 pdk_EXAMPLE_LIST += $(sbl_EXAMPLE_LIST)
223 endif
225 # - used to ignore include if component not present
226 -include $(PDK_SBL_AUTO_COMP_PATH)/sbl_auto_component.mk
227 ifneq ($(sbl_auto_LIB_LIST),)
228 pdk_LIB_LIST += $(sbl_auto_LIB_LIST)
229 endif
230 ifneq ($(sbl_auto_APP_LIB_LIST),)
231 pdk_APP_LIB_LIST += $(sbl_auto_APP_LIB_LIST)
232 endif
233 ifneq ($(sbl_auto_EXAMPLE_LIST),)
234 pdk_EXAMPLE_LIST += $(sbl_auto_EXAMPLE_LIST)
235 endif
236 ifneq ($(sbl_auto_DUP_EXAMPLE_LIST),)
237 pdk_DUP_EXAMPLE_LIST += $(sbl_auto_DUP_EXAMPLE_LIST)
238 endif
240 # - used to ignore include if component not present
241 -include $(PDK_CMB_COMP_PATH)/cmb_component.mk
242 ifneq ($(cmb_LIB_LIST),)
243 pdk_LIB_LIST += $(cmb_LIB_LIST)
244 endif
245 ifneq ($(cmb_APP_LIB_LIST),)
246 pdk_APP_LIB_LIST += $(cmb_APP_LIB_LIST)
247 endif
248 ifneq ($(cmb_EXAMPLE_LIST),)
249 pdk_EXAMPLE_LIST += $(cmb_EXAMPLE_LIST)
250 endif
252 # - used to ignore include if component not present
253 -include $(PDK_BOARD_IND_COMP_PATH)/board_ind_component.mk
254 ifneq ($(board_ind_LIB_LIST),)
255 pdk_LIB_LIST += $(board_ind_LIB_LIST)
256 endif
257 ifneq ($(board_ind_APP_LIB_LIST),)
258 pdk_APP_LIB_LIST += $(board_ind_APP_LIB_LIST)
259 endif
260 ifneq ($(board_ind_EXAMPLE_LIST),)
261 pdk_EXAMPLE_LIST += $(board_ind_EXAMPLE_LIST)
262 endif
264 # - used to ignore include if component not present
265 -include $(PDK_UDMA_COMP_PATH)/udma_component.mk
266 ifneq ($(udma_LIB_LIST),)
267 pdk_LIB_LIST += $(udma_LIB_LIST)
268 endif
269 ifneq ($(udma_APP_LIB_LIST),)
270 pdk_APP_LIB_LIST += $(udma_APP_LIB_LIST)
271 endif
272 ifneq ($(udma_EXAMPLE_LIST),)
273 pdk_EXAMPLE_LIST += $(udma_EXAMPLE_LIST)
274 endif
276 # - used to ignore include if component not present
277 -include $(PDK_CPSW_COMP_PATH)/cpsw_component.mk
278 ifneq ($(cpsw_LIB_LIST),)
279 pdk_LIB_LIST += $(cpsw_LIB_LIST)
280 endif
281 ifneq ($(cpsw_APP_LIB_LIST),)
282 pdk_APP_LIB_LIST += $(cpsw_APP_LIB_LIST)
283 endif
284 ifneq ($(cpsw_EXAMPLE_LIST),)
285 pdk_EXAMPLE_LIST += $(cpsw_EXAMPLE_LIST)
286 endif
288 # - used to ignore include if component not present
289 -include $(PDK_CSIRX_COMP_PATH)/csirx_component.mk
290 ifneq ($(csirx_LIB_LIST),)
291 pdk_LIB_LIST += $(csirx_LIB_LIST)
292 endif
293 ifneq ($(csirx_APP_LIB_LIST),)
294 pdk_APP_LIB_LIST += $(csirx_APP_LIB_LIST)
295 endif
296 ifneq ($(csirx_EXAMPLE_LIST),)
297 pdk_EXAMPLE_LIST += $(csirx_EXAMPLE_LIST)
298 endif
300 # - used to ignore include if component not present
301 -include $(PDK_CSITX_COMP_PATH)/csitx_component.mk
302 ifneq ($(csitx_LIB_LIST),)
303 pdk_LIB_LIST += $(csitx_LIB_LIST)
304 endif
305 ifneq ($(csitx_APP_LIB_LIST),)
306 pdk_APP_LIB_LIST += $(csitx_APP_LIB_LIST)
307 endif
308 ifneq ($(csitx_EXAMPLE_LIST),)
309 pdk_EXAMPLE_LIST += $(csitx_EXAMPLE_LIST)
310 endif
312 # fvid2_component.mk should be included before any video components
313 # - used to ignore include if component not present
314 -include $(PDK_FVID2_COMP_PATH)/fvid2_component.mk
315 ifneq ($(fvid2_LIB_LIST),)
316 pdk_LIB_LIST += $(fvid2_LIB_LIST)
317 endif
318 ifneq ($(fvid2_APP_LIB_LIST),)
319 pdk_APP_LIB_LIST += $(fvid2_APP_LIB_LIST)
320 endif
321 ifneq ($(fvid2_EXAMPLE_LIST),)
322 pdk_EXAMPLE_LIST += $(fvid2_EXAMPLE_LIST)
323 endif
325 # - used to ignore include if component not present
326 -include $(PDK_DSS_COMP_PATH)/dss_component.mk
327 ifneq ($(dss_LIB_LIST),)
328 pdk_LIB_LIST += $(dss_LIB_LIST)
329 endif
330 ifneq ($(dss_APP_LIB_LIST),)
331 pdk_APP_LIB_LIST += $(dss_APP_LIB_LIST)
332 endif
333 ifneq ($(dss_EXAMPLE_LIST),)
334 pdk_EXAMPLE_LIST += $(dss_EXAMPLE_LIST)
335 endif
337 # - used to ignore include if component not present
338 -include $(PDK_CAL_COMP_PATH)/cal_component.mk
339 ifneq ($(cal_LIB_LIST),)
340 pdk_LIB_LIST += $(cal_LIB_LIST)
341 endif
342 ifneq ($(cal_APP_LIB_LIST),)
343 pdk_APP_LIB_LIST += $(cal_APP_LIB_LIST)
344 endif
345 ifneq ($(cal_EXAMPLE_LIST),)
346 pdk_EXAMPLE_LIST += $(cal_EXAMPLE_LIST)
347 endif
349 # - used to ignore include if component not present
350 -include $(PDK_SCICLIENT_COMP_PATH)/sciclient_component.mk
351 ifneq ($(sciclient_LIB_LIST),)
352 pdk_LIB_LIST += $(sciclient_LIB_LIST)
353 endif
354 ifneq ($(sciclient_APP_LIB_LIST),)
355 pdk_APP_LIB_LIST += $(sciclient_APP_LIB_LIST)
356 endif
357 ifneq ($(sciclient_EXAMPLE_LIST),)
358 pdk_EXAMPLE_LIST += $(sciclient_EXAMPLE_LIST)
359 endif
360 ifneq ($(sciclient_UTILS_LIST),)
361 pdk_UTILS_LIST += $(sciclient_UTILS_LIST)
362 endif
364 -include $(PDK_VHWA_COMP_PATH)/vhwa_component.mk
365 ifneq ($(vhwa_LIB_LIST),)
366 pdk_LIB_LIST += $(vhwa_LIB_LIST)
367 endif
368 ifneq ($(vhwa_APP_LIB_LIST),)
369 pdk_APP_LIB_LIST += $(vhwa_APP_LIB_LIST)
370 endif
371 ifneq ($(vhwa_EXAMPLE_LIST),)
372 pdk_EXAMPLE_LIST += $(vhwa_EXAMPLE_LIST)
373 endif
375 # - used to ignore include if component not present
376 -include $(PDK_IOLINK_COMP_PATH)/iolink_component.mk
377 ifneq ($(iolink_LIB_LIST),)
378 pdk_LIB_LIST += $(iolink_LIB_LIST)
379 endif
380 ifneq ($(iolink_EXAMPLE_LIST),)
381 pdk_EXAMPLE_LIST += $(iolink_EXAMPLE_LIST)
382 endif
384 #Below applicable only for TDA devices
386 # - used to ignore include if component not present
387 -include $(PDK_DIAG_COMP_PATH)/diag_component.mk
388 ifneq ($(diag_LIB_LIST),)
389 pdk_LIB_LIST += $(diag_LIB_LIST)
390 endif
391 ifneq ($(diag_APP_LIB_LIST),)
392 pdk_APP_LIB_LIST += $(diag_APP_LIB_LIST)
393 endif
394 ifneq ($(diag_EXAMPLE_LIST),)
395 pdk_EXAMPLE_LIST += $(diag_EXAMPLE_LIST)
396 endif
398 # - used to ignore include if component not present
399 -include $(PDK_FIREWALL_L3L4_COMP_PATH)/firewall_l3l4_component.mk
400 ifneq ($(firewall_l3l4_LIB_LIST),)
401 pdk_LIB_LIST += $(firewall_l3l4_LIB_LIST)
402 endif
403 ifneq ($(firewall_l3l4_APP_LIB_LIST),)
404 pdk_APP_LIB_LIST += $(firewall_l3l4_APP_LIB_LIST)
405 endif
406 ifneq ($(firewall_l3l4_EXAMPLE_LIST),)
407 pdk_EXAMPLE_LIST += $(firewall_l3l4_EXAMPLE_LIST)
408 endif
410 # - used to ignore include if component not present
411 -include $(PDK_IPC_COMP_PATH)/ipc_component.mk
412 ifneq ($(ipc_LIB_LIST),)
413 pdk_LIB_LIST += $(ipc_LIB_LIST)
414 endif
415 ifneq ($(ipc_APP_LIB_LIST),)
416 pdk_APP_LIB_LIST += $(ipc_APP_LIB_LIST)
417 endif
418 ifneq ($(ipc_EXAMPLE_LIST),)
419 pdk_EXAMPLE_LIST += $(ipc_EXAMPLE_LIST)
420 endif
421 ifneq ($(ipc_DUP_EXAMPLE_LIST),)
422 pdk_DUP_EXAMPLE_LIST += $(ipc_DUP_EXAMPLE_LIST)
423 endif
425 # - used to ignore include if component not present
426 -include $(PDK_IPCLITE_COMP_PATH)/ipclite_component.mk
427 ifneq ($(ipclite_LIB_LIST),)
428 pdk_LIB_LIST += $(ipclite_LIB_LIST)
429 endif
430 ifneq ($(ipclite_APP_LIB_LIST),)
431 pdk_APP_LIB_LIST += $(ipclite_APP_LIB_LIST)
432 endif
433 ifneq ($(ipclite_EXAMPLE_LIST),)
434 pdk_EXAMPLE_LIST += $(ipclite_EXAMPLE_LIST)
435 endif
437 # - used to ignore include if component not present
438 -include $(PDK_TDA3X_SECURITY_COMP_PATH)/security_component.mk
439 ifneq ($(security_LIB_LIST),)
440 pdk_LIB_LIST += $(security_LIB_LIST)
441 endif
442 ifneq ($(security_APP_LIB_LIST),)
443 pdk_APP_LIB_LIST += $(security_APP_LIB_LIST)
444 endif
445 ifneq ($(security_EXAMPLE_LIST),)
446 pdk_EXAMPLE_LIST += $(security_EXAMPLE_LIST)
447 endif
449 #Below applicable only for TDA devices for backward compatibility;not applicable for PRSDK
451 # - used to ignore include if component not present
452 -include $(PDK_NORFLASH_COMP_PATH)/norflash_component.mk
453 ifneq ($(norflash_LIB_LIST),)
454 pdk_LIB_LIST += $(norflash_LIB_LIST)
455 endif
456 ifneq ($(norflash_APP_LIB_LIST),)
457 pdk_APP_LIB_LIST += $(norflash_APP_LIB_LIST)
458 endif
459 ifneq ($(norflash_EXAMPLE_LIST),)
460 pdk_EXAMPLE_LIST += $(norflash_EXAMPLE_LIST)
461 endif
463 # - used to ignore include if component not present
464 -include $(PDK_QSPIFLASH_COMP_PATH)/qspiflash_component.mk
465 ifneq ($(qspiflash_LIB_LIST),)
466 pdk_LIB_LIST += $(qspiflash_LIB_LIST)
467 endif
468 ifneq ($(qspiflash_APP_LIB_LIST),)
469 pdk_APP_LIB_LIST += $(qspiflash_APP_LIB_LIST)
470 endif
471 ifneq ($(qspiflash_EXAMPLE_LIST),)
472 pdk_EXAMPLE_LIST += $(qspiflash_EXAMPLE_LIST)
473 endif
475 # - used to ignore include if component not present
476 -include $(PDK_STW_LLD_COMP_PATH)/stw_lld_component.mk
477 ifneq ($(stw_lld_LIB_LIST),)
478 pdk_LIB_LIST += $(stw_lld_LIB_LIST)
479 endif
480 ifneq ($(stw_lld_APP_LIB_LIST),)
481 pdk_APP_LIB_LIST += $(stw_lld_APP_LIB_LIST)
482 endif
483 ifneq ($(stw_lld_EXAMPLE_LIST),)
484 pdk_EXAMPLE_LIST += $(stw_lld_EXAMPLE_LIST)
485 endif
486 ifneq ($(stw_lld_DUP_EXAMPLE_LIST),)
487 pdk_DUP_EXAMPLE_LIST += $(stw_lld_DUP_EXAMPLE_LIST)
488 endif
490 # - used to ignore include if component not present
491 -include $(PDK_VPS_COMP_PATH)/vps_component.mk
492 ifneq ($(vps_LIB_LIST),)
493 pdk_LIB_LIST += $(vps_LIB_LIST)
494 endif
495 ifneq ($(vps_APP_LIB_LIST),)
496 pdk_APP_LIB_LIST += $(vps_APP_LIB_LIST)
497 endif
498 ifneq ($(vps_EXAMPLE_LIST),)
499 pdk_EXAMPLE_LIST += $(vps_EXAMPLE_LIST)
500 endif
502 # - used to ignore include if component not present
503 -include $(PDK_OSAL_COMP_PATH)/osal_component.mk
504 ifneq ($(osal_LIB_LIST),)
505 pdk_LIB_LIST += $(osal_LIB_LIST)
506 endif
507 ifneq ($(osal_APP_LIB_LIST),)
508 pdk_APP_LIB_LIST += $(osal_APP_LIB_LIST)
509 endif
510 ifneq ($(osal_EXAMPLE_LIST),)
511 pdk_EXAMPLE_LIST += $(osal_EXAMPLE_LIST)
512 endif
514 # - used to ignore include if component not present
515 -include $(PDK_I2C_COMP_PATH)/i2c_component.mk
516 ifneq ($(i2c_LIB_LIST),)
517 pdk_LIB_LIST += $(i2c_LIB_LIST)
518 endif
519 ifneq ($(i2c_APP_LIB_LIST),)
520 pdk_APP_LIB_LIST += $(i2c_APP_LIB_LIST)
521 endif
522 ifneq ($(i2c_EXAMPLE_LIST),)
523 pdk_EXAMPLE_LIST += $(i2c_EXAMPLE_LIST)
524 endif
526 ifneq ($(i2c_FIRM_LIST),)
527 pdk_FIRM_LIST += $(i2c_FIRM_LIST)
528 endif
529 # - used to ignore include if component not present
530 -include $(PDK_UART_COMP_PATH)/uart_component.mk
531 ifneq ($(uart_LIB_LIST),)
532 pdk_LIB_LIST += $(uart_LIB_LIST)
533 endif
534 ifneq ($(uart_APP_LIB_LIST),)
535 pdk_APP_LIB_LIST += $(uart_APP_LIB_LIST)
536 endif
537 ifneq ($(uart_EXAMPLE_LIST),)
538 pdk_EXAMPLE_LIST += $(uart_EXAMPLE_LIST)
539 endif
541 # - used to ignore include if component not present
542 -include $(PDK_USB_COMP_PATH)/usb_component.mk
543 ifneq ($(usb_LIB_LIST),)
544 pdk_LIB_LIST += $(usb_LIB_LIST)
545 endif
546 ifneq ($(usb_APP_LIB_LIST),)
547 pdk_APP_LIB_LIST += $(usb_APP_LIB_LIST)
548 endif
549 ifneq ($(usb_EXAMPLE_LIST),)
550 pdk_EXAMPLE_LIST += $(usb_EXAMPLE_LIST)
551 endif
553 # - used to ignore include if component not present
554 -include $(PDK_SERDES_DIAG_COMP_PATH)/serdes_diag_component.mk
555 ifneq ($(serdes_diag_LIB_LIST),)
556 pdk_LIB_LIST += $(serdes_diag_LIB_LIST)
557 endif
558 ifneq ($(serdes_diag_APP_LIB_LIST),)
559 pdk_APP_LIB_LIST += $(serdes_diag_APP_LIB_LIST)
560 endif
561 ifneq ($(serdes_diag_EXAMPLE_LIST),)
562 pdk_EXAMPLE_LIST += $(serdes_diag_EXAMPLE_LIST)
563 endif
565 # - used to ignore include if component not present
566 -include $(PDK_GPIO_COMP_PATH)/gpio_component.mk
567 ifneq ($(gpio_LIB_LIST),)
568 pdk_LIB_LIST += $(gpio_LIB_LIST)
569 endif
570 ifneq ($(gpio_APP_LIB_LIST),)
571 pdk_APP_LIB_LIST += $(gpio_APP_LIB_LIST)
572 endif
573 ifneq ($(gpio_EXAMPLE_LIST),)
574 pdk_EXAMPLE_LIST += $(gpio_EXAMPLE_LIST)
575 endif
577 # - used to ignore include if component not present
578 -include $(PDK_PROFILING_COMP_PATH)/profiling_component.mk
579 ifneq ($(profiling_LIB_LIST),)
580 pdk_LIB_LIST += $(profiling_LIB_LIST)
581 endif
582 ifneq ($(profiling_APP_LIB_LIST),)
583 pdk_APP_LIB_LIST += $(profiling_APP_LIB_LIST)
584 endif
585 ifneq ($(profiling_EXAMPLE_LIST),)
586 pdk_EXAMPLE_LIST += $(profiling_EXAMPLE_LIST)
587 endif
589 # - used to ignore include if component not present
590 -include $(PDK_TRACE_COMP_PATH)/trace_component.mk
591 ifneq ($(trace_LIB_LIST),)
592 pdk_LIB_LIST += $(trace_LIB_LIST)
593 endif
594 ifneq ($(trace_APP_LIB_LIST),)
595 pdk_APP_LIB_LIST += $(trace_APP_LIB_LIST)
596 endif
597 ifneq ($(trace_EXAMPLE_LIST),)
598 pdk_EXAMPLE_LIST += $(trace_EXAMPLE_LIST)
599 endif
601 # - used to ignore include if component not present
602 -include $(PDK_NIMU_ICSS_COMP_PATH)/nimu_icss_component.mk
603 ifneq ($(nimu_icss_LIB_LIST),)
604 pdk_LIB_LIST += $(nimu_icss_LIB_LIST)
605 endif
606 ifneq ($(nimu_icss_APP_LIB_LIST),)
607 pdk_APP_LIB_LIST += $(nimu_icss_APP_LIB_LIST)
608 endif
609 ifneq ($(nimu_icss_EXAMPLE_LIST),)
610 pdk_EXAMPLE_LIST += $(nimu_icss_EXAMPLE_LIST)
611 endif
613 # - used to ignore include if component not present
614 -include $(PDK_TIMESYNC_COMP_PATH)/timeSync_component.mk
615 ifneq ($(timeSync_LIB_LIST),)
616 pdk_LIB_LIST += $(timeSync_LIB_LIST)
617 endif
618 ifneq ($(timeSync_APP_LIB_LIST),)
619 pdk_APP_LIB_LIST += $(timeSync_APP_LIB_LIST)
620 endif
621 ifneq ($(timeSync_EXAMPLE_LIST),)
622 pdk_EXAMPLE_LIST += $(timeSync_EXAMPLE_LIST)
623 endif
625 # - used to ignore include if component not present
626 -include $(PDK_NIMU_COMP_PATH)/nimu_component.mk
627 ifneq ($(nimu_LIB_LIST),)
628 pdk_LIB_LIST += $(nimu_LIB_LIST)
629 endif
630 ifneq ($(nimu_APP_LIB_LIST),)
631 pdk_APP_LIB_LIST += $(nimu_APP_LIB_LIST)
632 endif
633 ifneq ($(nimu_EXAMPLE_LIST),)
634 pdk_EXAMPLE_LIST += $(nimu_EXAMPLE_LIST)
635 endif
637 # - used to ignore include if component not present
638 -include $(PDK_FATFS_COMP_PATH)/fatfs_component.mk
639 ifneq ($(fatfs_LIB_LIST),)
640 pdk_LIB_LIST += $(fatfs_LIB_LIST)
641 endif
642 ifneq ($(fatfs_APP_LIB_LIST),)
643 pdk_APP_LIB_LIST += $(fatfs_APP_LIB_LIST)
644 endif
645 ifneq ($(fatfs_EXAMPLE_LIST),)
646 pdk_EXAMPLE_LIST += $(fatfs_EXAMPLE_LIST)
647 endif
649 # - used to ignore include if component not present
650 -include $(PDK_MMCSD_COMP_PATH)/mmcsd_component.mk
651 ifneq ($(mmcsd_LIB_LIST),)
652 pdk_LIB_LIST += $(mmcsd_LIB_LIST)
653 endif
654 ifneq ($(mmcsd_APP_LIB_LIST),)
655 pdk_APP_LIB_LIST += $(mmcsd_APP_LIB_LIST)
656 endif
657 ifneq ($(mmcsd_EXAMPLE_LIST),)
658 pdk_EXAMPLE_LIST += $(mmcsd_EXAMPLE_LIST)
659 endif
661 # - used to ignore include if component not present
662 -include $(PDK_PCIE_COMP_PATH)/pcie_component.mk
663 ifneq ($(pcie_LIB_LIST),)
664 pdk_LIB_LIST += $(pcie_LIB_LIST)
665 endif
666 ifneq ($(pcie_APP_LIB_LIST),)
667 pdk_APP_LIB_LIST += $(pcie_APP_LIB_LIST)
668 endif
669 ifneq ($(pcie_EXAMPLE_LIST),)
670 pdk_EXAMPLE_LIST += $(pcie_EXAMPLE_LIST)
671 endif
673 # - used to ignore include if component not present
674 -include $(PDK_MCASP_COMP_PATH)/mcasp_component.mk
675 ifneq ($(mcasp_LIB_LIST),)
676 pdk_LIB_LIST += $(mcasp_LIB_LIST)
677 endif
678 ifneq ($(mcasp_APP_LIB_LIST),)
679 pdk_APP_LIB_LIST += $(mcasp_APP_LIB_LIST)
680 endif
681 ifneq ($(mcasp_EXAMPLE_LIST),)
682 pdk_EXAMPLE_LIST += $(mcasp_EXAMPLE_LIST)
683 endif
685 # - used to ignore include if component not present
686 -include $(PDK_MCBSP_COMP_PATH)/mcbsp_component.mk
687 ifneq ($(mcbsp_LIB_LIST),)
688 pdk_LIB_LIST += $(mcbsp_LIB_LIST)
689 endif
690 ifneq ($(mcbsp_APP_LIB_LIST),)
691 pdk_APP_LIB_LIST += $(mcbsp_APP_LIB_LIST)
692 endif
693 ifneq ($(mcbsp_EXAMPLE_LIST),)
694 pdk_EXAMPLE_LIST += $(mcbsp_EXAMPLE_LIST)
695 endif
697 # - used to ignore include if component not present
698 -include $(PDK_ICSS_EMAC_COMP_PATH)/icss_emac_component.mk
699 ifneq ($(icss_emac_LIB_LIST),)
700 pdk_LIB_LIST += $(icss_emac_LIB_LIST)
701 endif
702 ifneq ($(icss_emac_APP_LIB_LIST),)
703 pdk_APP_LIB_LIST += $(icss_emac_APP_LIB_LIST)
704 endif
705 ifneq ($(icss_emac_EXAMPLE_LIST),)
706 pdk_EXAMPLE_LIST += $(icss_emac_EXAMPLE_LIST)
707 endif
708 ifneq ($(icss_emac_FIRM_LIST),)
709 pdk_FIRM_LIST += $(icss_emac_FIRM_LIST)
710 endif
712 # - used to ignore include if component not present
713 -include $(PDK_EMAC_COMP_PATH)/emac_component.mk
714 ifneq ($(emac_LIB_LIST),)
715 pdk_LIB_LIST += $(emac_LIB_LIST)
716 endif
717 ifneq ($(emac_APP_LIB_LIST),)
718 pdk_APP_LIB_LIST += $(emac_APP_LIB_LIST)
719 endif
720 ifneq ($(emac_EXAMPLE_LIST),)
721 pdk_EXAMPLE_LIST += $(emac_EXAMPLE_LIST)
722 endif
724 # - used to ignore include if component not present
725 -include $(PDK_PRUSS_COMP_PATH)/pruss_component.mk
726 ifneq ($(pruss_LIB_LIST),)
727 pdk_LIB_LIST += $(pruss_LIB_LIST)
728 endif
729 ifneq ($(pruss_APP_LIB_LIST),)
730 pdk_APP_LIB_LIST += $(pruss_APP_LIB_LIST)
731 endif
732 ifneq ($(pruss_EXAMPLE_LIST),)
733 pdk_EXAMPLE_LIST += $(pruss_EXAMPLE_LIST)
734 endif
735 ifneq ($(pruss_FIRM_LIST),)
736 pdk_FIRM_LIST += $(pruss_FIRM_LIST)
737 endif
739 # - used to ignore include if component not present
740 -include $(PDK_SPI_COMP_PATH)/spi_component.mk
741 ifneq ($(spi_LIB_LIST),)
742 pdk_LIB_LIST += $(spi_LIB_LIST)
743 endif
744 ifneq ($(spi_APP_LIB_LIST),)
745 pdk_APP_LIB_LIST += $(spi_APP_LIB_LIST)
746 endif
747 ifneq ($(spi_EXAMPLE_LIST),)
748 pdk_EXAMPLE_LIST += $(spi_EXAMPLE_LIST)
749 endif
751 # - used to ignore include if component not present
752 -include $(PDK_GPMC_COMP_PATH)/gpmc_component.mk
753 ifneq ($(gpmc_LIB_LIST),)
754 pdk_LIB_LIST += $(gpmc_LIB_LIST)
755 endif
756 ifneq ($(gpmc_APP_LIB_LIST),)
757 pdk_APP_LIB_LIST += $(gpmc_APP_LIB_LIST)
758 endif
759 ifneq ($(gpmc_EXAMPLE_LIST),)
760 pdk_EXAMPLE_LIST += $(gpmc_EXAMPLE_LIST)
761 endif
763 # - used to ignore include if component not present
764 -include $(PDK_SA_COMP_PATH)/sa_component.mk
765 ifneq ($(sa_LIB_LIST),)
766 pdk_LIB_LIST += $(sa_LIB_LIST)
767 endif
768 ifneq ($(sa_APP_LIB_LIST),)
769 pdk_APP_LIB_LIST += $(sa_APP_LIB_LIST)
770 endif
771 ifneq ($(sa_EXAMPLE_LIST),)
772 pdk_EXAMPLE_LIST += $(sa_EXAMPLE_LIST)
773 endif
775 #Below applicable only for TPR12 devices
776 # - used to ignore include if component not present
777 -include $(PDK_CRC_COMP_PATH)/crc_component.mk
778 ifneq ($(crc_LIB_LIST),)
779 pdk_LIB_LIST += $(crc_LIB_LIST)
780 endif
781 ifneq ($(crc_APP_LIB_LIST),)
782 pdk_APP_LIB_LIST += $(crc_APP_LIB_LIST)
783 endif
784 ifneq ($(crc_EXAMPLE_LIST),)
785 pdk_EXAMPLE_LIST += $(crc_EXAMPLE_LIST)
786 endif
787 # - used to ignore include if component not present
788 -include $(PDK_EDMA_COMP_PATH)/edma_component.mk
789 ifneq ($(edma_LIB_LIST),)
790 pdk_LIB_LIST += $(edma_LIB_LIST)
791 endif
792 ifneq ($(edma_APP_LIB_LIST),)
793 pdk_APP_LIB_LIST += $(edma_APP_LIB_LIST)
794 endif
795 ifneq ($(edma_EXAMPLE_LIST),)
796 pdk_EXAMPLE_LIST += $(edma_EXAMPLE_LIST)
797 endif
798 # - used to ignore include if component not present
799 -include $(PDK_MAILBOX_COMP_PATH)/mailbox_component.mk
800 ifneq ($(mailbox_LIB_LIST),)
801 pdk_LIB_LIST += $(mailbox_LIB_LIST)
802 endif
803 ifneq ($(mailbox_APP_LIB_LIST),)
804 pdk_APP_LIB_LIST += $(mailbox_APP_LIB_LIST)
805 endif
806 ifneq ($(mailbox_EXAMPLE_LIST),)
807 pdk_EXAMPLE_LIST += $(mailbox_EXAMPLE_LIST)
808 endif
809 # - used to ignore include if component not present
810 -include $(PDK_MIBSPI_COMP_PATH)/mibspi_component.mk
811 ifneq ($(mibspi_LIB_LIST),)
812 pdk_LIB_LIST += $(mibspi_LIB_LIST)
813 endif
814 ifneq ($(mibspi_APP_LIB_LIST),)
815 pdk_APP_LIB_LIST += $(mibspi_APP_LIB_LIST)
816 endif
817 ifneq ($(mibspi_EXAMPLE_LIST),)
818 pdk_EXAMPLE_LIST += $(mibspi_EXAMPLE_LIST)
819 endif
821 # - used to ignore include if component not present
822 -include $(PDK_ESM_COMP_PATH)/esm_component.mk
823 ifneq ($(esm_LIB_LIST),)
824 pdk_LIB_LIST += $(esm_LIB_LIST)
825 endif
826 ifneq ($(esm_APP_LIB_LIST),)
827 pdk_APP_LIB_LIST += $(esm_APP_LIB_LIST)
828 endif
829 ifneq ($(esm_EXAMPLE_LIST),)
830 pdk_EXAMPLE_LIST += $(esm_EXAMPLE_LIST)
831 endif
832 # - used to ignore include if component not present
833 -include $(PDK_CAN_COMP_PATH)/can_component.mk
834 ifneq ($(can_LIB_LIST),)
835 pdk_LIB_LIST += $(can_LIB_LIST)
836 endif
837 ifneq ($(can_APP_LIB_LIST),)
838 pdk_APP_LIB_LIST += $(can_APP_LIB_LIST)
839 endif
840 ifneq ($(can_EXAMPLE_LIST),)
841 pdk_EXAMPLE_LIST += $(can_EXAMPLE_LIST)
842 endif
844 # Components included for non-baremetal OS
845 ifneq ($(BUILD_OS_TYPE), baremetal)
846 #Below applicable only for TDA devices for backward compatibility;not applicable for PRSDK
847 # - used to ignore include if component not present
848 -include $(PDK_BSP_LLD_COMP_PATH)/bsp_lld_component.mk
849 ifneq ($(bsp_lld_LIB_LIST),)
850 pdk_LIB_LIST += $(bsp_lld_LIB_LIST)
851 endif
852 ifneq ($(bsp_lld_EXAMPLE_LIST),)
853 pdk_EXAMPLE_LIST += $(bsp_lld_EXAMPLE_LIST)
854 endif
855 endif
857 #Below applicable only for K3 DMSC; not applicable for PRSDK
858 # - used to ignore include if component not present
859 -include $(DMSC_COMP_PATH)/dmsc_component.mk
860 ifneq ($(dmsc_LIB_LIST),)
861 pdk_LIB_LIST += $(dmsc_LIB_LIST)
862 endif
863 ifneq ($(dmsc_EXAMPLE_LIST),)
864 pdk_EXAMPLE_LIST += $(dmsc_EXAMPLE_LIST)
865 endif
867 # - used to ignore include if component not present
868 -include $(PDK_BOARD_UTILS_COMP_PATH)/board_utils_component.mk
869 ifneq ($(board_utils_LIB_LIST),)
870 pdk_LIB_LIST += $(board_utils_LIB_LIST)
871 endif
872 ifneq ($(board_utils_EXAMPLE_LIST),)
873 pdk_EXAMPLE_LIST += $(board_utils_EXAMPLE_LIST)
874 endif
876 # - used to ignore include if component not present
877 -include $(PDK_BOARD_DIAG_COMP_PATH)/board_diag_component.mk
878 ifneq ($(board_diag_LIB_LIST),)
879 pdk_LIB_LIST += $(board_diag_LIB_LIST)
880 endif
881 ifneq ($(board_diag_EXAMPLE_LIST),)
882 pdk_EXAMPLE_LIST += $(board_diag_EXAMPLE_LIST)
883 endif
885 # Adding new component to the packages/ti/build which is not part of the PDK.
886 # An example would be some demo which is not built from packages/ti/build but
887 # would still like to use the ti/build/ infrastructure
889 ifeq ($($(COMP)_USE_PDK_BUILD),yes)
890 include $($(COMP)_COMPONENT_MK_PATH)/$(COMP)_component.mk
892 ifneq ($($(COMP)_LIB_LIST),)
893 pdk_LIB_LIST += $($(COMP)_LIB_LIST)
894 endif
896 ifneq ($($(COMP)_APP_LIB_LIST),)
897 pdk_APP_LIB_LIST += $($(COMP)_APP_LIB_LIST)
898 endif
900 ifneq ($($(COMP)_FIRM_LIST),)
901 pdk_FIRM_LIST += $($(COMP)_FIRM_LIST)
902 endif
904 ifneq ( $($(COMP)_EXAMPLE_LIST),)
905 pdk_EXAMPLE_LIST += $($(COMP)_EXAMPLE_LIST)
906 endif
908 endif
910 pdk_PKG_LIST_ALL = $(pdk_EXAMPLE_LIST) $(pdk_LIB_LIST) $(pdk_APP_LIB_LIST) $(pdk_FIRM_LIST)
912 ifneq ($(CORE),$(filter $(CORE), pru_0 pru_1))
913 # By default it is little endian for non pru cores
914 LIB_ENDIAN_LIST = little
915 endif
916 #
917 # PDK Modules
918 #
920 #
921 # PDK Examples
922 #
924 #Default to all if not set from rules.make or command line
925 ifeq ($(PACKAGE_SELECT), )
926 PACKAGE_SELECT := all
927 endif
929 ifeq ($(CORE),mcu1_0)
930 PDK_CFLAGS += -DBUILD_MCU1_0 -DBUILD_MCU
931 PDK_LNKFLAGS += --define=BUILD_MCU1_0 --define=BUILD_MCU
932 endif
934 ifeq ($(CORE),mcu1_1)
935 PDK_CFLAGS += -DBUILD_MCU1_1 -DBUILD_MCU
936 PDK_LNKFLAGS += --define=BUILD_MCU1_1 --define=BUILD_MCU
937 endif
939 ifeq ($(CORE),mcu2_0)
940 PDK_CFLAGS += -DBUILD_MCU2_0 -DBUILD_MCU
941 PDK_LNKFLAGS += --define=BUILD_MCU2_0 --define=BUILD_MCU
942 endif
944 ifeq ($(CORE),mcu2_1)
945 PDK_CFLAGS += -DBUILD_MCU2_1 -DBUILD_MCU
946 PDK_LNKFLAGS += --define=BUILD_MCU2_1 --define=BUILD_MCU
947 endif
949 ifeq ($(CORE),mcu3_0)
950 PDK_CFLAGS += -DBUILD_MCU3_0 -DBUILD_MCU
951 PDK_LNKFLAGS += --define=BUILD_MCU3_0 --define=BUILD_MCU
952 endif
954 ifeq ($(CORE),mcu3_1)
955 PDK_CFLAGS += -DBUILD_MCU3_1 -DBUILD_MCU
956 PDK_LNKFLAGS += --define=BUILD_MCU3_1 --define=BUILD_MCU
957 endif
959 ifeq ($(CORE),mpu1_0)
960 PDK_CFLAGS += -DBUILD_MPU1_0 -DBUILD_MPU
961 PDK_LNKFLAGS += --define=BUILD_MPU1_0 --define=BUILD_MPU
962 endif
964 ifeq ($(CORE),mpu1_1)
965 PDK_CFLAGS += -DBUILD_MPU1_1 -DBUILD_MPU
966 PDK_LNKFLAGS += --define=BUILD_MPU1_1 --define=BUILD_MPU
967 endif
969 ifeq ($(CORE),mpu2_0)
970 PDK_CFLAGS += -DBUILD_MPU2_0 -DBUILD_MPU
971 PDK_LNKFLAGS += --define=BUILD_MPU2_0 --define=BUILD_MPU
972 endif
974 ifeq ($(CORE),mpu2_1)
975 PDK_CFLAGS += -DBUILD_MPU2_1 -DBUILD_MPU
976 PDK_LNKFLAGS += --define=BUILD_MPU2_1 --define=BUILD_MPU
977 endif
979 ifeq ($(CORE),ipu1_0)
980 PDK_CFLAGS += -DBUILD_IPU1_0 -DBUILD_IPU1
981 PDK_LNKFLAGS += --define=BUILD_IPU1_0 --define=BUILD_IPU1
982 endif
984 ifeq ($(CORE),ipu1_1)
985 PDK_CFLAGS += -DBUILD_IPU1_1 -DBUILD_IPU1
986 PDK_LNKFLAGS += --define=BUILD_IPU1_1 --define=BUILD_IPU1
987 endif
989 ifeq ($(CORE),ipu2_0)
990 PDK_CFLAGS += -DBUILD_IPU2_0 -DBUILD_IPU2
991 PDK_LNKFLAGS += --define=BUILD_IPU2_0 --define=BUILD_IPU2
992 endif
994 ifeq ($(CORE),ipu2_1)
995 PDK_CFLAGS += -DBUILD_IPU2_1 -DBUILD_IPU2
996 PDK_LNKFLAGS += --define=BUILD_IPU2_1 --define=BUILD_IPU2
997 endif
999 ifeq ($(CORE),m3)
1000 PDK_CFLAGS += -DBUILD_M3
1001 PDK_LNKFLAGS += --define=BUILD_M3
1002 endif
1004 ifeq ($(CORE),arp32_1)
1005 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_1
1006 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_1
1007 endif
1009 ifeq ($(CORE),arp32_2)
1010 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_2
1011 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_2
1012 endif
1014 ifeq ($(CORE),arp32_3)
1015 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_3
1016 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_3
1017 endif
1019 ifeq ($(CORE),arp32_4)
1020 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_4
1021 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_4
1022 endif
1024 ifeq ($(CORE),a8host)
1025 PDK_CFLAGS += -DBUILD_A8
1026 PDK_LNKFLAGS += --define=BUILD_A8
1027 endif
1029 ifeq ($(CORE),pru_0)
1030 PDK_CFLAGS += -DPRU0 -Dpru0
1031 PDK_LNKFLAGS += --define=PRU0 --define=pru0
1032 # List all the libraries to be built
1033 ifeq ($(SOC),$(filter $(SOC), am335x am437x))
1034 PRU_VERSION_LIST = REV1
1035 endif
1036 ifeq ($(SOC),$(filter $(SOC), am571x k2g am574x))
1037 PRU_VERSION_LIST = REV2
1038 endif
1039 ifeq ($(SOC),$(filter $(SOC), am572x))
1040 PRU_VERSION_LIST = REV1 REV2
1041 endif
1042 endif
1044 ifeq ($(CORE),pru_1)
1045 PDK_CFLAGS += -DPRU1 -Dpru1
1046 PDK_LNKFLAGS += --define=PRU1 --define=pru1
1047 # List all the libraries to be built
1048 ifeq ($(SOC),$(filter $(SOC), am335x am437x))
1049 PRU_VERSION_LIST = REV1
1050 endif
1051 ifeq ($(SOC),$(filter $(SOC), am571x k2g am574x))
1052 PRU_VERSION_LIST = REV2
1053 endif
1054 ifeq ($(SOC),$(filter $(SOC), am572x))
1055 PRU_VERSION_LIST = REV1 REV2
1056 endif
1057 endif
1059 ifeq ($(CORE),a15_0)
1060 PDK_CFLAGS += -DBUILD_A15_0
1061 PDK_LNKFLAGS += --define=BUILD_A15_0
1062 endif
1064 ifeq ($(CORE),$(filter $(CORE), c66x c66xdsp_1 c66xdsp_2))
1065 ifeq ($(CORE),$(filter $(CORE), c66xdsp_1))
1066 PDK_CFLAGS += -DBUILD_DSP_1 -DBUILD_C66X_1
1067 PDK_LNKFLAGS += --define=BUILD_DSP_1 --define=BUILD_C66X_1
1068 endif
1069 ifeq ($(CORE),$(filter $(CORE), c66xdsp_2))
1070 PDK_CFLAGS += -DBUILD_DSP_2 -DBUILD_C66X_2
1071 PDK_LNKFLAGS += --define=BUILD_DSP_2 --define=BUILD_C66X_2
1072 endif
1073 endif
1075 ifeq ($(CORE),$(filter $(CORE), c7x_1 c7x-hostemu))
1076 PDK_CFLAGS += -DBUILD_C7X_1
1077 PDK_LNKFLAGS += --define=BUILD_C7X_1
1078 endif
1080 ifeq ($(CORE),$(filter $(CORE), qnx_mpu1_0))
1081 PDK_CFLAGS += -DQNX_OS -DBUILD_MPU1_0
1082 PDK_LNKFLAGS += --define=QNX_OS --define=BUILD_MPU1_0
1083 endif
1085 ifeq ($(CORE),$(filter $(CORE), m4f_0))
1086 PDK_CFLAGS += -DBUILD_M4F_0 -DBUILD_M4F
1087 PDK_LNKFLAGS += --define=BUILD_M4F_0 --define=BUILD_M4F
1088 endif
1090 export PDK_CFLAGS
1091 export PDK_LNKFLAGS
1093 pdk_component_make_include := 1
1094 endif