Skip to content

Commit

Permalink
fpga: Updated artifact management to take select only useful envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilKoe committed Oct 11, 2023
1 parent b238548 commit 4d568cd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion target/xilinx/xilinx/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion target/xilinx/xilinx/xlnx_clk_wiz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
include ../common.mk
3 changes: 2 additions & 1 deletion target/xilinx/xilinx/xlnx_mig_7_ddr3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
include ../common.mk
2 changes: 2 additions & 0 deletions target/xilinx/xilinx/xlnx_mig_ddr4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions target/xilinx/xilinx/xlnx_vio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d568cd

Please sign in to comment.