Line 20... |
Line 20... |
|
|
# Check that the XILINX_PATH variable is set
|
# Check that the XILINX_PATH variable is set
|
ifeq ($(XILINX_PATH),)
|
ifeq ($(XILINX_PATH),)
|
$(error XILINX_PATH environment variable not set. Set it and rerun)
|
$(error XILINX_PATH environment variable not set. Set it and rerun)
|
endif
|
endif
|
XILINX_SETTINGS_SCRIPT=$(XILINX_PATH)/settings32.sh
|
XILINX_SETTINGS_SCRIPT=$(XILINX_PATH)/ISE/settings32.sh
|
XILINX_SETTINGS_SCRIPT_EXISTS=$(shell if [ -e $(XILINX_SETTINGS_SCRIPT) ]; then echo 1; else echo 0; fi)
|
XILINX_SETTINGS_SCRIPT_EXISTS=$(shell if [ -e $(XILINX_SETTINGS_SCRIPT) ]; then echo 1; else echo 0; fi)
|
ifeq ($(XILINX_SETTINGS_SCRIPT_EXISTS),0)
|
ifeq ($(XILINX_SETTINGS_SCRIPT_EXISTS),0)
|
$(error XILINX_PATH variable not set correctly. Cannot find $$XILINX_PATH/settings32.sh)
|
$(error XILINX_PATH variable not set correctly. Cannot find $(XILINX_SETTINGS_SCRIPT))
|
endif
|
endif
|
|
|
# Backend directories
|
# Backend directories
|
# This one is the board build's backend dir.
|
# This one is the board build's backend dir.
|
BOARD_BACKEND_DIR=$(BOARD_ROOT)/backend
|
BOARD_BACKEND_DIR=$(BOARD_ROOT)/backend
|
BOARD_BACKEND_VERILOG_DIR=$(BOARD_BACKEND_DIR)/rtl/verilog
|
BOARD_BACKEND_VERILOG_DIR=$(BOARD_BACKEND_DIR)/rtl/verilog
|
BOARD_BACKEND_BIN_DIR=$(BOARD_BACKEND_DIR)/bin
|
BOARD_BACKEND_BIN_DIR=$(BOARD_BACKEND_DIR)/bin
|
# Technology backend (vendor-specific)
|
# Technology backend (vendor-specific)
|
TECHNOLOGY_BACKEND_DIR=$(BOARD_ROOT)/../backend
|
TECHNOLOGY_BACKEND_DIR=$(BOARD_ROOT)/../backend
|
# This path is for the technology library
|
# This path is for the technology library
|
TECHNOLOGY_LIBRARY_VERILOG_DIR=$(XILINX_PATH)/verilog
|
TECHNOLOGY_LIBRARY_VERILOG_DIR=$(XILINX_PATH)/ISE/verilog
|
|
|
# Bootrom setup
|
# Bootrom setup
|
# BootROM code, which generates a verilog array select values
|
# BootROM code, which generates a verilog array select values
|
BOOTROM_FILE=bootrom.v
|
BOOTROM_FILE=bootrom.v
|
BOOTROM_SW_DIR=$(BOARD_SW_DIR)/bootrom
|
BOOTROM_SW_DIR=$(BOARD_SW_DIR)/bootrom
|