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: sa_component.mk
34 # This file is component include make file of SA library.
35 # List of variables set in this file and their purpose:
36 # <mod>_RELPATH - This is the relative path of the module, typically from
37 # top-level directory of the package
38 # <mod>_PATH - This is the absolute path of the module. It derives from
39 # absolute path of the top-level directory (set in env.mk)
40 # and relative path set above
41 # <mod>_INCLUDE - This is the path that has interface header files of the
42 # module. This can be multiple directories (space separated)
43 # <mod>_PKG_LIST - Names of the modules (and sub-modules) that are a part
44 # part of this module, including itself.
45 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
46 # platform and the compiled obj/lib has to be kept
47 # under <platform> directory
48 # "no" or "" or if this variable is not defined: means
49 # this module has no platform dependent code and hence
50 # the obj/libs are not kept under <platform> dir.
51 # <mod>_CORE_DEPENDENCY - "yes": means the code for this module depends on
52 # core and the compiled obj/lib has to be kept
53 # under <core> directory
54 # "no" or "" or if this variable is not defined: means
55 # this module has no core dependent code and hence
56 # the obj/libs are not kept under <core> dir.
57 # <mod>_APP_STAGE_FILES - List of source files that belongs to the module
58 # <mod>, but that needs to be compiled at application
59 # build stage (in the context of the app). This is
60 # primarily for link time configurations or if the
61 # source file is dependent on options/defines that are
62 # application dependent. This can be left blank or
63 # not defined at all, in which case, it means there
64 # no source files in the module <mod> that are required
65 # to be compiled in the application build stage.
66 #
67 ifeq ($(sa_component_make_include), )
69 # under other list
70 drvsa_BOARDLIST = am65xx_evm am65xx_idk j721e_evm am64x_evm
71 drvsa_SOCLIST = am65xx j721e am64x
72 drvsa_am65xx_CORELIST = mcu1_0
73 drvsa_j721e_CORELIST = mcu1_0
74 drvsa_am64x_CORELIST = mcu1_0
76 ############################
77 # sa package
78 # List of components included under sa lib
79 # The components included here are built and will be part of sa lib
80 ############################
81 sa_LIB_LIST = salite2
82 drvsa_LIB_LIST = $(sa_LIB_LIST)
84 ############################
85 # sa examples
86 # List of examples under sa
87 # All the tests mentioned in list are built when test target is called
88 # List below all examples for allowed values
89 ############################
90 sa_EXAMPLE_LIST = SA_Baremetal_TestApp SA_TestApp
91 drvsa_EXAMPLE_LIST = $(sa_EXAMPLE_LIST)
93 #
94 # sa Modules
95 #
97 # sa lite2 LIB
98 salite2_COMP_LIST = salite2
99 salite2_RELPATH = ti/drv/sa
100 salite2_PATH = $(PDK_SA_COMP_PATH)
101 salite2_LIBNAME = ti.drv.salite2
102 export salite2_LIBNAME
103 salite2_LIBPATH = $(salite2_PATH)/lib
104 export salite2_LIBPATH
105 salite2_OBJPATH = $(salite2_RELPATH)/salite2
106 export salite2_OBJPATH
107 salite2_MAKEFILE = -f build/makefile_lite2.mk
108 export salite2_MAKEFILE
109 salite2_BOARD_DEPENDENCY = no
110 salite2_CORE_DEPENDENCY = no
111 salite2_SOC_DEPENDENCY = no
112 export salite2_COMP_LIST
113 export salite2_BOARD_DEPENDENCY
114 export salite2_CORE_DEPENDENCY
115 export salite2_SOC_DEPENDENCY
116 salite2_PKG_LIST = salite2
117 salite2_INCLUDE = $(salite2_PATH)
118 salite2_SOCLIST = am65xx j721e am64x
119 export salite2_SOCLIST
120 salite2_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST)
121 export salite2_$(SOC)_CORELIST
123 #
124 # sa Baremetal Unit Test
125 #
126 # sa Polling mode Test app
127 SA_Baremetal_TestApp_COMP_LIST = SA_Baremetal_TestApp
128 SA_Baremetal_TestApp_RELPATH = ti/drv/sa/test/SaUnitTest
129 SA_Baremetal_TestApp_PATH = $(PDK_SA_COMP_PATH)/test/SaUnitTest
130 SA_Baremetal_TestApp_BOARD_DEPENDENCY = yes
131 SA_Baremetal_TestApp_CORE_DEPENDENCY = no
132 SA_Baremetal_TestApp_MAKEFILE = -fmakefile IS_BAREMETAL=yes
133 export SA_Baremetal_TestApp_MAKEFILE
134 # SA_Baremetal_TestApp_XDC_CONFIGURO = yes
135 export SA_Baremetal_TestApp_COMP_LIST
136 export SA_Baremetal_TestApp_BOARD_DEPENDENCY
137 export SA_Baremetal_TestApp_CORE_DEPENDENCY
138 # export SA_Baremetal_TestApp_XDC_CONFIGURO
139 SA_Baremetal_TestApp_PKG_LIST = SA_Baremetal_TestApp
140 SA_Baremetal_TestApp_INCLUDE = $(SA_Baremetal_TestApp_PATH)
141 SA_Baremetal_TestApp_BOARDLIST = $(drvsa_BOARDLIST)
142 export SA_Baremetal_TestApp_BOARDLIST
143 export SA_Baremetal_TestApp_SBL_APPIMAGEGEN = yes
144 SA_Baremetal_TestApp_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST)
145 export SA_Baremetal_TestApp_$(SOC)_CORELIST
147 #
148 # sa RTOS Unit Test
149 #
150 # sa Polling mode Test app
151 SA_TestApp_COMP_LIST = SA_TestApp
152 SA_TestApp_RELPATH = ti/drv/sa/test/SaUnitTest
153 SA_TestApp_PATH = $(PDK_SA_COMP_PATH)/test/SaUnitTest
154 SA_TestApp_BOARD_DEPENDENCY = yes
155 SA_TestApp_CORE_DEPENDENCY = no
156 SA_TestApp_MAKEFILE = -fmakefile
157 export SA_TestApp_MAKEFILE
158 SA_TestApp_XDC_CONFIGURO = yes
159 export SA_TestApp_COMP_LIST
160 export SA_TestApp_BOARD_DEPENDENCY
161 export SA_TestApp_CORE_DEPENDENCY
162 export SA_TestApp_XDC_CONFIGURO
163 SA_TestApp_PKG_LIST = SA_TestApp
164 SA_TestApp_INCLUDE = $(SA_TestApp_PATH)
165 SA_TestApp_BOARDLIST = $(drvsa_BOARDLIST)
166 export SA_TestApp_BOARDLIST
167 export SA_TestApp_SBL_APPIMAGEGEN = yes
168 SA_TestApp_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST)
169 export SA_TestApp_$(SOC)_CORELIST
171 export drvsa_LIB_LIST
172 export sa_LIB_LIST
173 export sa_EXAMPLE_LIST
174 export drvsa_EXAMPLE_LIST
176 sa_component_make_include := 1
177 endif