Updated webgen makefile
[keystone-rtos/edma3_lld.git] / packages / makefile_c66x
index 2ba539ff4151c68ea419a8b3852e76e006436101..e46c776af0a72dbcfd8d118b3fc966aaacb406c9 100644 (file)
@@ -51,6 +51,7 @@ cleanall: $(CLEANALL_TARGETS) $(CLEANALL_EXAMPLES)
 #
 
 edma3_lld_drv:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Making c66:debug:edma3_lld_drv
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug
        $(ECHO) \# Making c66:release:edma3_lld_drv
@@ -59,8 +60,10 @@ edma3_lld_drv:
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making c66:release:edma3_lld_drv -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
+endif
 
 edma3_lld_rm: edma3_lld_rm_generic
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm 
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=debug
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm 
@@ -77,6 +80,7 @@ edma3_lld_rm: edma3_lld_rm_generic
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=debug ENDIAN=big
+
        $(ECHO) \# Making tci6608-sim:release:edma3_lld_rm 
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release
        $(ECHO) \# Making tci6616-sim:release:edma3_lld_rm 
@@ -85,6 +89,7 @@ edma3_lld_rm: edma3_lld_rm_generic
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release
        $(ECHO) \# Making c6678-evm:release:edma3_lld_rm 
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
+
        $(ECHO) \# Making tci6608-sim:release:edma3_lld_rm for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making tci6616-sim:release:edma3_lld_rm for big_endian
@@ -93,10 +98,11 @@ edma3_lld_rm: edma3_lld_rm_generic
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making c6678-evm:release:edma3_lld_rm for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
-
+endif
 
 # Generic platform
 edma3_lld_rm_generic:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Making generic/c66:debug:edma3_lld_rm: -for big_endian
        $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=big
        $(ECHO) \# Making generic/c66:release:edma3_lld_rm: -for big_endian
@@ -105,8 +111,10 @@ edma3_lld_rm_generic:
        $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=debug ENDIAN=little
        $(ECHO) \# Making generic/c66:release:edma3_lld_rm 
        $(MAKE) -C $($(subst _generic,,$@)_PATH) PLATFORM=generic CORE=66 PROFILE_66=release ENDIAN=little
+endif
  
 edma3_lld_rm_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample 
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample 
@@ -115,6 +123,7 @@ edma3_lld_rm_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample 
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug
+
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample -for big_endian
@@ -123,6 +132,7 @@ edma3_lld_rm_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
+
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample 
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample 
@@ -131,6 +141,7 @@ edma3_lld_rm_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample 
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release
+
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_rm_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_rm_sample -for big_endian
@@ -139,8 +150,10 @@ edma3_lld_rm_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_rm_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
+endif
 
 edma3_lld_drv_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_drv_sample 
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug 
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_drv_sample
@@ -149,6 +162,7 @@ edma3_lld_drv_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug 
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_drv_sample
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug 
+
        $(ECHO) \# Making tci6608-sim:debug:edma3_lld_drv_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making tci6616-sim:debug:edma3_lld_drv_sample -for big_endian
@@ -157,6 +171,7 @@ edma3_lld_drv_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making c6678-evm:debug:edma3_lld_drv_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
+
        $(ECHO) \# Making tci6608-sim:release:edma3_lld_drv_sample
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release 
        $(ECHO) \# Making tci6616-sim:release:edma3_lld_drv_sample 
@@ -165,6 +180,7 @@ edma3_lld_drv_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release 
        $(ECHO) \# Making c6678-evm:release:edma3_lld_drv_sample 
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release 
+
        $(ECHO) \# Making tci6608-sim:release:edma3_lld_drv_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making tci6616-sim:release:edma3_lld_drv_sample -for big_endian
@@ -173,6 +189,7 @@ edma3_lld_drv_sample:
        $(MAKE) -C $($@_PATH) PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making c6678-evm:release:edma3_lld_drv_sample -for big_endian
        $(MAKE) -C $($@_PATH) PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
+endif
 
 #
 # Rule to build all examples
@@ -180,6 +197,7 @@ edma3_lld_drv_sample:
 
  
 edma3_drv_tci6608_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug
        $(ECHO) \# Making example $@:debug
@@ -188,8 +206,10 @@ edma3_drv_tci6608_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release
+endif
  
 edma3_drv_tci6608be_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making example $@:debug
@@ -198,8 +218,10 @@ edma3_drv_tci6608be_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6608-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6608-sim PROFILE_c6xdsp=release ENDIAN=big
+endif
 
 edma3_drv_tci6616_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug
        $(ECHO) \# Making example $@:debug
@@ -208,8 +230,10 @@ edma3_drv_tci6616_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release
+endif
  
 edma3_drv_tci6616be_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making example $@:debug
@@ -218,8 +242,10 @@ edma3_drv_tci6616be_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=tci6616-sim CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=tci6616-sim PROFILE_c6xdsp=release ENDIAN=big
+endif
 
 edma3_drv_c6670_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug
        $(ECHO) \# Making example $@:debug
@@ -228,8 +254,10 @@ edma3_drv_c6670_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release
+endif
 
 edma3_drv_c6670be_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making example $@:debug
@@ -238,9 +266,11 @@ edma3_drv_c6670be_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6670-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6670-evm PROFILE_c6xdsp=release ENDIAN=big
+endif
  
 
 edma3_drv_c6678_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug
        $(ECHO) \# Making example $@:debug
@@ -249,8 +279,10 @@ edma3_drv_c6678_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release
+endif
  
 edma3_drv_c6678be_sample:
+ifeq ($(FORMAT),ELF)
        $(ECHO) \# Configuring XDC packages for $@:c6xdsp:debug
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=debug ENDIAN=big
        $(ECHO) \# Making example $@:debug
@@ -259,6 +291,7 @@ edma3_drv_c6678be_sample:
        $(MAKE) -C $($@_EXAMPLES_PATH) xdc_configuro PLATFORM=c6678-evm CORE=c6xdsp PROFILE_c6xdsp=release ENDIAN=big
        $(ECHO) \# Making example $@:release
        $(MAKE) -C $($@_EXAMPLES_PATH) PLATFORM=c6678-evm PROFILE_c6xdsp=release ENDIAN=big
+endif
  
 
 # Clean targets