From 8b2abc7e892590f3998c28005ec4ba90c19760f1 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Mon, 17 Dec 2018 21:11:14 -0800 Subject: [PATCH] Fix `-vlgincdir` for xst. The command line is of the form; ``` -vlgincdir {"path1" "path2"} ``` Fixes the following error; ``` WARNING:Xst:3164 - Option "-vlgincdir" found multiple times in the command line. Only the first occurence is considered. ``` --- litex/build/xilinx/ise.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/litex/build/xilinx/ise.py b/litex/build/xilinx/ise.py index 9bdaaa5c..39ff5b48 100644 --- a/litex/build/xilinx/ise.py +++ b/litex/build/xilinx/ise.py @@ -58,8 +58,11 @@ def _build_xst_files(device, sources, vincpaths, build_name, xst_opt): -ofn {build_name}.ngc -p {device} """.format(build_name=build_name, xst_opt=xst_opt, device=device) - for path in vincpaths: - xst_contents += "-vlgincdir " + tools.cygpath(path) + "\n" + if vincpaths: + xst_contents += "-vlgincdir {" + for path in vincpaths: + xst_contents += tools.cygpath(path) + " " + xst_contents += "}" tools.write_to_file(build_name + ".xst", xst_contents) -- 2.30.2