diff --git a/target/xilinx/xilinx/common.mk b/target/xilinx/xilinx/common.mk index 2b847c076..c71ed0331 100644 --- a/target/xilinx/xilinx/common.mk +++ b/target/xilinx/xilinx/common.mk @@ -31,7 +31,8 @@ $(PROJECT).xpr: # Generate a sha based on env variables and artifacts_in generate_sha256: - @echo $(VIVADOENV) $(VIVADO) $(PROJECT) $(ARTIFACTS_IN) > .generated_env + @echo $(VIVADO) $(PROJECT) > .generated_env + @echo $(VIVADOENV) | tr " " "\n" | grep $(foreach var,$(ARTIFACTS_VARS), $(addprefix -e ,$(var))) >> .generated_env @sha256sum $(ARTIFACTS_IN) >> .generated_env @sha256sum .generated_env | awk '{print $$1}' > .generated_sha256 @@ -46,6 +47,7 @@ load-artifacts: .generated_sha256 save-artifacts: generate_sha256 load-artifacts $(PROJECT).xpr @if [ ! -d "$(ARTIFACTS_PATH)/`cat .generated_sha256`" ]; then \ cp -r . $(ARTIFACTS_PATH)/`cat .generated_sha256`; \ + chmod -R o+rw $(ARTIFACTS_PATH)/`cat .generated_sha256`; \ fi gui: diff --git a/target/xilinx/xilinx/xlnx_clk_wiz/Makefile b/target/xilinx/xilinx/xlnx_clk_wiz/Makefile index 70060cea5..38bd62d72 100644 --- a/target/xilinx/xilinx/xlnx_clk_wiz/Makefile +++ b/target/xilinx/xilinx/xlnx_clk_wiz/Makefile @@ -3,6 +3,8 @@ # SPDX-License-Identifier: Apache-2.0 PROJECT:=xlnx_clk_wiz +# The files and variables on which the IP configuration depends ARTIFACTS_IN:=Makefile tcl/run.tcl +ARTIFACTS_VARS:=XILINX_PART XILINX_BOARD BOARD -include ../common.mk \ No newline at end of file +include ../common.mk diff --git a/target/xilinx/xilinx/xlnx_mig_7_ddr3/Makefile b/target/xilinx/xilinx/xlnx_mig_7_ddr3/Makefile index 07161ff56..4de35579e 100644 --- a/target/xilinx/xilinx/xlnx_mig_7_ddr3/Makefile +++ b/target/xilinx/xilinx/xlnx_mig_7_ddr3/Makefile @@ -4,5 +4,6 @@ PROJECT:=xlnx_mig_7_ddr3 ARTIFACTS_IN:=Makefile tcl/run.tcl mig_genesys2.prj mig_kc705.prj mig_vc707.prj +ARTIFACTS_VARS:=XILINX_PART XILINX_BOARD BOARD -include ../common.mk \ No newline at end of file +include ../common.mk diff --git a/target/xilinx/xilinx/xlnx_mig_ddr4/Makefile b/target/xilinx/xilinx/xlnx_mig_ddr4/Makefile index 5bd52cca7..aaec632d4 100644 --- a/target/xilinx/xilinx/xlnx_mig_ddr4/Makefile +++ b/target/xilinx/xilinx/xlnx_mig_ddr4/Makefile @@ -3,6 +3,8 @@ # SPDX-License-Identifier: Apache-2.0 PROJECT:=xlnx_mig_ddr4 +# The files and variables on which the IP configuration depends ARTIFACTS_IN:=Makefile tcl/run.tcl +ARTIFACTS_VARS:=XILINX_PART XILINX_BOARD BOARD include ../common.mk diff --git a/target/xilinx/xilinx/xlnx_vio/Makefile b/target/xilinx/xilinx/xlnx_vio/Makefile index 17949698b..d400c7b8f 100644 --- a/target/xilinx/xilinx/xlnx_vio/Makefile +++ b/target/xilinx/xilinx/xlnx_vio/Makefile @@ -3,6 +3,8 @@ # SPDX-License-Identifier: Apache-2.0 PROJECT:=xlnx_vio +# The files and variables on which the IP configuration depends ARTIFACTS_IN:=Makefile tcl/run.tcl +ARTIFACTS_VARS:=XILINX_PART XILINX_BOARD BOARD include ../common.mk