1 # File: edma_component.mk
2 # This file is component include makefile of EDMA driver library.
3 # List of variables set in this file and their purpose:
4 # <mod>_RELPATH - This is the relative path of the module, typically from
5 # top-level directory of the package
6 # <mod>_PATH - This is the absolute path of the module. It derives from
7 # absolute path of the top-level directory (set in env.mk)
8 # and relative path set above
9 # <mod>_INCLUDE - This is the path that has interface header files of the
10 # module. This can be multiple directories (space separated)
11 # <mod>_PKG_LIST - Names of the modules (and sub-modules) that are a part
12 # part of this module, including itself.
13 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
14 # platform and the compiled obj/lib has to be kept
15 # under <platform> directory
16 # "no" or "" or if this variable is not defined: means
17 # this module has no platform dependent code and hence
18 # the obj/libs are not kept under <platform> dir.
19 # <mod>_CORE_DEPENDENCY - "yes": means the code for this module depends on
20 # core and the compiled obj/lib has to be kept
21 # under <core> directory
22 # "no" or "" or if this variable is not defined: means
23 # this module has no core dependent code and hence
24 # the obj/libs are not kept under <core> dir.
25 # <mod>_APP_STAGE_FILES - List of source files that belongs to the module
26 # <mod>, but that needs to be compiled at application
27 # build stage (in the context of the app). This is
28 # primarily for link time configurations or if the
29 # source file is dependent on options/defines that are
30 # application dependent. This can be left blank or
31 # not defined at all, in which case, it means there
32 # no source files in the module <mod> that are required
33 # to be compiled in the application build stage.
34 #
35 ifeq ($(edma_component_make_include), )
37 drvedma_SOCLIST = tpr12 awr294x
38 drvedma_tpr12_CORELIST = $(DEFAULT_tpr12_CORELIST)
39 drvedma_awr294x_CORELIST = $(DEFAULT_awr294x_CORELIST)
40 drvedma_BOARDLIST = tpr12_evm tpr12_qt awr294x_evm
42 ############################
43 # edma package
44 # List of components included under edma lib
45 # The components included here are built and will be part of edma lib
46 ############################
47 edma_LIB_LIST = edma
49 ############################
50 # edma examples
51 # List of examples under edma (+= is used at each example definition)
52 # All the tests mentioned in list are built when test target is called
53 # List below all examples for allowed values
54 ############################
55 edma_EXAMPLE_LIST =
57 #
58 # EDMA Modules
59 #
61 # EDMA library
62 edma_COMP_LIST = edma
63 edma_RELPATH = ti/drv/edma
64 edma_PATH = $(PDK_EDMA_COMP_PATH)
65 edma_LIBNAME = edma
66 edma_LIBPATH = $(PDK_EDMA_COMP_PATH)/lib
67 edma_MAKEFILE = -fsrc/makefile
68 export edma_MAKEFILE
69 export edma_LIBNAME
70 export edma_LIBPATH
71 edma_BOARD_DEPENDENCY = no
72 edma_CORE_DEPENDENCY = no
73 export edma_COMP_LIST
74 export edma_BOARD_DEPENDENCY
75 export edma_CORE_DEPENDENCY
76 edma_PKG_LIST = edma
77 edma_INCLUDE ?= $(edma_PATH)
78 edma_SOCLIST = $(drvedma_SOCLIST)
79 export edma_SOCLIST
80 edma_$(SOC)_CORELIST = $(drvedma_$(SOC)_CORELIST)
81 export edma_$(SOC)_CORELIST
83 #
84 # EDMA Examples
85 #
87 # EDMA baremetal memcpy test app
88 export edma_baremetal_memcpy_testapp_COMP_LIST = edma_baremetal_memcpy_testapp
89 edma_baremetal_memcpy_testapp_RELPATH = ti/drv/edma/examples/edma_memcpy_test
90 edma_baremetal_memcpy_testapp_PATH = $(PDK_EDMA_COMP_PATH)/examples/edma_memcpy_test
91 export edma_baremetal_memcpy_testapp_MAKEFILE = -fmakefile BAREMETAL=yes
92 export edma_baremetal_memcpy_testapp_BOARD_DEPENDENCY = yes
93 export edma_baremetal_memcpy_testapp_CORE_DEPENDENCY = yes
94 export edma_baremetal_memcpy_testapp_XDC_CONFIGURO = yes
95 edma_baremetal_memcpy_testapp_PKG_LIST = edma_baremetal_memcpy_testapp
96 edma_baremetal_memcpy_testapp_INCLUDE = $(edma_baremetal_memcpy_testapp_PATH)
97 export edma_baremetal_memcpy_testapp_BOARDLIST = $(drvedma_BOARDLIST)
98 export edma_baremetal_memcpy_testapp_$(SOC)_CORELIST = $(drvedma_$(SOC)_CORELIST)
99 edma_EXAMPLE_LIST += edma_baremetal_memcpy_testapp
101 # EDMA freertos memcpy test app
102 export edma_freertos_memcpy_testapp_COMP_LIST = edma_freertos_memcpy_testapp
103 edma_freertos_memcpy_testapp_RELPATH = ti/drv/edma/examples/edma_memcpy_test
104 edma_freertos_memcpy_testapp_PATH = $(PDK_EDMA_COMP_PATH)/examples/edma_memcpy_test
105 export edma_freertos_memcpy_testapp_MAKEFILE = -fmakefile IS_FREERTOS=yes
106 export edma_freertos_memcpy_testapp_BOARD_DEPENDENCY = yes
107 export edma_freertos_memcpy_testapp_CORE_DEPENDENCY = yes
108 export edma_freertos_memcpy_testapp_XDC_CONFIGURO = no
109 edma_freertos_memcpy_testapp_PKG_LIST = edma_freertos_memcpy_testapp
110 edma_freertos_memcpy_testapp_INCLUDE = $(edma_freertos_memcpy_testapp_PATH)
111 export edma_freertos_memcpy_testapp_BOARDLIST = $(drvedma_BOARDLIST)
112 export edma_freertos_memcpy_testapp_$(SOC)_CORELIST = $(drvedma_$(SOC)_CORELIST)
113 edma_EXAMPLE_LIST += edma_freertos_memcpy_testapp
115 # EDMA memcpy test app
116 export edma_memcpy_testapp_COMP_LIST = edma_memcpy_testapp
117 edma_memcpy_testapp_RELPATH = ti/drv/edma/examples/edma_memcpy_test
118 edma_memcpy_testapp_PATH = $(PDK_EDMA_COMP_PATH)/examples/edma_memcpy_test
119 export edma_memcpy_testapp_MAKEFILE = -fmakefile
120 export edma_memcpy_testapp_BOARD_DEPENDENCY = yes
121 export edma_memcpy_testapp_CORE_DEPENDENCY = yes
122 export edma_memcpy_testapp_XDC_CONFIGURO = yes
123 edma_memcpy_testapp_PKG_LIST = edma_memcpy_testapp
124 edma_memcpy_testapp_INCLUDE = $(edma_memcpy_testapp_PATH)
125 export edma_memcpy_testapp_BOARDLIST = $(drvedma_BOARDLIST)
126 export edma_memcpy_testapp_$(SOC)_CORELIST = $(drvedma_$(SOC)_CORELIST)
127 edma_EXAMPLE_LIST += edma_memcpy_testapp
129 # EDMA unit test app
130 export edma_unit_testapp_COMP_LIST = edma_unit_testapp
131 edma_unit_testapp_RELPATH = ti/drv/edma/unit_test/edma_ut
132 edma_unit_testapp_PATH = $(PDK_EDMA_COMP_PATH)/unit_test/edma_ut
133 export edma_unit_testapp_MAKEFILE = -fmakefile
134 export edma_unit_testapp_BOARD_DEPENDENCY = yes
135 export edma_unit_testapp_CORE_DEPENDENCY = yes
136 export edma_unit_testapp_XDC_CONFIGURO = yes
137 edma_unit_testapp_PKG_LIST = edma_unit_testapp
138 edma_unit_testapp_INCLUDE = $(edma_unit_testapp_PATH)
139 export edma_unit_testapp_BOARDLIST = $(drvedma_BOARDLIST)
140 export edma_unit_testapp_$(SOC)_CORELIST = $(drvedma_$(SOC)_CORELIST)
141 edma_EXAMPLE_LIST += edma_unit_testapp
143 # EDMA freertos unit test app
144 export edma_freertos_unit_testapp_COMP_LIST = edma_freertos_unit_testapp
145 edma_freertos_unit_testapp_RELPATH = ti/drv/edma/unit_test/edma_ut
146 edma_freertos_unit_testapp_PATH = $(PDK_EDMA_COMP_PATH)/unit_test/edma_ut
147 export edma_freertos_unit_testapp_MAKEFILE = -fmakefile IS_FREERTOS=yes
148 export edma_freertos_unit_testapp_BOARD_DEPENDENCY = yes
149 export edma_freertos_unit_testapp_CORE_DEPENDENCY = yes
150 export edma_freertos_unit_testapp_XDC_CONFIGURO = no
151 edma_freertos_unit_testapp_PKG_LIST = edma_freertos_unit_testapp
152 edma_freertos_unit_testapp_INCLUDE = $(edma_freertos_unit_testapp_PATH)
153 export edma_freertos_unit_testapp_BOARDLIST = $(drvedma_BOARDLIST)
154 export edma_freertos_unit_testapp_$(SOC)_CORELIST = $(drvedma_$(SOC)_CORELIST)
155 edma_EXAMPLE_LIST += edma_freertos_unit_testapp
158 export edma_LIB_LIST
159 export edma_EXAMPLE_LIST
160 export drvedma_LIB_LIST = $(edma_LIB_LIST)
161 export drvedma_EXAMPLE_LIST = $(edma_EXAMPLE_LIST)
163 EDMA_CFLAGS =
164 export EDMA_CFLAGS
166 edma_component_make_include := 1
167 endif