]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/sa-lld.git/blob - sa_component.mk
sa: UT: reduce task stack size
[keystone-rtos/sa-lld.git] / sa_component.mk
1 #
2 # Copyright (c) 2017-2018, 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
71 drvsa_SOCLIST         = am65xx j721e
72 drvsa_am65xx_CORELIST = mpu1_0 mcu1_0
73 drvsa_j721e_CORELIST =  mpu1_0 mcu1_0
75 ############################
76 # sa package
77 # List of components included under sa lib
78 # The components included here are built and will be part of sa lib
79 ############################
80 sa_LIB_LIST = salite2
81 drvsa_LIB_LIST = $(sa_LIB_LIST)
83 ############################
84 # sa examples
85 # List of examples under sa
86 # All the tests mentioned in list are built when test target is called
87 # List below all examples for allowed values
88 ############################
89 sa_EXAMPLE_LIST  = SA_Baremetal_TestApp SA_TestApp
90 drvsa_EXAMPLE_LIST = $(sa_EXAMPLE_LIST)
92 #
93 # sa Modules
94 #
96 # sa lite2 LIB
97 salite2_COMP_LIST = salite2
98 salite2_RELPATH = ti/drv/sa
99 salite2_PATH = $(PDK_SA_COMP_PATH)
100 salite2_LIBNAME = ti.drv.salite2
101 export salite2_LIBNAME
102 salite2_LIBPATH = $(salite2_PATH)/lib
103 export salite2_LIBPATH
104 salite2_OBJPATH = $(salite2_RELPATH)/salite2
105 export salite2_OBJPATH
106 salite2_MAKEFILE = -f build/makefile_lite2.mk
107 export salite2_MAKEFILE
108 salite2_BOARD_DEPENDENCY = no
109 salite2_CORE_DEPENDENCY = no
110 salite2_SOC_DEPENDENCY = no
111 export salite2_COMP_LIST
112 export salite2_BOARD_DEPENDENCY
113 export salite2_CORE_DEPENDENCY
114 export salite2_SOC_DEPENDENCY
115 salite2_PKG_LIST = salite2
116 salite2_INCLUDE = $(salite2_PATH)
117 salite2_SOCLIST = am65xx j721e
118 export salite2_SOCLIST
119 salite2_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST)
120 export salite2_$(SOC)_CORELIST
123 # sa Baremetal Unit Test
125 # sa Polling mode Test app
126 SA_Baremetal_TestApp_COMP_LIST = SA_Baremetal_TestApp
127 SA_Baremetal_TestApp_RELPATH = ti/drv/sa/test/SaUnitTest
128 SA_Baremetal_TestApp_PATH = $(PDK_SA_COMP_PATH)
129 SA_Baremetal_TestApp_BOARD_DEPENDENCY = yes
130 SA_Baremetal_TestApp_CORE_DEPENDENCY = no
131 SA_Baremetal_TestApp_MAKEFILE = -f test/SaUnitTest/makefile IS_BAREMETAL=yes
132 export SA_Baremetal_TestApp_MAKEFILE
133 # SA_Baremetal_TestApp_XDC_CONFIGURO = yes
134 export SA_Baremetal_TestApp_COMP_LIST
135 export SA_Baremetal_TestApp_BOARD_DEPENDENCY
136 export SA_Baremetal_TestApp_CORE_DEPENDENCY
137 # export SA_Baremetal_TestApp_XDC_CONFIGURO
138 SA_Baremetal_TestApp_PKG_LIST = SA_Baremetal_TestApp
139 SA_Baremetal_TestApp_INCLUDE = $(SA_Baremetal_TestApp_PATH)
140 SA_Baremetal_TestApp_BOARDLIST = $(drvsa_BOARDLIST)
141 export SA_Baremetal_TestApp_BOARDLIST
142 SA_Baremetal_TestApp_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST)
143 export SA_Baremetal_TestApp_$(SOC)_CORELIST
146 # sa RTOS Unit Test
148 # sa Polling mode Test app
149 SA_TestApp_COMP_LIST = SA_TestApp
150 SA_TestApp_RELPATH = ti/drv/sa/test/SaUnitTest
151 SA_TestApp_PATH = $(PDK_SA_COMP_PATH)
152 SA_TestApp_BOARD_DEPENDENCY = yes
153 SA_TestApp_CORE_DEPENDENCY = no
154 SA_TestApp_MAKEFILE = -f test/SaUnitTest/makefile
155 export SA_TestApp_MAKEFILE
156 SA_TestApp_XDC_CONFIGURO = yes
157 export SA_TestApp_COMP_LIST
158 export SA_TestApp_BOARD_DEPENDENCY
159 export SA_TestApp_CORE_DEPENDENCY
160 export SA_TestApp_XDC_CONFIGURO
161 SA_TestApp_PKG_LIST = SA_TestApp
162 SA_TestApp_INCLUDE = $(SA_TestApp_PATH)
163 SA_TestApp_BOARDLIST = $(drvsa_BOARDLIST)
164 export SA_TestApp_BOARDLIST
165 SA_TestApp_$(SOC)_CORELIST = $(drvsa_$(SOC)_CORELIST)
166 export SA_TestApp_$(SOC)_CORELIST
168 export drvsa_LIB_LIST
169 export sa_LIB_LIST
170 export sa_EXAMPLE_LIST
171 export drvsa_EXAMPLE_LIST
173 sa_component_make_include := 1
174 endif