aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-12-19 15:47:33 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-12-19 15:47:33 +0300
commit8cd28d0fc12f0671ae3af89209de52a159d8cf19 (patch)
tree7aee60c63fa75b88b1e047748342be1e8d09a1bb /build
parentf8f86f9cfbd0ac73d2b0d3600e424b9c669cea59 (diff)
Added `include directories to Makefile
Diffstat (limited to 'build')
-rw-r--r--build/Makefile6
-rw-r--r--build/xilinx.mk1
2 files changed, 6 insertions, 1 deletions
diff --git a/build/Makefile b/build/Makefile
index f573ace..5a6107d 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -16,7 +16,11 @@ part = xc7a200tfbg484-1
top_module = alpha_fmc_top
isedir = /opt/Xilinx/14.7/ISE_DS
xil_env = . $(isedir)/settings$(WORD_SIZE).sh
-ucf ?= ../ucf/$(project).ucf
+ucf ?= ../ucf/$(project).ucf
+
+# verilog include directories {yes, XST wants them exactly this way in curly braces}
+vlgincdir = {$(CORE_TREE)/lib/lowlevel $(CORE_TREE)/math/ecdsalib/rtl/microcode}
+
all: $(project).bit
diff --git a/build/xilinx.mk b/build/xilinx.mk
index 9af9366..c88f00b 100644
--- a/build/xilinx.mk
+++ b/build/xilinx.mk
@@ -155,6 +155,7 @@ $(project).scr: $(optfile) $(mkfiles) ./xilinx.opt
echo "-ifn $(project).prj" >> $@
echo "-ofn $(project).ngc" >> $@
cat ./xilinx.opt $(optfile) >> $@
+ echo "-vlgincdir $(vlgincdir)" >> $@
junk += $(project).scr
$(project).post_map.twr: $(project).ncd