makefile: Add install rov to allow debugging
authorSam Nelson <sam.nelson@ti.com>
Thu, 2 Mar 2017 21:29:24 +0000 (16:29 -0500)
committerSam Nelson <sam.nelson@ti.com>
Thu, 2 Mar 2017 21:29:24 +0000 (16:29 -0500)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios/simple_buffer_example/dsp/makefile
host_bios/simple_buffer_example/host/makefile
host_bios/simple_buffer_example/makefile
makefile

index 67e456755169395865572308e77e1c89fe78fad1..a846ed7eed48b831b7575b68ab8b6af3ef0fc65e 100644 (file)
@@ -106,6 +106,12 @@ install:
        @$(MKDIR) $(EXEC_DIR)/release
        $(CP) bin/$(PLATFORM)/release/server_dsp.xe66 $(EXEC_DIR)/release
 
+install_rov:
+       @$(ECHO) "#"
+       @$(ECHO) "# Making $@ ..."
+       @$(MKDIR) $(EXEC_DIR)/release
+       $(CP) bin/$(PLATFORM)/release/configuro/package/cfg/Dsp_pe66.rov.xs $(EXEC_DIR)/release
+
 help:
        @$(ECHO) "make                   # build executable"
        @$(ECHO) "make clean             # clean everything"
index 1d9f842a856997f68d2ccad2a19926d29fed24e2..53c978bc130df572f055e41da9300a751ed99bed 100644 (file)
@@ -102,6 +102,12 @@ install:
        @$(MKDIR) $(EXEC_DIR)/release
        $(CP) bin/$(BOARD_NAME)/release/app_host.xa15fg $(EXEC_DIR)/release
 
+install_rov:
+       @$(ECHO) "#"
+       @$(ECHO) "# Making $@ ..."
+       @$(MKDIR) $(EXEC_DIR)/release
+       $(CP) bin/$(BOARD_NAME)/release/configuro/package/cfg/Host_pa15fg.rov.xs $(EXEC_DIR)/release
+
 help:
        @$(ECHO) "make                   # build executable"
        @$(ECHO) "make clean             # clean everything"
index b2c4ca6cb2b2200c048913ca717afc0da6f64a4e..3cf0cb1675c278bb88a5b78852d3cfd47eeb5ff1 100644 (file)
@@ -116,7 +116,7 @@ help:
        @$(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
@@ -131,6 +131,14 @@ $(addsuffix _install,$(PROCLIST)):
        @$(MKDIR) $(EXEC_DIR)/release
        $(MAKE) -C $(subst _install,,$@) EXEC_DIR=$(EXEC_DIR) install
 
+install_rov: $(PROCLIST) $(addsuffix _install,$(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
 
index 182b49476c24208eabd606b3ac6a6037fbbc1d28..24fed3a6cd0b311442e898c46ee94b221a46b2fe 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -34,7 +34,7 @@
 #  ======== makefile ========
 #
 
-.PHONY: host_bios/simple_buffer_example
+.PHONY:  host_bios host_bios/simple_buffer_example
 
 all: host_bios
 
@@ -57,6 +57,12 @@ install_bin::
        @echo "# Installing host_bios examples..."
        $(MAKE) -C host_bios/simple_buffer_example install
 
+install_rov::
+       @echo "#"
+       @echo "# Installing host_bios examples..."
+       $(MAKE) -C host_bios/simple_buffer_example install_rov
+
+
 clean::
        @echo "#"
        @echo "# Cleaning host_bios examples..."