fpga: Remove Python2 support from build system
- 2to3 was used to convert the Python scripts, except where the tool choked and manual intervention was required - All references to "python" where replaced with "python3" - buffer() was replaced by memoryview() Original-commit: ca68195b5d12c5410cfac8d459a0b0902c4c72c7
This commit is contained in:
@@ -22,7 +22,7 @@ BUILD_VIVADO_DESIGN = \
|
||||
export VIV_TOOLS_DIR=$(call RESOLVE_PATH,$(TOOLS_DIR)); \
|
||||
export VIV_OUTPUT_DIR=$(call RESOLVE_PATH,$(BUILD_DIR)); \
|
||||
export VIV_TOP_MODULE=$(2); \
|
||||
export VIV_PART_NAME=`python $(TOOLS_DIR)/scripts/viv_gen_part_id.py $(3)/$(4)`; \
|
||||
export VIV_PART_NAME=`python3 $(TOOLS_DIR)/scripts/viv_gen_part_id.py $(3)/$(4)`; \
|
||||
export VIV_MODE=$(VIVADO_MODE); \
|
||||
export VIV_DESIGN_SRCS=$(call RESOLVE_PATHS,$(DESIGN_SRCS)); \
|
||||
export VIV_VERILOG_DEFS="$(VERILOG_DEFS)"; \
|
||||
@@ -47,7 +47,7 @@ CHECK_VIVADO_DESIGN = \
|
||||
export VIV_TOOLS_DIR=$(call RESOLVE_PATH,$(TOOLS_DIR)); \
|
||||
export VIV_OUTPUT_DIR=$(call RESOLVE_PATH,$(BUILD_DIR)); \
|
||||
export VIV_TOP_MODULE=$(2); \
|
||||
export VIV_PART_NAME=`python $(TOOLS_DIR)/scripts/viv_gen_part_id.py $(3)/$(4)`; \
|
||||
export VIV_PART_NAME=`python3 $(TOOLS_DIR)/scripts/viv_gen_part_id.py $(3)/$(4)`; \
|
||||
export VIV_MODE=$(VIVADO_MODE); \
|
||||
export VIV_DESIGN_SRCS=$(call RESOLVE_PATHS,$(DESIGN_SRCS)); \
|
||||
export VIV_VERILOG_DEFS="$(VERILOG_DEFS)"; \
|
||||
|
||||
Reference in New Issue
Block a user