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_SDR_COMP_PATH)/sdr_component.mk
412 ifneq ($(sdr_LIB_LIST),)
413 pdk_LIB_LIST += $(sdr_LIB_LIST)
414 endif
415 ifneq ($(sdr_APP_LIB_LIST),)
416 pdk_APP_LIB_LIST += $(sdr_APP_LIB_LIST)
417 endif
418 ifneq ($(sdr_EXAMPLE_LIST),)
419 pdk_EXAMPLE_LIST += $(sdr_EXAMPLE_LIST)
420 endif
422 # - used to ignore include if component not present
423 -include $(PDK_DIAG_EX_COMP_PATH)/diag_ex_component.mk
424 ifneq ($(diag_ex_LIB_LIST),)
425 pdk_LIB_LIST += $(diag_ex_LIB_LIST)
426 endif
427 ifneq ($(diag_ex_APP_LIB_LIST),)
428 pdk_APP_LIB_LIST += $(diag_ex_APP_LIB_LIST)
429 endif
430 ifneq ($(diag_ex_EXAMPLE_LIST),)
431 pdk_EXAMPLE_LIST += $(diag_ex_EXAMPLE_LIST)
432 endif
434 # - used to ignore include if component not present
435 -include $(PDK_IPC_COMP_PATH)/ipc_component.mk
436 ifneq ($(ipc_LIB_LIST),)
437 pdk_LIB_LIST += $(ipc_LIB_LIST)
438 endif
439 ifneq ($(ipc_APP_LIB_LIST),)
440 pdk_APP_LIB_LIST += $(ipc_APP_LIB_LIST)
441 endif
442 ifneq ($(ipc_EXAMPLE_LIST),)
443 pdk_EXAMPLE_LIST += $(ipc_EXAMPLE_LIST)
444 endif
445 ifneq ($(ipc_DUP_EXAMPLE_LIST),)
446 pdk_DUP_EXAMPLE_LIST += $(ipc_DUP_EXAMPLE_LIST)
447 endif
449 # - used to ignore include if component not present
450 -include $(PDK_IPCLITE_COMP_PATH)/ipclite_component.mk
451 ifneq ($(ipclite_LIB_LIST),)
452 pdk_LIB_LIST += $(ipclite_LIB_LIST)
453 endif
454 ifneq ($(ipclite_APP_LIB_LIST),)
455 pdk_APP_LIB_LIST += $(ipclite_APP_LIB_LIST)
456 endif
457 ifneq ($(ipclite_EXAMPLE_LIST),)
458 pdk_EXAMPLE_LIST += $(ipclite_EXAMPLE_LIST)
459 endif
461 # - used to ignore include if component not present
462 -include $(PDK_TDA3X_SECURITY_COMP_PATH)/security_component.mk
463 ifneq ($(security_LIB_LIST),)
464 pdk_LIB_LIST += $(security_LIB_LIST)
465 endif
466 ifneq ($(security_APP_LIB_LIST),)
467 pdk_APP_LIB_LIST += $(security_APP_LIB_LIST)
468 endif
469 ifneq ($(security_EXAMPLE_LIST),)
470 pdk_EXAMPLE_LIST += $(security_EXAMPLE_LIST)
471 endif
473 #Below applicable only for TDA devices for backward compatibility;not applicable for PRSDK
475 # - used to ignore include if component not present
476 -include $(PDK_NORFLASH_COMP_PATH)/norflash_component.mk
477 ifneq ($(norflash_LIB_LIST),)
478 pdk_LIB_LIST += $(norflash_LIB_LIST)
479 endif
480 ifneq ($(norflash_APP_LIB_LIST),)
481 pdk_APP_LIB_LIST += $(norflash_APP_LIB_LIST)
482 endif
483 ifneq ($(norflash_EXAMPLE_LIST),)
484 pdk_EXAMPLE_LIST += $(norflash_EXAMPLE_LIST)
485 endif
487 # - used to ignore include if component not present
488 -include $(PDK_QSPIFLASH_COMP_PATH)/qspiflash_component.mk
489 ifneq ($(qspiflash_LIB_LIST),)
490 pdk_LIB_LIST += $(qspiflash_LIB_LIST)
491 endif
492 ifneq ($(qspiflash_APP_LIB_LIST),)
493 pdk_APP_LIB_LIST += $(qspiflash_APP_LIB_LIST)
494 endif
495 ifneq ($(qspiflash_EXAMPLE_LIST),)
496 pdk_EXAMPLE_LIST += $(qspiflash_EXAMPLE_LIST)
497 endif
499 # - used to ignore include if component not present
500 -include $(PDK_STW_LLD_COMP_PATH)/stw_lld_component.mk
501 ifneq ($(stw_lld_LIB_LIST),)
502 pdk_LIB_LIST += $(stw_lld_LIB_LIST)
503 endif
504 ifneq ($(stw_lld_APP_LIB_LIST),)
505 pdk_APP_LIB_LIST += $(stw_lld_APP_LIB_LIST)
506 endif
507 ifneq ($(stw_lld_EXAMPLE_LIST),)
508 pdk_EXAMPLE_LIST += $(stw_lld_EXAMPLE_LIST)
509 endif
510 ifneq ($(stw_lld_DUP_EXAMPLE_LIST),)
511 pdk_DUP_EXAMPLE_LIST += $(stw_lld_DUP_EXAMPLE_LIST)
512 endif
514 # - used to ignore include if component not present
515 -include $(PDK_VPS_COMP_PATH)/vps_component.mk
516 ifneq ($(vps_LIB_LIST),)
517 pdk_LIB_LIST += $(vps_LIB_LIST)
518 endif
519 ifneq ($(vps_APP_LIB_LIST),)
520 pdk_APP_LIB_LIST += $(vps_APP_LIB_LIST)
521 endif
522 ifneq ($(vps_EXAMPLE_LIST),)
523 pdk_EXAMPLE_LIST += $(vps_EXAMPLE_LIST)
524 endif
526 # - used to ignore include if component not present
527 -include $(PDK_OSAL_COMP_PATH)/osal_component.mk
528 ifneq ($(osal_LIB_LIST),)
529 pdk_LIB_LIST += $(osal_LIB_LIST)
530 endif
531 ifneq ($(osal_APP_LIB_LIST),)
532 pdk_APP_LIB_LIST += $(osal_APP_LIB_LIST)
533 endif
534 ifneq ($(osal_EXAMPLE_LIST),)
535 pdk_EXAMPLE_LIST += $(osal_EXAMPLE_LIST)
536 endif
538 # - used to ignore include if component not present
539 -include $(PDK_I2C_COMP_PATH)/i2c_component.mk
540 ifneq ($(i2c_LIB_LIST),)
541 pdk_LIB_LIST += $(i2c_LIB_LIST)
542 endif
543 ifneq ($(i2c_APP_LIB_LIST),)
544 pdk_APP_LIB_LIST += $(i2c_APP_LIB_LIST)
545 endif
546 ifneq ($(i2c_EXAMPLE_LIST),)
547 pdk_EXAMPLE_LIST += $(i2c_EXAMPLE_LIST)
548 endif
550 ifneq ($(i2c_FIRM_LIST),)
551 pdk_FIRM_LIST += $(i2c_FIRM_LIST)
552 endif
553 # - used to ignore include if component not present
554 -include $(PDK_UART_COMP_PATH)/uart_component.mk
555 ifneq ($(uart_LIB_LIST),)
556 pdk_LIB_LIST += $(uart_LIB_LIST)
557 endif
558 ifneq ($(uart_APP_LIB_LIST),)
559 pdk_APP_LIB_LIST += $(uart_APP_LIB_LIST)
560 endif
561 ifneq ($(uart_EXAMPLE_LIST),)
562 pdk_EXAMPLE_LIST += $(uart_EXAMPLE_LIST)
563 endif
565 # - used to ignore include if component not present
566 -include $(PDK_USB_COMP_PATH)/usb_component.mk
567 ifneq ($(usb_LIB_LIST),)
568 pdk_LIB_LIST += $(usb_LIB_LIST)
569 endif
570 ifneq ($(usb_APP_LIB_LIST),)
571 pdk_APP_LIB_LIST += $(usb_APP_LIB_LIST)
572 endif
573 ifneq ($(usb_EXAMPLE_LIST),)
574 pdk_EXAMPLE_LIST += $(usb_EXAMPLE_LIST)
575 endif
577 # - used to ignore include if component not present
578 -include $(PDK_SERDES_DIAG_COMP_PATH)/serdes_diag_component.mk
579 ifneq ($(serdes_diag_LIB_LIST),)
580 pdk_LIB_LIST += $(serdes_diag_LIB_LIST)
581 endif
582 ifneq ($(serdes_diag_APP_LIB_LIST),)
583 pdk_APP_LIB_LIST += $(serdes_diag_APP_LIB_LIST)
584 endif
585 ifneq ($(serdes_diag_EXAMPLE_LIST),)
586 pdk_EXAMPLE_LIST += $(serdes_diag_EXAMPLE_LIST)
587 endif
589 # - used to ignore include if component not present
590 -include $(PDK_GPIO_COMP_PATH)/gpio_component.mk
591 ifneq ($(gpio_LIB_LIST),)
592 pdk_LIB_LIST += $(gpio_LIB_LIST)
593 endif
594 ifneq ($(gpio_APP_LIB_LIST),)
595 pdk_APP_LIB_LIST += $(gpio_APP_LIB_LIST)
596 endif
597 ifneq ($(gpio_EXAMPLE_LIST),)
598 pdk_EXAMPLE_LIST += $(gpio_EXAMPLE_LIST)
599 endif
601 # - used to ignore include if component not present
602 -include $(PDK_PROFILING_COMP_PATH)/profiling_component.mk
603 ifneq ($(profiling_LIB_LIST),)
604 pdk_LIB_LIST += $(profiling_LIB_LIST)
605 endif
606 ifneq ($(profiling_APP_LIB_LIST),)
607 pdk_APP_LIB_LIST += $(profiling_APP_LIB_LIST)
608 endif
609 ifneq ($(profiling_EXAMPLE_LIST),)
610 pdk_EXAMPLE_LIST += $(profiling_EXAMPLE_LIST)
611 endif
612 # - used to ignore include if component not present
613 -include $(PDK_COPYVECS_COMP_PATH)/copyvecs_component.mk
614 ifneq ($(copyvecs_LIB_LIST),)
615 pdk_LIB_LIST += $(copyvecs_LIB_LIST)
616 endif
618 # - used to ignore include if component not present
619 -include $(PDK_TRACE_COMP_PATH)/trace_component.mk
620 ifneq ($(trace_LIB_LIST),)
621 pdk_LIB_LIST += $(trace_LIB_LIST)
622 endif
623 ifneq ($(trace_APP_LIB_LIST),)
624 pdk_APP_LIB_LIST += $(trace_APP_LIB_LIST)
625 endif
626 ifneq ($(trace_EXAMPLE_LIST),)
627 pdk_EXAMPLE_LIST += $(trace_EXAMPLE_LIST)
628 endif
630 # - used to ignore include if component not present
631 -include $(PDK_NIMU_ICSS_COMP_PATH)/nimu_icss_component.mk
632 ifneq ($(nimu_icss_LIB_LIST),)
633 pdk_LIB_LIST += $(nimu_icss_LIB_LIST)
634 endif
635 ifneq ($(nimu_icss_APP_LIB_LIST),)
636 pdk_APP_LIB_LIST += $(nimu_icss_APP_LIB_LIST)
637 endif
638 ifneq ($(nimu_icss_EXAMPLE_LIST),)
639 pdk_EXAMPLE_LIST += $(nimu_icss_EXAMPLE_LIST)
640 endif
642 # - used to ignore include if component not present
643 -include $(PDK_TIMESYNC_COMP_PATH)/timeSync_component.mk
644 ifneq ($(timeSync_LIB_LIST),)
645 pdk_LIB_LIST += $(timeSync_LIB_LIST)
646 endif
647 ifneq ($(timeSync_APP_LIB_LIST),)
648 pdk_APP_LIB_LIST += $(timeSync_APP_LIB_LIST)
649 endif
650 ifneq ($(timeSync_EXAMPLE_LIST),)
651 pdk_EXAMPLE_LIST += $(timeSync_EXAMPLE_LIST)
652 endif
654 # - used to ignore include if component not present
655 -include $(PDK_NIMU_COMP_PATH)/nimu_component.mk
656 ifneq ($(nimu_LIB_LIST),)
657 pdk_LIB_LIST += $(nimu_LIB_LIST)
658 endif
659 ifneq ($(nimu_APP_LIB_LIST),)
660 pdk_APP_LIB_LIST += $(nimu_APP_LIB_LIST)
661 endif
662 ifneq ($(nimu_EXAMPLE_LIST),)
663 pdk_EXAMPLE_LIST += $(nimu_EXAMPLE_LIST)
664 endif
666 # - used to ignore include if component not present
667 -include $(PDK_FATFS_COMP_PATH)/fatfs_component.mk
668 ifneq ($(fatfs_LIB_LIST),)
669 pdk_LIB_LIST += $(fatfs_LIB_LIST)
670 endif
671 ifneq ($(fatfs_APP_LIB_LIST),)
672 pdk_APP_LIB_LIST += $(fatfs_APP_LIB_LIST)
673 endif
674 ifneq ($(fatfs_EXAMPLE_LIST),)
675 pdk_EXAMPLE_LIST += $(fatfs_EXAMPLE_LIST)
676 endif
678 # - used to ignore include if component not present
679 -include $(PDK_MMCSD_COMP_PATH)/mmcsd_component.mk
680 ifneq ($(mmcsd_LIB_LIST),)
681 pdk_LIB_LIST += $(mmcsd_LIB_LIST)
682 endif
683 ifneq ($(mmcsd_APP_LIB_LIST),)
684 pdk_APP_LIB_LIST += $(mmcsd_APP_LIB_LIST)
685 endif
686 ifneq ($(mmcsd_EXAMPLE_LIST),)
687 pdk_EXAMPLE_LIST += $(mmcsd_EXAMPLE_LIST)
688 endif
690 # - used to ignore include if component not present
691 -include $(PDK_PCIE_COMP_PATH)/pcie_component.mk
692 ifneq ($(pcie_LIB_LIST),)
693 pdk_LIB_LIST += $(pcie_LIB_LIST)
694 endif
695 ifneq ($(pcie_APP_LIB_LIST),)
696 pdk_APP_LIB_LIST += $(pcie_APP_LIB_LIST)
697 endif
698 ifneq ($(pcie_EXAMPLE_LIST),)
699 pdk_EXAMPLE_LIST += $(pcie_EXAMPLE_LIST)
700 endif
702 # - used to ignore include if component not present
703 -include $(PDK_MCASP_COMP_PATH)/mcasp_component.mk
704 ifneq ($(mcasp_LIB_LIST),)
705 pdk_LIB_LIST += $(mcasp_LIB_LIST)
706 endif
707 ifneq ($(mcasp_APP_LIB_LIST),)
708 pdk_APP_LIB_LIST += $(mcasp_APP_LIB_LIST)
709 endif
710 ifneq ($(mcasp_EXAMPLE_LIST),)
711 pdk_EXAMPLE_LIST += $(mcasp_EXAMPLE_LIST)
712 endif
714 # - used to ignore include if component not present
715 -include $(PDK_MCBSP_COMP_PATH)/mcbsp_component.mk
716 ifneq ($(mcbsp_LIB_LIST),)
717 pdk_LIB_LIST += $(mcbsp_LIB_LIST)
718 endif
719 ifneq ($(mcbsp_APP_LIB_LIST),)
720 pdk_APP_LIB_LIST += $(mcbsp_APP_LIB_LIST)
721 endif
722 ifneq ($(mcbsp_EXAMPLE_LIST),)
723 pdk_EXAMPLE_LIST += $(mcbsp_EXAMPLE_LIST)
724 endif
726 # - used to ignore include if component not present
727 -include $(PDK_ICSS_EMAC_COMP_PATH)/icss_emac_component.mk
728 ifneq ($(icss_emac_LIB_LIST),)
729 pdk_LIB_LIST += $(icss_emac_LIB_LIST)
730 endif
731 ifneq ($(icss_emac_APP_LIB_LIST),)
732 pdk_APP_LIB_LIST += $(icss_emac_APP_LIB_LIST)
733 endif
734 ifneq ($(icss_emac_EXAMPLE_LIST),)
735 pdk_EXAMPLE_LIST += $(icss_emac_EXAMPLE_LIST)
736 endif
737 ifneq ($(icss_emac_FIRM_LIST),)
738 pdk_FIRM_LIST += $(icss_emac_FIRM_LIST)
739 endif
741 # - used to ignore include if component not present
742 -include $(PDK_EMAC_COMP_PATH)/emac_component.mk
743 ifneq ($(emac_LIB_LIST),)
744 pdk_LIB_LIST += $(emac_LIB_LIST)
745 endif
746 ifneq ($(emac_APP_LIB_LIST),)
747 pdk_APP_LIB_LIST += $(emac_APP_LIB_LIST)
748 endif
749 ifneq ($(emac_EXAMPLE_LIST),)
750 pdk_EXAMPLE_LIST += $(emac_EXAMPLE_LIST)
751 endif
753 # - used to ignore include if component not present
754 -include $(PDK_PRUSS_COMP_PATH)/pruss_component.mk
755 ifneq ($(pruss_LIB_LIST),)
756 pdk_LIB_LIST += $(pruss_LIB_LIST)
757 endif
758 ifneq ($(pruss_APP_LIB_LIST),)
759 pdk_APP_LIB_LIST += $(pruss_APP_LIB_LIST)
760 endif
761 ifneq ($(pruss_EXAMPLE_LIST),)
762 pdk_EXAMPLE_LIST += $(pruss_EXAMPLE_LIST)
763 endif
764 ifneq ($(pruss_FIRM_LIST),)
765 pdk_FIRM_LIST += $(pruss_FIRM_LIST)
766 endif
768 # - used to ignore include if component not present
769 -include $(PDK_SPI_COMP_PATH)/spi_component.mk
770 ifneq ($(spi_LIB_LIST),)
771 pdk_LIB_LIST += $(spi_LIB_LIST)
772 endif
773 ifneq ($(spi_APP_LIB_LIST),)
774 pdk_APP_LIB_LIST += $(spi_APP_LIB_LIST)
775 endif
776 ifneq ($(spi_EXAMPLE_LIST),)
777 pdk_EXAMPLE_LIST += $(spi_EXAMPLE_LIST)
778 endif
780 # - used to ignore include if component not present
781 -include $(PDK_GPMC_COMP_PATH)/gpmc_component.mk
782 ifneq ($(gpmc_LIB_LIST),)
783 pdk_LIB_LIST += $(gpmc_LIB_LIST)
784 endif
785 ifneq ($(gpmc_APP_LIB_LIST),)
786 pdk_APP_LIB_LIST += $(gpmc_APP_LIB_LIST)
787 endif
788 ifneq ($(gpmc_EXAMPLE_LIST),)
789 pdk_EXAMPLE_LIST += $(gpmc_EXAMPLE_LIST)
790 endif
792 # - used to ignore include if component not present
793 -include $(PDK_SA_COMP_PATH)/sa_component.mk
794 ifneq ($(sa_LIB_LIST),)
795 pdk_LIB_LIST += $(sa_LIB_LIST)
796 endif
797 ifneq ($(sa_APP_LIB_LIST),)
798 pdk_APP_LIB_LIST += $(sa_APP_LIB_LIST)
799 endif
800 ifneq ($(sa_EXAMPLE_LIST),)
801 pdk_EXAMPLE_LIST += $(sa_EXAMPLE_LIST)
802 endif
804 #Below applicable only for TPR12 devices
805 # - used to ignore include if component not present
806 -include $(PDK_CRC_COMP_PATH)/crc_component.mk
807 ifneq ($(crc_LIB_LIST),)
808 pdk_LIB_LIST += $(crc_LIB_LIST)
809 endif
810 ifneq ($(crc_APP_LIB_LIST),)
811 pdk_APP_LIB_LIST += $(crc_APP_LIB_LIST)
812 endif
813 ifneq ($(crc_EXAMPLE_LIST),)
814 pdk_EXAMPLE_LIST += $(crc_EXAMPLE_LIST)
815 endif
816 # - used to ignore include if component not present
817 -include $(PDK_HWA_COMP_PATH)/hwa_component.mk
818 ifneq ($(hwa_LIB_LIST),)
819 pdk_LIB_LIST += $(hwa_LIB_LIST)
820 endif
821 ifneq ($(hwa_APP_LIB_LIST),)
822 pdk_APP_LIB_LIST += $(hwa_APP_LIB_LIST)
823 endif
824 ifneq ($(hwa_EXAMPLE_LIST),)
825 pdk_EXAMPLE_LIST += $(hwa_EXAMPLE_LIST)
826 endif
827 # - used to ignore include if component not present
828 -include $(PDK_EDMA_COMP_PATH)/edma_component.mk
829 ifneq ($(edma_LIB_LIST),)
830 pdk_LIB_LIST += $(edma_LIB_LIST)
831 endif
832 ifneq ($(edma_APP_LIB_LIST),)
833 pdk_APP_LIB_LIST += $(edma_APP_LIB_LIST)
834 endif
835 ifneq ($(edma_EXAMPLE_LIST),)
836 pdk_EXAMPLE_LIST += $(edma_EXAMPLE_LIST)
837 endif
838 # - used to ignore include if component not present
839 -include $(PDK_MAILBOX_COMP_PATH)/mailbox_component.mk
840 ifneq ($(mailbox_LIB_LIST),)
841 pdk_LIB_LIST += $(mailbox_LIB_LIST)
842 endif
843 ifneq ($(mailbox_APP_LIB_LIST),)
844 pdk_APP_LIB_LIST += $(mailbox_APP_LIB_LIST)
845 endif
846 ifneq ($(mailbox_EXAMPLE_LIST),)
847 pdk_EXAMPLE_LIST += $(mailbox_EXAMPLE_LIST)
848 endif
849 # - used to ignore include if component not present
850 -include $(PDK_MIBSPI_COMP_PATH)/mibspi_component.mk
851 ifneq ($(mibspi_LIB_LIST),)
852 pdk_LIB_LIST += $(mibspi_LIB_LIST)
853 endif
854 ifneq ($(mibspi_APP_LIB_LIST),)
855 pdk_APP_LIB_LIST += $(mibspi_APP_LIB_LIST)
856 endif
857 ifneq ($(mibspi_EXAMPLE_LIST),)
858 pdk_EXAMPLE_LIST += $(mibspi_EXAMPLE_LIST)
859 endif
861 # - used to ignore include if component not present
862 -include $(PDK_ESM_COMP_PATH)/esm_component.mk
863 ifneq ($(esm_LIB_LIST),)
864 pdk_LIB_LIST += $(esm_LIB_LIST)
865 endif
866 ifneq ($(esm_APP_LIB_LIST),)
867 pdk_APP_LIB_LIST += $(esm_APP_LIB_LIST)
868 endif
869 ifneq ($(esm_EXAMPLE_LIST),)
870 pdk_EXAMPLE_LIST += $(esm_EXAMPLE_LIST)
871 endif
872 # - used to ignore include if component not present
873 -include $(PDK_CAN_COMP_PATH)/can_component.mk
874 ifneq ($(can_LIB_LIST),)
875 pdk_LIB_LIST += $(can_LIB_LIST)
876 endif
877 ifneq ($(can_APP_LIB_LIST),)
878 pdk_APP_LIB_LIST += $(can_APP_LIB_LIST)
879 endif
880 ifneq ($(can_EXAMPLE_LIST),)
881 pdk_EXAMPLE_LIST += $(can_EXAMPLE_LIST)
882 endif
883 # - used to ignore include if component not present
884 -include $(PDK_WATCHDOG_COMP_PATH)/watchdog_component.mk
885 ifneq ($(watchdog_LIB_LIST),)
886 pdk_LIB_LIST += $(watchdog_LIB_LIST)
887 endif
888 ifneq ($(watchdog_APP_LIB_LIST),)
889 pdk_APP_LIB_LIST += $(watchdog_APP_LIB_LIST)
890 endif
891 ifneq ($(watchdog_EXAMPLE_LIST),)
892 pdk_EXAMPLE_LIST += $(watchdog_EXAMPLE_LIST)
893 endif
895 # Components included for non-baremetal OS
896 ifneq ($(BUILD_OS_TYPE), baremetal)
897 #Below applicable only for TDA devices for backward compatibility;not applicable for PRSDK
898 # - used to ignore include if component not present
899 -include $(PDK_BSP_LLD_COMP_PATH)/bsp_lld_component.mk
900 ifneq ($(bsp_lld_LIB_LIST),)
901 pdk_LIB_LIST += $(bsp_lld_LIB_LIST)
902 endif
903 ifneq ($(bsp_lld_EXAMPLE_LIST),)
904 pdk_EXAMPLE_LIST += $(bsp_lld_EXAMPLE_LIST)
905 endif
906 endif
908 #Below applicable only for K3 DMSC; not applicable for PRSDK
909 # - used to ignore include if component not present
910 -include $(DMSC_COMP_PATH)/dmsc_component.mk
911 ifneq ($(dmsc_LIB_LIST),)
912 pdk_LIB_LIST += $(dmsc_LIB_LIST)
913 endif
914 ifneq ($(dmsc_EXAMPLE_LIST),)
915 pdk_EXAMPLE_LIST += $(dmsc_EXAMPLE_LIST)
916 endif
918 # - used to ignore include if component not present
919 -include $(PDK_BOARD_UTILS_COMP_PATH)/board_utils_component.mk
920 ifneq ($(board_utils_LIB_LIST),)
921 pdk_LIB_LIST += $(board_utils_LIB_LIST)
922 endif
923 ifneq ($(board_utils_EXAMPLE_LIST),)
924 pdk_EXAMPLE_LIST += $(board_utils_EXAMPLE_LIST)
925 endif
927 # - used to ignore include if component not present
928 -include $(PDK_BOARD_DIAG_COMP_PATH)/board_diag_component.mk
929 ifneq ($(board_diag_LIB_LIST),)
930 pdk_LIB_LIST += $(board_diag_LIB_LIST)
931 endif
932 ifneq ($(board_diag_EXAMPLE_LIST),)
933 pdk_EXAMPLE_LIST += $(board_diag_EXAMPLE_LIST)
934 endif
936 # Adding new component to the packages/ti/build which is not part of the PDK.
937 # An example would be some demo which is not built from packages/ti/build but
938 # would still like to use the ti/build/ infrastructure
940 ifeq ($($(COMP)_USE_PDK_BUILD),yes)
941 include $($(COMP)_COMPONENT_MK_PATH)/$(COMP)_component.mk
943 ifneq ($($(COMP)_LIB_LIST),)
944 pdk_LIB_LIST += $($(COMP)_LIB_LIST)
945 endif
947 ifneq ($($(COMP)_APP_LIB_LIST),)
948 pdk_APP_LIB_LIST += $($(COMP)_APP_LIB_LIST)
949 endif
951 ifneq ($($(COMP)_FIRM_LIST),)
952 pdk_FIRM_LIST += $($(COMP)_FIRM_LIST)
953 endif
955 ifneq ( $($(COMP)_EXAMPLE_LIST),)
956 pdk_EXAMPLE_LIST += $($(COMP)_EXAMPLE_LIST)
957 endif
959 endif
961 pdk_PKG_LIST_ALL = $(pdk_EXAMPLE_LIST) $(pdk_LIB_LIST) $(pdk_APP_LIB_LIST) $(pdk_FIRM_LIST)
963 ifneq ($(CORE),$(filter $(CORE), pru_0 pru_1))
964 # By default it is little endian for non pru cores
965 LIB_ENDIAN_LIST = little
966 endif
967 #
968 # PDK Modules
969 #
971 #
972 # PDK Examples
973 #
975 #Default to all if not set from rules.make or command line
976 ifeq ($(PACKAGE_SELECT), )
977 PACKAGE_SELECT := all
978 endif
980 ifeq ($(CORE),mcu1_0)
981 PDK_CFLAGS += -DBUILD_MCU1_0 -DBUILD_MCU
982 PDK_LNKFLAGS += --define=BUILD_MCU1_0 --define=BUILD_MCU
983 endif
985 ifeq ($(CORE),mcu1_1)
986 PDK_CFLAGS += -DBUILD_MCU1_1 -DBUILD_MCU
987 PDK_LNKFLAGS += --define=BUILD_MCU1_1 --define=BUILD_MCU
988 endif
990 ifeq ($(CORE),mcu2_0)
991 PDK_CFLAGS += -DBUILD_MCU2_0 -DBUILD_MCU
992 PDK_LNKFLAGS += --define=BUILD_MCU2_0 --define=BUILD_MCU
993 endif
995 ifeq ($(CORE),mcu2_1)
996 PDK_CFLAGS += -DBUILD_MCU2_1 -DBUILD_MCU
997 PDK_LNKFLAGS += --define=BUILD_MCU2_1 --define=BUILD_MCU
998 endif
1000 ifeq ($(CORE),mcu3_0)
1001 PDK_CFLAGS += -DBUILD_MCU3_0 -DBUILD_MCU
1002 PDK_LNKFLAGS += --define=BUILD_MCU3_0 --define=BUILD_MCU
1003 endif
1005 ifeq ($(CORE),mcu3_1)
1006 PDK_CFLAGS += -DBUILD_MCU3_1 -DBUILD_MCU
1007 PDK_LNKFLAGS += --define=BUILD_MCU3_1 --define=BUILD_MCU
1008 endif
1010 ifeq ($(CORE),mpu1_0)
1011 PDK_CFLAGS += -DBUILD_MPU1_0 -DBUILD_MPU
1012 PDK_LNKFLAGS += --define=BUILD_MPU1_0 --define=BUILD_MPU
1013 endif
1015 ifeq ($(CORE),mpu1_1)
1016 PDK_CFLAGS += -DBUILD_MPU1_1 -DBUILD_MPU
1017 PDK_LNKFLAGS += --define=BUILD_MPU1_1 --define=BUILD_MPU
1018 endif
1020 ifeq ($(CORE),mpu2_0)
1021 PDK_CFLAGS += -DBUILD_MPU2_0 -DBUILD_MPU
1022 PDK_LNKFLAGS += --define=BUILD_MPU2_0 --define=BUILD_MPU
1023 endif
1025 ifeq ($(CORE),mpu2_1)
1026 PDK_CFLAGS += -DBUILD_MPU2_1 -DBUILD_MPU
1027 PDK_LNKFLAGS += --define=BUILD_MPU2_1 --define=BUILD_MPU
1028 endif
1030 ifeq ($(CORE),ipu1_0)
1031 PDK_CFLAGS += -DBUILD_IPU1_0 -DBUILD_IPU1
1032 PDK_LNKFLAGS += --define=BUILD_IPU1_0 --define=BUILD_IPU1
1033 endif
1035 ifeq ($(CORE),ipu1_1)
1036 PDK_CFLAGS += -DBUILD_IPU1_1 -DBUILD_IPU1
1037 PDK_LNKFLAGS += --define=BUILD_IPU1_1 --define=BUILD_IPU1
1038 endif
1040 ifeq ($(CORE),ipu2_0)
1041 PDK_CFLAGS += -DBUILD_IPU2_0 -DBUILD_IPU2
1042 PDK_LNKFLAGS += --define=BUILD_IPU2_0 --define=BUILD_IPU2
1043 endif
1045 ifeq ($(CORE),ipu2_1)
1046 PDK_CFLAGS += -DBUILD_IPU2_1 -DBUILD_IPU2
1047 PDK_LNKFLAGS += --define=BUILD_IPU2_1 --define=BUILD_IPU2
1048 endif
1050 ifeq ($(CORE),m3)
1051 PDK_CFLAGS += -DBUILD_M3
1052 PDK_LNKFLAGS += --define=BUILD_M3
1053 endif
1055 ifeq ($(CORE),arp32_1)
1056 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_1
1057 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_1
1058 endif
1060 ifeq ($(CORE),arp32_2)
1061 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_2
1062 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_2
1063 endif
1065 ifeq ($(CORE),arp32_3)
1066 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_3
1067 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_3
1068 endif
1070 ifeq ($(CORE),arp32_4)
1071 PDK_CFLAGS += -DBUILD_ARP32 -DBUILD_ARP32_4
1072 PDK_LNKFLAGS += --define=BUILD_ARP32 --define=BUILD_ARP32_4
1073 endif
1075 ifeq ($(CORE),a8host)
1076 PDK_CFLAGS += -DBUILD_A8
1077 PDK_LNKFLAGS += --define=BUILD_A8
1078 endif
1080 ifeq ($(CORE),pru_0)
1081 PDK_CFLAGS += -DPRU0 -Dpru0
1082 PDK_LNKFLAGS += --define=PRU0 --define=pru0
1083 # List all the libraries to be built
1084 ifeq ($(SOC),$(filter $(SOC), am335x am437x))
1085 PRU_VERSION_LIST = REV1
1086 endif
1087 ifeq ($(SOC),$(filter $(SOC), am571x k2g am574x))
1088 PRU_VERSION_LIST = REV2
1089 endif
1090 ifeq ($(SOC),$(filter $(SOC), am572x))
1091 PRU_VERSION_LIST = REV1 REV2
1092 endif
1093 endif
1095 ifeq ($(CORE),pru_1)
1096 PDK_CFLAGS += -DPRU1 -Dpru1
1097 PDK_LNKFLAGS += --define=PRU1 --define=pru1
1098 # List all the libraries to be built
1099 ifeq ($(SOC),$(filter $(SOC), am335x am437x))
1100 PRU_VERSION_LIST = REV1
1101 endif
1102 ifeq ($(SOC),$(filter $(SOC), am571x k2g am574x))
1103 PRU_VERSION_LIST = REV2
1104 endif
1105 ifeq ($(SOC),$(filter $(SOC), am572x))
1106 PRU_VERSION_LIST = REV1 REV2
1107 endif
1108 endif
1110 ifeq ($(CORE),a15_0)
1111 PDK_CFLAGS += -DBUILD_A15_0
1112 PDK_LNKFLAGS += --define=BUILD_A15_0
1113 endif
1115 ifeq ($(CORE),$(filter $(CORE), c66x c66xdsp_1 c66xdsp_2))
1116 ifeq ($(CORE),$(filter $(CORE), c66xdsp_1))
1117 PDK_CFLAGS += -DBUILD_DSP_1 -DBUILD_C66X_1
1118 PDK_LNKFLAGS += --define=BUILD_DSP_1 --define=BUILD_C66X_1
1119 endif
1120 ifeq ($(CORE),$(filter $(CORE), c66xdsp_2))
1121 PDK_CFLAGS += -DBUILD_DSP_2 -DBUILD_C66X_2
1122 PDK_LNKFLAGS += --define=BUILD_DSP_2 --define=BUILD_C66X_2
1123 endif
1124 endif
1126 ifeq ($(CORE),$(filter $(CORE), c7x_1 c7x-hostemu))
1127 PDK_CFLAGS += -DBUILD_C7X_1
1128 PDK_LNKFLAGS += --define=BUILD_C7X_1
1129 endif
1131 ifeq ($(CORE),$(filter $(CORE), qnx_mpu1_0))
1132 PDK_CFLAGS += -DQNX_OS -DBUILD_MPU1_0
1133 PDK_LNKFLAGS += --define=QNX_OS --define=BUILD_MPU1_0
1134 endif
1136 ifeq ($(CORE),$(filter $(CORE), m4f_0))
1137 PDK_CFLAGS += -DBUILD_M4F_0 -DBUILD_M4F
1138 PDK_LNKFLAGS += --define=BUILD_M4F_0 --define=BUILD_M4F
1139 endif
1141 export PDK_CFLAGS
1142 export PDK_LNKFLAGS
1144 PDK_COMMON_COMP = csl board uart i2c
1145 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
1146 PDK_COMMON_COMP += sciclient udma
1147 else
1148 ifeq ($(SOC),$(filter $(SOC), tpr12))
1149 PDK_COMMON_COMP += edma
1150 endif
1151 endif
1153 ifneq ($(SOC),$(filter $(SOC), am64x tda2xx tda2px tda2ex tda3xx))
1154 PDK_COMMON_COMP += gpio
1155 endif
1157 # Uncomment the following when pmic library is ready
1158 #ifeq ($(SOC),$(filter $(SOC), j721e j7200))
1159 # PDK_COMMON_COMP += pmic
1160 #endif
1162 PDK_COMMON_TIRTOS_COMP = $(PDK_COMMON_COMP) osal_tirtos
1163 ifneq ($(SOC),$(filter $(SOC), tpr12))
1164 # Enable copy of vectors
1165 ifeq ($(ISA),$(filter $(ISA), r5f))
1166 PDK_COMMON_TIRTOS_COMP += copyvecs
1167 endif
1168 endif
1170 PDK_COMMON_BAREMETAL_COMP = $(PDK_COMMON_COMP) osal_nonos
1171 ifeq ($(ARCH),c66x)
1172 PDK_COMMON_BAREMETAL_COMP += csl_intc
1173 else
1174 ifneq ($(ARCH),c71)
1175 PDK_COMMON_BAREMETAL_COMP += csl_init
1176 endif
1177 endif
1179 export PDK_COMMON_TIRTOS_COMP
1180 export PDK_COMMON_BAREMETAL_COMP
1182 pdk_component_make_include := 1
1183 endif