2ba539ff4151c68ea419a8b3852e76e006436101
[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         $(ECHO) \# Making c66:debug:edma3_lld_drv
55         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
56         $(ECHO) \# Making c66:release:edma3_lld_drv
57         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
58         $(ECHO) \# Making c66:debug:edma3_lld_drv -for big_endian
59         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
60         $(ECHO) \# Making c66:release:edma3_lld_drv -for big_endian
61         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
63 edma3_lld_rm: edma3_lld_rm_generic
64         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm 
65         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
66         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm 
67         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
68         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm 
69         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug
70         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm 
71         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
72         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm -for big_endian
73         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
74         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm -for big_endian
75         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
76         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm -for big_endian
77         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
78         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm -for big_endian
79         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
80         $(ECHO) \# Making tci6608-sim:release:edma3_lld_rm 
81         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release
82         $(ECHO) \# Making tci6616-sim:release:edma3_lld_rm 
83         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release
84         $(ECHO) \# Making c6670-evm:release:edma3_lld_rm 
85         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release
86         $(ECHO) \# Making c6678-evm:release:edma3_lld_rm 
87         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
88         $(ECHO) \# Making tci6608-sim:release:edma3_lld_rm for big_endian
89         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
90         $(ECHO) \# Making tci6616-sim:release:edma3_lld_rm for big_endian
91         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
92         $(ECHO) \# Making c6670-evm:release:edma3_lld_rm for big_endian
93         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
94         $(ECHO) \# Making c6678-evm:release:edma3_lld_rm for big_endian
95         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
98 # Generic platform
99 edma3_lld_rm_generic:
100         $(ECHO) \# Making generic/c66:debug:edma3_lld_rm: -for big_endian
101         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=big
102         $(ECHO) \# Making generic/c66:release:edma3_lld_rm: -for big_endian
103         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=big
104         $(ECHO) \# Making generic/c66:debug:edma3_lld_rm 
105         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=little
106         $(ECHO) \# Making generic/c66:release:edma3_lld_rm 
107         $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=little
108  
109 edma3_lld_rm_sample:
110         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample 
111         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug
112         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample 
113         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug
114         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample 
115         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug
116         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample 
117         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug
118         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample -for big_endian
119         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
120         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample -for big_endian
121         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
122         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample -for big_endian
123         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
124         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample -for big_endian
125         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
126         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample 
127         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release
128         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample 
129         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release
130         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample 
131         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release
132         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample 
133         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release
134         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample -for big_endian
135         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
136         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample -for big_endian
137         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
138         $(ECHO) \# Making c6670-evm:debug:edma3_lld_rm_sample -for big_endian
139         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
140         $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample -for big_endian
141         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
143 edma3_lld_drv_sample:
144         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_drv_sample 
145         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug 
146         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_drv_sample
147         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug 
148         $(ECHO) \# Making c6670-evm:debug:edma3_lld_drv_sample
149         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug 
150         $(ECHO) \# Making c6678-evm:debug:edma3_lld_drv_sample
151         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug 
152         $(ECHO) \# Making tci6608-sim:debug:edma3_lld_drv_sample -for big_endian
153         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
154         $(ECHO) \# Making tci6616-sim:debug:edma3_lld_drv_sample -for big_endian
155         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
156         $(ECHO) \# Making c6670-evm:debug:edma3_lld_drv_sample -for big_endian
157         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
158         $(ECHO) \# Making c6678-evm:debug:edma3_lld_drv_sample -for big_endian
159         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
160         $(ECHO) \# Making tci6608-sim:release:edma3_lld_drv_sample
161         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release 
162         $(ECHO) \# Making tci6616-sim:release:edma3_lld_drv_sample 
163         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release 
164         $(ECHO) \# Making c6670-evm:release:edma3_lld_drv_sample 
165         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release 
166         $(ECHO) \# Making c6678-evm:release:edma3_lld_drv_sample 
167         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release 
168         $(ECHO) \# Making tci6608-sim:release:edma3_lld_drv_sample -for big_endian
169         $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
170         $(ECHO) \# Making tci6616-sim:release:edma3_lld_drv_sample -for big_endian
171         $(MAKE) -C $($@_PATH) PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
172         $(ECHO) \# Making c6670-evm:release:edma3_lld_drv_sample -for big_endian
173         $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
174         $(ECHO) \# Making c6678-evm:release:edma3_lld_drv_sample -for big_endian
175         $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
178 # Rule to build all examples
181  
182 edma3_drv_tci6608_sample:
183         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
184         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug
185         $(ECHO) \# Making example $@:debug
186         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
187         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
188         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release
189         $(ECHO) \# Making example $@:release
190         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release
191  
192 edma3_drv_tci6608be_sample:
193         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
194         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
195         $(ECHO) \# Making example $@:debug
196         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
197         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
198         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
199         $(ECHO) \# Making example $@:release
200         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
202 edma3_drv_tci6616_sample:
203         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
204         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug
205         $(ECHO) \# Making example $@:debug
206         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
207         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
208         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release
209         $(ECHO) \# Making example $@:release
210         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release
211  
212 edma3_drv_tci6616be_sample:
213         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
214         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
215         $(ECHO) \# Making example $@:debug
216         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
217         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
218         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
219         $(ECHO) \# Making example $@:release
220         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
222 edma3_drv_c6670_sample:
223         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
224         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug
225         $(ECHO) \# Making example $@:debug
226         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug
227         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
228         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release
229         $(ECHO) \# Making example $@:release
230         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release
232 edma3_drv_c6670be_sample:
233         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
234         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
235         $(ECHO) \# Making example $@:debug
236         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
237         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
238         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
239         $(ECHO) \# Making example $@:release
240         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
241  
243 edma3_drv_c6678_sample:
244         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
245         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug
246         $(ECHO) \# Making example $@:debug
247         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
248         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
249         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release
250         $(ECHO) \# Making example $@:release
251         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
252  
253 edma3_drv_c6678be_sample:
254         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
255         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
256         $(ECHO) \# Making example $@:debug
257         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
258         $(ECHO) \# Configuring XDC packages for $@:c6xdsp:release
259         $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
260         $(ECHO) \# Making example $@:release
261         $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
262  
264 # Clean targets
266 edma3_lld_drv_clean:
267         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
268         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
269         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
270         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release
271         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
272         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
273         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
274         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
275         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
276         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
277         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
278         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release
279         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
280         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
281         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
282         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
283         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
284         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
285         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
286         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release
287         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
288         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
289         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
290         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
291         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv
292         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
293         $(ECHO) \# Cleaning c66:release:edma3_lld_drv
294         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release
295         $(ECHO) \# Cleaning c66:debug:edma3_lld_drv -for big_endian
296         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
297         $(ECHO) \# Cleaning c66:release:edma3_lld_drv -for big_endian
298         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
300 edma3_lld_rm_clean: edma3_lld_rm_generic_clean
301         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_rm 
302         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
303         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm 
304         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
305         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm 
306         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
307         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm 
308         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
309         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_rm  -for big_endian
310         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
311         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm   -for big_endian
312         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
313         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm   -for big_endian
314         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
315         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm   -for big_endian
316         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
317         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm 
318         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release
319         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_rm 
320         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release
321         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_rm 
322         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release
323         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_rm 
324         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release
326         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm  -for big_endian
327         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
328         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_rm   -for big_endian
329         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
330         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_rm   -for big_endian
331         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
332         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_rm   -for big_endian
333         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
335 # Generic platform
336 edma3_lld_rm_generic_clean:
338         $(ECHO) \# Cleaning generic/c66:debug:edma3_lld_rm: -for big_endian
339         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=big
340         $(ECHO) \# Cleaning generic/c66:release:edma3_lld_rm: -for big_endian
341         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=big
342         $(ECHO) \# Cleaning generic/c66:debug:edma3_lld_rm 
343         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=little
344         $(ECHO) \# Cleaning generic/c66:release:edma3_lld_rm 
345         $(MAKE) -C $($(subst _generic_clean,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=little
346    
347 edma3_lld_rm_sample_clean:
348         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_rm_sample 
349         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
350         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm_sample 
351         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
352         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm_sample 
353         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
354         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm_sample 
355         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
356         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm_sample  -for big_endian
357         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
358         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm_sample   -for big_endian
359         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
360         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm_sample   -for big_endian
361         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
362         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm_sample   -for big_endian
363         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
365         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm_sample 
366         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release
367         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_rm_sample 
368         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release
369         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_rm_sample 
370         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release
371         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_rm_sample 
372         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release
373         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_rm_sample  -for big_endian
374         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
375         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_rm_sample   -for big_endian
376         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
377         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_rm_sample   -for big_endian
378         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
379         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_rm_sample   -for big_endian
380         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
381  
382 edma3_lld_drv_sample_clean:
383         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_drv_sample 
384         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
385         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_drv_sample 
386         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
387         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_drv_sample 
388         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug
389         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_drv_sample 
390         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug
391         $(ECHO) \# Cleaning tci6608-sim:debug:edma3_lld_drv_sample  -for big_endian
392         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
393         $(ECHO) \# Cleaning tci6616-sim:debug:edma3_lld_drv_sample   -for big_endian
394         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
395         $(ECHO) \# Cleaning c6670-evm:debug:edma3_lld_drv_sample   -for big_endian
396         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
397         $(ECHO) \# Cleaning c6678-evm:debug:edma3_lld_drv_sample   -for big_endian
398         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
399         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_drv_sample  
400         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release 
401         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_drv_sample  
402         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release 
403         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_drv_sample   
404         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release 
405         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_drv_sample   
406         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release 
408         $(ECHO) \# Cleaning tci6608-sim:release:edma3_lld_drv_sample  -for big_endian
409         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
410         $(ECHO) \# Cleaning tci6616-sim:release:edma3_lld_drv_sample   -for big_endian
411         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
412         $(ECHO) \# Cleaning c6670-evm:release:edma3_lld_drv_sample   -for big_endian
413         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
414         $(ECHO) \# Cleaning c6678-evm:release:edma3_lld_drv_sample   -for big_endian
415         $(MAKE) -C $($(subst _clean,,$@)_PATH) clean PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
419 # Rule to clean all examples
422  
423 edma3_drv_tci6608_sample_clean:
424         $(ECHO) \# Cleaning example $@:debug
425         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
426         $(ECHO) \# Cleaning example $@:release
427         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=release
428  
429 edma3_drv_tci6608be_sample_clean:
430         $(ECHO) \# Cleaning example $@:debug
431         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=debug ENDIAN=big
432         $(ECHO) \# Cleaning example $@:release
433         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
435 edma3_drv_tci6616_sample_clean:
436         $(ECHO) \# Cleaning example $@:debug
437         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=debug
438         $(ECHO) \# Cleaning example $@:release
439         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=release
440  
441 edma3_drv_tci6616be_sample_clean:
442         $(ECHO) \# Cleaning example $@:debug
443         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=debug ENDIAN=big
444         $(ECHO) \# Cleaning example $@:release
445         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
447 edma3_drv_c6670_sample_clean:
448         $(ECHO) \# Cleaning example $@:debug
449         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=debug
450         $(ECHO) \# Cleaning example $@:release
451         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=release
452  
453 edma3_drv_c6670be_sample_clean:
454         $(ECHO) \# Cleaning example $@:debug
455         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=debug ENDIAN=big
456         $(ECHO) \# Cleaning example $@:release
457         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6670-sim PROFILE_c6xdsp=release ENDIAN=big
459 edma3_drv_c6678_sample_clean:
460         $(ECHO) \# Cleaning example $@:debug
461         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=debug
462         $(ECHO) \# Cleaning example $@:release
463         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=release
464  
465 edma3_drv_c6678be_sample_clean:
466         $(ECHO) \# Cleaning example $@:debug
467         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=debug ENDIAN=big
468         $(ECHO) \# Cleaning example $@:release
469         $(MAKE) -C $($(subst _clean,,$@)_EXAMPLES_PATH) clean  PLATFORM=c6678-sim PROFILE_c6xdsp=release ENDIAN=big
471       
472 # Help
473 help:
474         $(ECHO) EDMA3 LLD Driver Help page
475         $(ECHO) To build libraries and examples:
476         $(ECHO) "Command line: make [all\|libs\|examples] [FORMAT=\{ELF\|COFF\}]"
477         $(ECHO) "       Default target is "all", which builds both libraries and examples"
478         $(ECHO) "       Default FORMAT is specified in makerules/build_config.mk. This can be"
479         $(ECHO) "        overridden by specifying a different FORMAT here."
480         $(ECHO) To clean the build files:
481         $(ECHO) "Command line: make \{clean\|cleanall\}"
484 # Nothing beyond this point