]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/board/board_component.mk
[PDK-9317][PDK-9316] Board: DDR: Updates in Board DDR thermal monitoring
[processor-sdk/pdk.git] / packages / ti / board / board_component.mk
1 #
2 # Copyright (c) 2017-2020, 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 \
71                             j721e_evm j7200_evm am64x_evm am64x_svb tpr12_evm tpr12_qt awr294x_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_am64x_CORELIST  = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 m4f_0
96 board_lib_tpr12_CORELIST  = mcu1_0 c66xdsp_1
97 board_lib_awr294x_CORELIST  = mcu1_0 c66xdsp_1
100 ############################
101 # board package
102 # List of components included under board lib
103 # The components included here are built and will be part of board lib
104 ############################
105 board_LIB_LIST = board
106 board_lib_LIB_LIST = $(board_LIB_LIST)
108 ############################
109 # board examples
110 # List of examples under board
111 # All the tests mentioned in list are built when test target is called
112 # List below all examples for allowed values
113 ############################
114 board_EXAMPLE_LIST =
117 # BOARD Modules
120 # BOARD LIB
121 board_COMP_LIST = board
122 board_RELPATH = ti/board
123 board_PATH = $(PDK_BOARD_COMP_PATH)
124 board_LIBNAME = ti.board
125 export board_LIBNAME
126 board_LIBPATH = $(board_PATH)/lib
127 export board_LIBPATH
128 board_OBJPATH = $(board_RELPATH)/board
129 export board_OBJPATH
130 board_MAKEFILE = -f build/makefile.mk
131 export board_MAKEFILE
132 board_BOARD_DEPENDENCY = yes
133 board_CORE_DEPENDENCY = no
134 board_SOC_DEPENDENCY = yes
135 export board_COMP_LIST
136 export board_BOARD_DEPENDENCY
137 export board_CORE_DEPENDENCY
138 export board_SOC_DEPENDENCY
139 board_PKG_LIST = board
140 export board_PKG_LIST
141 board_INCLUDE = $(board_PATH)
142 board_SOCLIST = $(SOC)
143 export board_SOCLIST
144 board_$(SOC)_CORELIST = $(board_lib_$(SOC)_CORELIST)
145 export board_$(SOC)_CORELIST
148 # BOARD Examples
151 # Board DDR thermal monitor test app
152 board_ddr_thermal_test_app_COMP_LIST = board_ddr_thermal_test_app
153 board_ddr_thermal_test_app_RELPATH = ti/board/examples/ddr_thermal_test_app
154 board_ddr_thermal_test_app_PATH = $(PDK_BOARD_COMP_PATH)/examples/ddr_thermal_test_app
155 board_ddr_thermal_test_app_BOARD_DEPENDENCY = yes
156 board_ddr_thermal_test_app_CORE_DEPENDENCY = yes
157 board_ddr_thermal_test_app_MAKEFILE = -f makefile
158 board_ddr_thermal_test_app_XDC_CONFIGURO = yes
159 export board_ddr_thermal_test_app_COMP_LIST
160 export board_ddr_thermal_test_app_BOARD_DEPENDENCY
161 export board_ddr_thermal_test_app_CORE_DEPENDENCY
162 export board_ddr_thermal_test_app_MAKEFILE
163 export board_ddr_thermal_test_app_XDC_CONFIGURO
164 board_ddr_thermal_test_app_PKG_LIST = board_ddr_thermal_test_app
165 board_ddr_thermal_test_app_INCLUDE = $(board_ddr_thermal_test_app_PATH)
166 board_ddr_thermal_test_app_BOARDLIST = j721e_evm
167 export board_ddr_thermal_test_app_BOARDLIST
168 board_ddr_thermal_test_app_$(SOC)_CORELIST = mcu1_0 mcu2_0 mcu2_1 mcu3_0 mcu3_1
169 export board_ddr_thermal_test_app_$(SOC)_CORELIST
170 ifeq ($(SOC),$(filter $(SOC), j721e))
171 board_ddr_thermal_test_app_SBL_APPIMAGEGEN = yes
172 export board_ddr_thermal_test_app_SBL_APPIMAGEGEN
174 # Packaged for below board_EXAMPLE
175 board_EXAMPLE_LIST += board_ddr_thermal_test_app
176 endif
179 # Board baremetal DDR thermal monitor test app
180 board_baremetal_ddr_thermal_test_app_COMP_LIST = board_baremetal_ddr_thermal_test_app
181 board_baremetal_ddr_thermal_test_app_RELPATH = ti/board/examples/ddr_thermal_test_app
182 board_baremetal_ddr_thermal_test_app_PATH = $(PDK_BOARD_COMP_PATH)/examples/ddr_thermal_test_app
183 board_baremetal_ddr_thermal_test_app_BOARD_DEPENDENCY = yes
184 board_baremetal_ddr_thermal_test_app_CORE_DEPENDENCY = yes
185 board_baremetal_ddr_thermal_test_app_MAKEFILE = -f makefile IS_BAREMETAL=yes
186 board_baremetal_ddr_thermal_test_app_XDC_CONFIGURO = yes
187 export board_baremetal_ddr_thermal_test_app_COMP_LIST
188 export board_baremetal_ddr_thermal_test_app_BOARD_DEPENDENCY
189 export board_baremetal_ddr_thermal_test_app_CORE_DEPENDENCY
190 export board_baremetal_ddr_thermal_test_app_MAKEFILE
191 export board_baremetal_ddr_thermal_test_app_XDC_CONFIGURO
192 board_baremetal_ddr_thermal_test_app_PKG_LIST = board_ddr_thermal_test_app
193 board_baremetal_ddr_thermal_test_app_INCLUDE = $(board_baremetal_ddr_thermal_test_app_PATH)
194 board_baremetal_ddr_thermal_test_app_BOARDLIST = j721e_evm
195 export board_baremetal_ddr_thermal_test_app_BOARDLIST
196 board_baremetal_ddr_thermal_test_app_$(SOC)_CORELIST = mcu1_0
197 export board_ddr_thermal_test_app_$(SOC)_CORELIST
198 ifeq ($(SOC),$(filter $(SOC), j721e))
199 board_baremetal_ddr_thermal_test_app_SBL_APPIMAGEGEN = yes
200 export board_baremetal_ddr_thermal_test_app_SBL_APPIMAGEGEN
202 # Packaged for below board_EXAMPLE
203 board_EXAMPLE_LIST += board_baremetal_ddr_thermal_test_app
204 endif
206 export board_LIB_LIST
207 export board_EXAMPLE_LIST
209 board_component_make_include := 1
210 endif