[Cryptech-Commits] [core/platform/alpha] 02/02: Upon reflection, I prefer the way Pavel handled include paths in 8cd28d0 (which he only committed on fmc_clk, and I was only looking at master).

git at cryptech.is git at cryptech.is
Wed Jan 23 01:12:58 UTC 2019


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository core/platform/alpha.

commit fe3d53cbd84a1a96ec93427a07f27321c4edaa6a
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Jan 22 19:39:09 2019 -0500

    Upon reflection, I prefer the way Pavel handled include paths in 8cd28d0
    (which he only committed on fmc_clk, and I was only looking at master).
    
    But I moved the curly brackets from Makefile to xilinx.mk, because
    a) Makefile shouldn't need to know the picky details of xst option
    syntax, and
    b) xst will throw an uninformative error if called with '-vlgincdir '
    versus '-vlgincdir {}', if vlgincdir isn't defined in Makefile.
---
 build/Makefile   | 4 ++++
 build/xilinx.mk  | 1 +
 build/xilinx.opt | 1 -
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/build/Makefile b/build/Makefile
index fc3a45b..0c61dba 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -18,6 +18,10 @@ isedir		= /opt/Xilinx/14.7/ISE_DS
 xil_env		= . $(isedir)/settings$(WORD_SIZE).sh
 ucf		?= ../ucf/$(project).ucf
 
+# Verilog include directories, if needed
+
+vlgincdir	= $(CORE_TREE)/lib/lowlevel $(CORE_TREE)/math/ecdsalib/rtl/microcode
+
 all:	$(project).bit
 
 # Build the default core_selector if it doesn't already exist.
diff --git a/build/xilinx.mk b/build/xilinx.mk
index abeff7b..76d0110 100644
--- a/build/xilinx.mk
+++ b/build/xilinx.mk
@@ -152,6 +152,7 @@ $(project).scr: $(optfile) $(mkfiles) ./xilinx.opt
 	echo "-top $(top_module)" >> $@
 	echo "-ifn $(project).prj" >> $@
 	echo "-ofn $(project).ngc" >> $@
+	echo "-vlgincdir {$(vlgincdir)}" >> $@
 	cat ./xilinx.opt $(optfile) >> $@
 junk += $(project).scr
 
diff --git a/build/xilinx.opt b/build/xilinx.opt
index f7ce206..7fe9d8b 100644
--- a/build/xilinx.opt
+++ b/build/xilinx.opt
@@ -40,4 +40,3 @@
 -iob auto
 -equivalent_register_removal YES
 -slice_utilization_ratio_maxmargin 5
--vlgincdir {../../../lib/lowlevel ../../../math/ecdsalib/rtl/microcode}



More information about the Commits mailing list