Fix for SDOCM00086934 same interrupt number is used for all TC error
[keystone-rtos/edma3_lld.git] / packages / makefile_c66x
1 #
2 # EDMA3 LLD
3 #
5 ifeq ($(ROOTDIR),)
6   $(error Error: Environment variable ROOTDIR not set)
7 endif
9 # Begin block - Build options
10 #  By the end of this block, we'd have either xdc or make or both in BUILD_OPTIONS
11 #  using which, we'd build either XDC packages (+run configuro) 
12 #  or make based components (+link) or both.
13 BUILD_OPTIONS = xdc make
14 VALID_BUILD_OPTIONS = full $(BUILD_OPTIONS)
15 ifeq ($(filter $(BUILD),$(VALID_BUILD_OPTIONS)),)
16  ifeq ($(BUILD),)
17   BUILD = full
18  else
19   $(error Error: Invalid value specified for BUILD. Valid values are - $(VALID_BUILD_OPTIONS))
20  endif
21 endif
22 ifneq ($(BUILD),full)
23  BUILD_OPTIONS = $(BUILD)
24 endif
25 # End block - Build options
27 include $(ROOTDIR)/makerules/build_config.mk
28 include $(ROOTDIR)/makerules/env.mk
29 include component.mk
31 # Listing common targets
32 edma3_lld_COMP_LIST_ALL = $(edma3_lld_COMP_LIST_c6xdsp)
33 edma3_lld_PKG_LIST_ALL = $(foreach PKG,$(edma3_lld_COMP_LIST_ALL),$($(PKG)_PKG_LIST))
34 CLEANALL_TARGETS = $(addsuffix _clean, $(edma3_lld_PKG_LIST_ALL))
35 CLEANALL_EXAMPLES = $(addsuffix _clean, $(edma3_lld_EXAMPLES_LIST))
37 .PHONY : $(edma3_lld_LIBS_ALL) $(edma3_lld_EXAMPLES_LIST)
39 all: libs examples
41 libs: $(edma3_lld_LIBS_ALL)
43 examples: $(edma3_lld_EXAMPLES_LIST)
45 clean: $(CLEANALL_TARGETS)
47 cleanall: $(CLEANALL_TARGETS) $(CLEANALL_EXAMPLES)
49 #
50 # Rule to build all modules
51 #
53 edma3_lld_drv:
54 ifeq ($(FORMAT),ELF)
55         $(ECHO) \# Making c66:debug:edma3_lld_drv
56         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
57         $(ECHO) \# Making c66:release:edma3_lld_drv
58         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
59         $(ECHO) \# Making c66:debug:edma3_lld_drv -for big_endian
60         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
61         $(ECHO) \# Making c66:release:edma3_lld_drv -for big_endian
62         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
63 endif
65 edma3_lld_rm: edma3_lld_rm_generic
66 ifeq ($(FORMAT),ELF)
67         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm 
68         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
69         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm 
70         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
71         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm 
72         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug
73         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm 
74         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
75         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm -for big_endian
76         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
77         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm -for big_endian
78         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
79         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm -for big_endian
80         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
81         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm -for big_endian
82         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
84         $(ECHO) \# Making tci6608-sim:release:edma3_lld_rm 
85         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release
86         $(ECHO) \# Making tci6616-sim:release:edma3_lld_rm 
87         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release
88         $(ECHO) \# Making c6670-evm:release:edma3_lld_rm 
89         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release
90         $(ECHO) \# Making c6678-evm:release:edma3_lld_rm 
91         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
93         $(ECHO) \# Making tci6608-sim:release:edma3_lld_rm for big_endian
94         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
95         $(ECHO) \# Making tci6616-sim:release:edma3_lld_rm for big_endian
96         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
97         $(ECHO) \# Making c6670-evm:release:edma3_lld_rm for big_endian
98         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
99         $(ECHO) \# Making c6678-evm:release:edma3_lld_rm for big_endian
100         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
101 endif
103 # Generic platform
104 edma3_lld_rm_generic:
105 ifeq ($(FORMAT),ELF)
106         $(ECHO) \# Making generic/c66:debug:edma3_lld_rm: -for big_endian
107         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=big
108         $(ECHO) \# Making generic/c66:release:edma3_lld_rm: -for big_endian
109         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=big
110         $(ECHO) \# Making generic/c66:debug:edma3_lld_rm 
111         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=little
112         $(ECHO) \# Making generic/c66:release:edma3_lld_rm 
113         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=little
114 endif
115  
116 edma3_lld_rm_sample:
117 ifeq ($(FORMAT),ELF)
118         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample 
119         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug
120         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample 
121         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug
122         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample 
123         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug
124         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample 
125         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug
127         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample -for big_endian
128         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
129         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample -for big_endian
130         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
131         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample -for big_endian
132         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
133         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample -for big_endian
134         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
136         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample 
137         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release
138         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample 
139         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release
140         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample 
141         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release
142         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample 
143         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release
145         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample -for big_endian
146         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
147         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample -for big_endian
148         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
149         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample -for big_endian
150         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
151         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample -for big_endian
152         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
153 endif
155 edma3_lld_drv_sample:
156 ifeq ($(FORMAT),ELF)
157         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_drv_sample 
158         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug 
159         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_drv_sample
160         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug 
161         $(ECHO) \# Making c6670-evm:debug:edma3_lld_drv_sample
162         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug 
163         $(ECHO) \# Making c6678-evm:debug:edma3_lld_drv_sample
164         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug 
166         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_drv_sample -for big_endian
167         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
168         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_drv_sample -for big_endian
169         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
170         $(ECHO) \# Making c6670-evm:debug:edma3_lld_drv_sample -for big_endian
171         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
172         $(ECHO) \# Making c6678-evm:debug:edma3_lld_drv_sample -for big_endian
173         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
175         $(ECHO) \# Making tci6608-sim:release:edma3_lld_drv_sample
176         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release 
177         $(ECHO) \# Making tci6616-sim:release:edma3_lld_drv_sample 
178         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release 
179         $(ECHO) \# Making c6670-evm:release:edma3_lld_drv_sample 
180         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release 
181         $(ECHO) \# Making c6678-evm:release:edma3_lld_drv_sample 
182         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release 
184         $(ECHO) \# Making tci6608-sim:release:edma3_lld_drv_sample -for big_endian
185         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
186         $(ECHO) \# Making tci6616-sim:release:edma3_lld_drv_sample -for big_endian
187         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
188         $(ECHO) \# Making c6670-evm:release:edma3_lld_drv_sample -for big_endian
189         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
190         $(ECHO) \# Making c6678-evm:release:edma3_lld_drv_sample -for big_endian
191         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
192 endif
195 # Rule to build all examples
198  
199 edma3_drv_tci6608_sample:
200 ifeq ($(FORMAT),ELF)
201         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
202         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug
203         $(ECHO) \# Making example $@:debug
204         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
205         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
206         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release
207         $(ECHO) \# Making example $@:release
208         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release
209 endif
210  
211 edma3_drv_tci6608be_sample:
212 ifeq ($(FORMAT),ELF)
213         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
214         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
215         $(ECHO) \# Making example $@:debug
216         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
217         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
218         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
219         $(ECHO) \# Making example $@:release
220         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
221 endif
223 edma3_drv_tci6616_sample:
224 ifeq ($(FORMAT),ELF)
225         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
226         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug
227         $(ECHO) \# Making example $@:debug
228         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
229         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
230         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release
231         $(ECHO) \# Making example $@:release
232         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release
233 endif
234  
235 edma3_drv_tci6616be_sample:
236 ifeq ($(FORMAT),ELF)
237         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
238         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
239         $(ECHO) \# Making example $@:debug
240         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
241         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
242         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
243         $(ECHO) \# Making example $@:release
244         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
245 endif
247 edma3_drv_c6670_sample:
248 ifeq ($(FORMAT),ELF)
249         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
250         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug
251         $(ECHO) \# Making example $@:debug
252         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug
253         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
254         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release
255         $(ECHO) \# Making example $@:release
256         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release
257 endif
259 edma3_drv_c6670be_sample:
260 ifeq ($(FORMAT),ELF)
261         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
262         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
263         $(ECHO) \# Making example $@:debug
264         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
265         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
266         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
267         $(ECHO) \# Making example $@:release
268         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
269 endif
270  
272 edma3_drv_c6678_sample:
273 ifeq ($(FORMAT),ELF)
274         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
275         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug
276         $(ECHO) \# Making example $@:debug
277         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
278         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
279         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release
280         $(ECHO) \# Making example $@:release
281         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
282 endif
283  
284 edma3_drv_c6678be_sample:
285 ifeq ($(FORMAT),ELF)
286         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
287         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
288         $(ECHO) \# Making example $@:debug
289         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
290         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
291         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
292         $(ECHO) \# Making example $@:release
293         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
294 endif
295  
297 # Clean targets
299 edma3_lld_drv_clean:
300         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
301         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
302         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
303         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release
304         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
305         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
306         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
307         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
308         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
309         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
310         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
311         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release
312         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
313         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
314         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
315         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
316         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
317         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
318         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
319         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release
320         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
321         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
322         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
323         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
324         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
325         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
326         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
327         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release
328         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
329         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
330         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
331         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
333 edma3_lld_rm_clean: edma3_lld_rm_generic_clean
334         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_rm 
335         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
336         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm 
337         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
338         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm 
339         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
340         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm 
341         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
342         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_rm  -for big_endian
343         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
344         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm   -for big_endian
345         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
346         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm   -for big_endian
347         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
348         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm   -for big_endian
349         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
350         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm 
351         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release
352         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_rm 
353         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release
354         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_rm 
355         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release
356         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_rm 
357         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release
359         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm  -for big_endian
360         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
361         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_rm   -for big_endian
362         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
363         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_rm   -for big_endian
364         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
365         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_rm   -for big_endian
366         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
368 # Generic platform
369 edma3_lld_rm_generic_clean:
371         $(ECHO) \# Cleaning generic/c66:debug:edma3_lld_rm: -for big_endian
372         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=big
373         $(ECHO) \# Cleaning generic/c66:release:edma3_lld_rm: -for big_endian
374         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=big
375         $(ECHO) \# Cleaning generic/c66:debug:edma3_lld_rm 
376         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=little
377         $(ECHO) \# Cleaning generic/c66:release:edma3_lld_rm 
378         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=little
379    
380 edma3_lld_rm_sample_clean:
381         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_rm_sample 
382         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
383         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm_sample 
384         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
385         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm_sample 
386         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
387         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm_sample 
388         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
389         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm_sample  -for big_endian
390         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
391         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm_sample   -for big_endian
392         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
393         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm_sample   -for big_endian
394         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
395         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm_sample   -for big_endian
396         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
398         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm_sample 
399         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release
400         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_rm_sample 
401         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release
402         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_rm_sample 
403         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release
404         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_rm_sample 
405         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release
406         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm_sample  -for big_endian
407         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
408         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm_sample   -for big_endian
409         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
410         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm_sample   -for big_endian
411         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
412         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm_sample   -for big_endian
413         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
414  
415 edma3_lld_drv_sample_clean:
416         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_drv_sample 
417         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
418         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_drv_sample 
419         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
420         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_drv_sample 
421         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
422         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_drv_sample 
423         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
424         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_drv_sample  -for big_endian
425         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
426         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_drv_sample   -for big_endian
427         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
428         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_drv_sample   -for big_endian
429         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
430         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_drv_sample   -for big_endian
431         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
432         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_drv_sample  
433         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release 
434         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_drv_sample  
435         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release 
436         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_drv_sample   
437         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release 
438         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_drv_sample   
439         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release 
441         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_drv_sample  -for big_endian
442         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
443         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_drv_sample   -for big_endian
444         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
445         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_drv_sample   -for big_endian
446         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
447         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_drv_sample   -for big_endian
448         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
452 # Rule to clean all examples
455  
456 edma3_drv_tci6608_sample_clean:
457         $(ECHO) \# Cleaning example $@:debug
458         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
459         $(ECHO) \# Cleaning example $@:release
460         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=release
461  
462 edma3_drv_tci6608be_sample_clean:
463         $(ECHO) \# Cleaning example $@:debug
464         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
465         $(ECHO) \# Cleaning example $@:release
466         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
468 edma3_drv_tci6616_sample_clean:
469         $(ECHO) \# Cleaning example $@:debug
470         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
471         $(ECHO) \# Cleaning example $@:release
472         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=release
473  
474 edma3_drv_tci6616be_sample_clean:
475         $(ECHO) \# Cleaning example $@:debug
476         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
477         $(ECHO) \# Cleaning example $@:release
478         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
480 edma3_drv_c6670_sample_clean:
481         $(ECHO) \# Cleaning example $@:debug
482         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=debug
483         $(ECHO) \# Cleaning example $@:release
484         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=release
485  
486 edma3_drv_c6670be_sample_clean:
487         $(ECHO) \# Cleaning example $@:debug
488         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=debug ENDIAN=big
489         $(ECHO) \# Cleaning example $@:release
490         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=release ENDIAN=big
492 edma3_drv_c6678_sample_clean:
493         $(ECHO) \# Cleaning example $@:debug
494         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=debug
495         $(ECHO) \# Cleaning example $@:release
496         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=release
497  
498 edma3_drv_c6678be_sample_clean:
499         $(ECHO) \# Cleaning example $@:debug
500         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=debug ENDIAN=big
501         $(ECHO) \# Cleaning example $@:release
502         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=release ENDIAN=big
504       
505 # Help
506 help:
507         $(ECHO) EDMA3 LLD Driver Help page
508         $(ECHO) To build libraries and examples:
509         $(ECHO) "Command line: make [all\|libs\|examples] [FORMAT=\{ELF\|COFF\}]"
510         $(ECHO) "       Default target is "all", which builds both libraries and examples"
511         $(ECHO) "       Default FORMAT is specified in makerules/build_config.mk. This can be"
512         $(ECHO) "        overridden by specifying a different FORMAT here."
513         $(ECHO) To clean the build files:
514         $(ECHO) "Command line: make \{clean\|cleanall\}"
517 # Nothing beyond this point