]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/board/board_component.mk
4c433332686f832608e10ec3178ba57cfdf22c7a
[processor-sdk/pdk.git] / packages / ti / board / board_component.mk
1 #
2 # Copyright (c) 2017, 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: board_component.mk
34 #       This file is component include make file of BOARD library.
35 # List of variables set in this file and their purpose:
36 # <mod>_RELPATH        - This is the relative path of the module, typically from
37 #                        top-level directory of the package
38 # <mod>_PATH           - This is the absolute path of the module. It derives from
39 #                        absolute path of the top-level directory (set in env.mk)
40 #                        and relative path set above
41 # <mod>_INCLUDE        - This is the path that has interface header files of the
42 #                        module. This can be multiple directories (space separated)
43 # <mod>_PKG_LIST       - Names of the modules (and sub-modules) that are a part
44 #                        part of this module, including itself.
45 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
46 #                             board and the compiled obj/lib has to be kept
47 #                             under <board> directory
48 #                             "no" or "" or if this variable is not defined: means
49 #                             this module has no 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 #
67 ifeq ($(board_component_make_include), )
69 board_lib_BOARDLIST       = evmAM335x icev2AM335x iceAMIC110 skAM335x bbbAM335x evmAM437x idkAM437x skAM437x evmAM572x idkAM571x idkAM572x evmK2H evmK2K evmK2E evmK2L evmK2G iceK2G \
70                             evmC6678 evmC6657 tda2xx-evm evmDRA75x tda2ex-evm evmDRA72x tda3xx-evm evmDRA78x evmOMAPL137 lcdkOMAPL138 idkAM574x am65xx_evm am65xx_idk j721e_sim j721e_qt j721e_evm j7200_evm \
71                             tpr12_evm
72 board_lib_tda2xx_CORELIST = a15_0 ipu1_0 c66x
73 board_lib_tda2ex_CORELIST = a15_0 ipu1_0 c66x
74 board_lib_tda3xx_CORELIST = ipu1_0 c66x
75 board_lib_dra72x_CORELIST = a15_0 ipu1_0 c66x
76 board_lib_dra75x_CORELIST = a15_0 ipu1_0 c66x
77 board_lib_dra78x_CORELIST = ipu1_0 c66x
78 board_lib_am572x_CORELIST = c66x a15_0 ipu1_0
79 board_lib_am574x_CORELIST = c66x a15_0 ipu1_0
80 board_lib_am571x_CORELIST = c66x a15_0 ipu1_0
81 board_lib_k2h_CORELIST    = c66x a15_0
82 board_lib_k2k_CORELIST    = c66x a15_0
83 board_lib_k2l_CORELIST    = c66x a15_0
84 board_lib_k2e_CORELIST    = c66x a15_0
85 board_lib_k2g_CORELIST    = c66x a15_0
86 board_lib_c6678_CORELIST  = c66x
87 board_lib_c6657_CORELIST  = c66x
88 board_lib_am437x_CORELIST = a9host
89 board_lib_am335x_CORELIST = a8host
90 board_lib_omapl137_CORELIST = arm9_0 c674x
91 board_lib_omapl138_CORELIST = arm9_0 c674x
92 board_lib_am65xx_CORELIST = mpu1_0 mcu1_0 mcu1_1
93 board_lib_j721e_CORELIST = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 c66xdsp_1 c66xdsp_2 c7x_1
94 board_lib_j7200_CORELIST = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1
95 board_lib_tpr12_CORELIST = mcu1_0 c66xdsp_1
98 ############################
99 # board package
100 # List of components included under board lib
101 # The components included here are built and will be part of board lib
102 ############################
103 board_LIB_LIST = board
104 board_lib_LIB_LIST = $(board_LIB_LIST)
106 ############################
107 # board examples
108 # List of examples under board
109 # All the tests mentioned in list are built when test target is called
110 # List below all examples for allowed values
111 ############################
112 board_EXAMPLE_LIST =
115 # BOARD Modules
118 # BOARD LIB
119 board_COMP_LIST = board
120 board_RELPATH = ti/board
121 board_PATH = $(PDK_BOARD_COMP_PATH)
122 board_LIBNAME = ti.board
123 export board_LIBNAME
124 board_LIBPATH = $(board_PATH)/lib
125 export board_LIBPATH
126 board_OBJPATH = $(board_RELPATH)/board
127 export board_OBJPATH
128 board_MAKEFILE = -f build/makefile.mk
129 export board_MAKEFILE
130 board_BOARD_DEPENDENCY = yes
131 board_CORE_DEPENDENCY = no
132 board_SOC_DEPENDENCY = yes
133 export board_COMP_LIST
134 export board_BOARD_DEPENDENCY
135 export board_CORE_DEPENDENCY
136 export board_SOC_DEPENDENCY
137 board_PKG_LIST = board
138 export board_PKG_LIST
139 board_INCLUDE = $(board_PATH)
140 board_SOCLIST = $(SOC)
141 export board_SOCLIST
142 board_$(SOC)_CORELIST = $(board_lib_$(SOC)_CORELIST)
143 export board_$(SOC)_CORELIST
146 # BOARD Examples
149 # Board DDR thermal monitor test app
150 board_ddr_thermal_test_app_COMP_LIST = board_ddr_thermal_test_app
151 board_ddr_thermal_test_app_RELPATH = ti/board/examples/ddr_thermal_test_app
152 board_ddr_thermal_test_app_PATH = $(PDK_BOARD_COMP_PATH)/examples/ddr_thermal_test_app
153 board_ddr_thermal_test_app_BOARD_DEPENDENCY = yes
154 board_ddr_thermal_test_app_CORE_DEPENDENCY = yes
155 board_ddr_thermal_test_app_MAKEFILE = -f makefile
156 board_ddr_thermal_test_app_XDC_CONFIGURO = yes
157 export board_ddr_thermal_test_app_COMP_LIST
158 export board_ddr_thermal_test_app_BOARD_DEPENDENCY
159 export board_ddr_thermal_test_app_CORE_DEPENDENCY
160 export board_ddr_thermal_test_app_MAKEFILE
161 export board_ddr_thermal_test_app_XDC_CONFIGURO
162 board_ddr_thermal_test_app_PKG_LIST = board_ddr_thermal_test_app
163 board_ddr_thermal_test_app_INCLUDE = $(board_ddr_thermal_test_app_PATH)
164 board_ddr_thermal_test_app_BOARDLIST = j721e_evm
165 export board_ddr_thermal_test_app_BOARDLIST
166 board_ddr_thermal_test_app_$(SOC)_CORELIST = mcu1_0
167 export board_ddr_thermal_test_app_$(SOC)_CORELIST
168 ifeq ($(SOC),$(filter $(SOC), j721e))
169 board_ddr_thermal_test_app_SBL_APPIMAGEGEN = yes
170 export board_ddr_thermal_test_app_SBL_APPIMAGEGEN
172 # Packaged for below board_EXAMPLE
173 board_EXAMPLE_LIST += board_ddr_thermal_test_app
175 endif
177 export board_LIB_LIST
178 export board_EXAMPLE_LIST
180 board_component_make_include := 1
181 endif