host_bios: Cleanup makefiles
[processor-sdk/big-data-ipc-examples.git] / host_bios / simple_buffer_example / makefile
index b2c4ca6cb2b2200c048913ca717afc0da6f64a4e..b3cb604d9b885db75a0219a5bd65fcc3a6f15940 100644 (file)
@@ -54,8 +54,8 @@ PROCLIST = host dsp
 PROC_HOST_NAME = "HOST"
 PROC_DSP_NAME = "CORE0"
 PROC_NAME_LIST = "\\\"$(PROC_HOST_NAME)\\\", \\\"$(PROC_DSP_NAME)\\\""
 PROC_HOST_NAME = "HOST"
 PROC_DSP_NAME = "CORE0"
 PROC_NAME_LIST = "\\\"$(PROC_HOST_NAME)\\\", \\\"$(PROC_DSP_NAME)\\\""
-DSP_PLATFORM = ti.platforms.evmTCI6638K2K:dsp
-HOST_PLATFORM = ti.platforms.evmTCI6638K2K:host
+DSP_PLATFORM = ti.platforms.evmTCI6636K2H:dsp
+HOST_PLATFORM = ti.platforms.evmTCI6636K2H:host
 SERVER = "$(PROC_DSP_NAME)"
 BOARD_NAME = "evmK2K"
 else ifeq ($(PLATFORM),TCI6636)
 SERVER = "$(PROC_DSP_NAME)"
 BOARD_NAME = "evmK2K"
 else ifeq ($(PLATFORM),TCI6636)
@@ -91,9 +91,10 @@ EXBASE = .
 include $(EXBASE)/products.mak
 .PHONY: $(PROCLIST)
 
 include $(EXBASE)/products.mak
 .PHONY: $(PROCLIST)
 
-.PHONY: install
+.PHONY: install install_rov
 
 all: $(PROCLIST)
 
 all: $(PROCLIST)
+       @echo $(PROCLIST)
 
 $(PROCLIST):
        @$(ECHO) "#"
 
 $(PROCLIST):
        @$(ECHO) "#"
@@ -116,7 +117,7 @@ help:
        @$(ECHO) "make install EXEC_DIR=/.../testbench  # install folder"
 
 # setup install goal
        @$(ECHO) "make install EXEC_DIR=/.../testbench  # install folder"
 
 # setup install goal
-ifeq (install,$(MAKECMDGOALS))
+ifeq ($(filter $(MAKECMDGOALS),install install_rov),$(MAKECMDGOALS))
 ifeq (,$(EXEC_DIR))
 EXEC_DIR=$(CURDIR)/install
 endif
 ifeq (,$(EXEC_DIR))
 EXEC_DIR=$(CURDIR)/install
 endif
@@ -131,6 +132,13 @@ $(addsuffix _install,$(PROCLIST)):
        @$(MKDIR) $(EXEC_DIR)/release
        $(MAKE) -C $(subst _install,,$@) EXEC_DIR=$(EXEC_DIR) install
 
        @$(MKDIR) $(EXEC_DIR)/release
        $(MAKE) -C $(subst _install,,$@) EXEC_DIR=$(EXEC_DIR) install
 
+install_rov: $(PROCLIST) $(addsuffix _install_rov,$(PROCLIST))
+$(addsuffix _install_rov,$(PROCLIST)):
+       @$(ECHO) "#"
+       @$(ECHO) "# Making $@ ..."
+       @$(MKDIR) $(EXEC_DIR)/release
+       $(MAKE) -C $(subst _install_rov,,$@) EXEC_DIR=$(EXEC_DIR) install_rov
+
 clean: $(addsuffix _clean,$(PROCLIST))
        $(RMDIR) install
 
 clean: $(addsuffix _clean,$(PROCLIST))
        $(RMDIR) install