From 5e08e2d54895fa7f85c62deb4a1d54f856106feb Mon Sep 17 00:00:00 2001 From: AndreiGrozav Date: Wed, 11 Sep 2019 11:01:30 +0300 Subject: [PATCH] project-xilinx.mk: Fix build condition "prepare_incremental_compile" is defined as a phony target, but is also a prerequisite of a real target. This will lead to a complete project build every time make is called. To fix the issue the functionality of prepare_incremental_compile target was included in the generic project build target. --- projects/scripts/project-xilinx.mk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/projects/scripts/project-xilinx.mk b/projects/scripts/project-xilinx.mk index de2c5e560..a70fb2137 100644 --- a/projects/scripts/project-xilinx.mk +++ b/projects/scripts/project-xilinx.mk @@ -33,11 +33,10 @@ M_DEPS += $(wildcard system_constr.xdc) # Not all projects have this file M_DEPS += $(HDL_PROJECT_PATH)scripts/adi_project_xilinx.tcl M_DEPS += $(HDL_PROJECT_PATH)scripts/adi_env.tcl M_DEPS += $(HDL_PROJECT_PATH)scripts/adi_board.tcl -M_DEPS += prepare_incremental_compile M_DEPS += $(foreach dep,$(LIB_DEPS),$(HDL_LIBRARY_PATH)$(dep)/component.xml) -.PHONY: all lib clean clean-all prepare_incremental_compile +.PHONY: all lib clean clean-all all: lib $(PROJECT_NAME).sdk/system_top.hdf clean: @@ -53,7 +52,7 @@ clean-all: clean MODE ?= "default" -prepare_incremental_compile: +$(PROJECT_NAME).sdk/system_top.hdf: $(M_DEPS) @if [ $(MODE) = incr ]; then \ if [ -f */impl_1/system_top_routed.dcp ]; then \ echo Found previous run result at `ls */impl_1/system_top_routed.dcp`; \ @@ -65,8 +64,6 @@ prepare_incremental_compile: else \ rm -f reference.dcp; \ fi; - -$(PROJECT_NAME).sdk/system_top.hdf: $(M_DEPS) -rm -rf $(CLEAN_TARGET) $(call build, \ $(VIVADO) system_project.tcl, \