Merge pull request #141 from mithro/xst-fix

Fix `-vlgincdir` for xst.
This commit is contained in:
Tim Ansell 2018-12-17 21:24:15 -08:00 committed by GitHub
commit 1c1c1bd122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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)
if vincpaths:
xst_contents += "-vlgincdir {"
for path in vincpaths:
xst_contents += "-vlgincdir " + tools.cygpath(path) + "\n"
xst_contents += tools.cygpath(path) + " "
xst_contents += "}"
tools.write_to_file(build_name + ".xst", xst_contents)