]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/kernel/freertos_component.mk
fixed awr294x package build for freertos examples
[processor-sdk/pdk.git] / packages / ti / kernel / freertos_component.mk
1 #
2 # Copyright (c) 2016 - 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: freertos_component.mk
34 #       This file is component include make file of freertos 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 ($(freertos_component_make_include), )
69 freertos_BOARDLIST       = tpr12_evm j721e_evm j7200_evm am65xx_evm am65xx_idk awr294x_evm
70 freertos_SOCLIST         = tpr12 j721e j7200 am65xx awr294x
71 freertos_tpr12_CORELIST   = c66xdsp_1 mcu1_0
72 freertos_awr294x_CORELIST   = c66xdsp_1 mcu1_0
73 freertos_j721e_CORELIST   = mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1
74 freertos_j7200_CORELIST   = mcu1_0 mcu1_1 mcu2_0 mcu2_1
75 freertos_am65xx_CORELIST   = mcu1_0 mcu1_1
77 ############################
78 # freertos package
79 # List of components included under freertos lib
80 # The components included here are built and will be part of freertos lib
81 ############################
82 freertos_LIB_LIST = freertos
86 ############################
87 # freertos examples
88 # List of examples under freertos
89 # All the tests mentioned in list are built when test target is called
90 # List below all examples for allowed values
91 ############################
92 freertos_EXAMPLE_LIST = 
94 ifeq ($(SOC),$(filter $(SOC), $(freertos_SOCLIST)))
95 freertos_EXAMPLE_LIST =  freertos_test_task_switch
96 freertos_EXAMPLE_LIST += freertos_test_ut
97 ifneq ($(wildcard $(PDK_FREERTOS_COMP_PATH)/freertos_posix.mak),)
98 ifneq ($(wildcard $(PDK_FREERTOS_COMP_PATH)/test/freertos/posix_demo),)
99 ifneq ($(wildcard $(FREERTOS_LABS_INSTALL_PATH)/FreeRTOS-POSIX),)
100 freertos_EXAMPLE_LIST += freertos_test_posix
101 endif
102 endif
103 endif
104 endif
108 # freertos Modules
111 # freertos LIB
112 freertos_COMP_LIST = freertos
113 freertos_RELPATH = ti/kernel
114 freertos_PATH = $(PDK_FREERTOS_COMP_PATH)
115 freertos_LIBNAME = ti.kernel.freertos
116 export freertos_LIBNAME
117 freertos_LIBPATH = $(freertos_PATH)/lib
118 export freertos_LIBPATH
119 freertos_OBJPATH = $(freertos_RELPATH)
120 export freertos_OBJPATH
121 freertos_MAKEFILE = -f freertos.mak
122 export freertos_MAKEFILE
123 freertos_BOARD_DEPENDENCY = no
124 freertos_CORE_DEPENDENCY = yes
125 freertos_SOC_DEPENDENCY = yes
126 export freertos_COMP_LIST
127 export freertos_BOARD_DEPENDENCY
128 export freertos_CORE_DEPENDENCY
129 export freertos_SOC_DEPENDENCY
130 freertos_PKG_LIST = freertos
131 export freertos_PKG_LIST
132 freertos_INCLUDE = $(freertos_PATH)
133 freertos_INCLUDE += ${FREERTOS_KERNEL_INSTALL_PATH}/FreeRTOS-Kernel/include
134 freertos_INCLUDE += $(PDK_FREERTOS_COMP_PATH)/freertos/portable/TI_CGT/$(ISA)
135 freertos_INCLUDE += $(PDK_FREERTOS_COMP_PATH)/freertos/config/$(SOC)/$(ISA)
137 export freertos_SOCLIST
138 export freertos_$(SOC)_CORELIST
143 # freertos Examples
145 # freertos rtos test app
147 # freertos rtos task switch test app
148 freertos_test_task_switch_COMP_LIST = freertos_test_task_switch
149 freertos_test_task_switch_RELPATH = ti/kernel/test/freertos/task_switch
150 freertos_test_task_switch_PATH = $(PDK_FREERTOS_COMP_PATH)/test/freertos/task_switch
151 freertos_test_task_switch_BOARD_DEPENDENCY = yes
152 freertos_test_task_switch_CORE_DEPENDENCY = no
153 freertos_test_task_switch_XDC_CONFIGURO = no
154 freertos_test_task_switch_MAKEFILE = -f makefile
155 export freertos_test_task_switch_COMP_LIST
156 export freertos_test_task_switch_BOARD_DEPENDENCY
157 export freertos_test_task_switch_CORE_DEPENDENCY
158 export freertos_test_task_switch_XDC_CONFIGURO
159 export freertos_test_task_switch_MAKEFILE
160 freertos_test_task_switch_PKG_LIST = freertos_test_task_switch
161 export freertos_test_task_switch_PKG_LIST
162 freertos_test_task_switch_INCLUDE = $(freertos_test_task_switch_PATH)
163 freertos_test_task_switch_BOARDLIST = $(freertos_BOARDLIST)
164 export freertos_test_task_switch_BOARDLIST
165 freertos_test_task_switch_$(SOC)_CORELIST = $(freertos_$(SOC)_CORELIST)
166 export freertos_test_task_switch_$(SOC)_CORELIST
168 # freertos rtos unit test app
169 freertos_test_ut_COMP_LIST = freertos_test_ut
170 freertos_test_ut_RELPATH = ti/kernel/test/freertos/ut
171 freertos_test_ut_PATH = $(PDK_FREERTOS_COMP_PATH)/test/freertos/ut
172 freertos_test_ut_BOARD_DEPENDENCY = yes
173 freertos_test_ut_CORE_DEPENDENCY = no
174 freertos_test_ut_XDC_CONFIGURO = no
175 freertos_test_ut_MAKEFILE = -f makefile
176 export freertos_test_ut_COMP_LIST
177 export freertos_test_ut_BOARD_DEPENDENCY
178 export freertos_test_ut_CORE_DEPENDENCY
179 export freertos_test_ut_XDC_CONFIGURO
180 export freertos_test_ut_MAKEFILE
181 freertos_test_ut_PKG_LIST = freertos_test_ut
182 export freertos_test_ut_PKG_LIST
183 freertos_test_ut_INCLUDE = $(freertos_test_ut_PATH)
184 freertos_test_ut_BOARDLIST = $(freertos_BOARDLIST)
185 export freertos_test_ut_BOARDLIST
186 freertos_test_ut_$(SOC)_CORELIST = $(freertos_$(SOC)_CORELIST)
187 export freertos_test_ut_$(SOC)_CORELIST
189 # freertos rtos posix test app
190 freertos_test_posix_COMP_LIST = freertos_test_posix
191 freertos_test_posix_RELPATH = ti/kernel/test/freertos/posix_demo
192 freertos_test_posix_PATH = $(PDK_FREERTOS_COMP_PATH)/test/freertos/posix_demo
193 freertos_test_posix_BOARD_DEPENDENCY = yes
194 freertos_test_posix_CORE_DEPENDENCY = no
195 freertos_test_posix_XDC_CONFIGURO = no
196 freertos_test_posix_MAKEFILE = -f makefile
197 export freertos_test_posix_COMP_LIST
198 export freertos_test_posix_BOARD_DEPENDENCY
199 export freertos_test_posix_CORE_DEPENDENCY
200 export freertos_test_posix_XDC_CONFIGURO
201 export freertos_test_posix_MAKEFILE
202 freertos_test_posix_PKG_LIST = freertos_test_posix
203 export freertos_test_posix_PKG_LIST
204 freertos_test_posix_INCLUDE = $(freertos_test_posix_PATH)
205 freertos_test_posix_BOARDLIST = $(freertos_BOARDLIST)
206 export freertos_test_posix_BOARDLIST
207 freertos_test_posix_$(SOC)_CORELIST = $(freertos_$(SOC)_CORELIST)
208 export freertos_test_posix_$(SOC)_CORELIST
211 export freertos_LIB_LIST
212 export freertos_EXAMPLE_LIST
214 freertos_component_make_include := 1
215 endif