From d4d78df657675f8b9e813b603ef7564c319c93c0 Mon Sep 17 00:00:00 2001 From: Sam Nelson Date: Thu, 2 Mar 2017 16:29:24 -0500 Subject: [PATCH] makefile: Add install rov to allow debugging Signed-off-by: Sam Nelson --- host_bios/simple_buffer_example/dsp/makefile | 6 ++++++ host_bios/simple_buffer_example/host/makefile | 6 ++++++ host_bios/simple_buffer_example/makefile | 10 +++++++++- makefile | 8 +++++++- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/host_bios/simple_buffer_example/dsp/makefile b/host_bios/simple_buffer_example/dsp/makefile index 67e4567..a846ed7 100644 --- a/host_bios/simple_buffer_example/dsp/makefile +++ b/host_bios/simple_buffer_example/dsp/makefile @@ -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" diff --git a/host_bios/simple_buffer_example/host/makefile b/host_bios/simple_buffer_example/host/makefile index 1d9f842..53c978b 100644 --- a/host_bios/simple_buffer_example/host/makefile +++ b/host_bios/simple_buffer_example/host/makefile @@ -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" diff --git a/host_bios/simple_buffer_example/makefile b/host_bios/simple_buffer_example/makefile index b2c4ca6..3cf0cb1 100644 --- a/host_bios/simple_buffer_example/makefile +++ b/host_bios/simple_buffer_example/makefile @@ -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 diff --git a/makefile b/makefile index 182b494..24fed3a 100755 --- 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..." -- 2.39.2