script_ext = ".sh"
shell = ["bash"]
build_script_contents = "# Autogenerated by mibuild\nset -e\n"
-
- settings = common.settings(ise_path, ver, "ISE_DS")
- build_script_contents += source_cmd + settings + "\n"
+ if source:
+ settings = common.settings(ise_path, ver, "ISE_DS")
+ build_script_contents += source_cmd + settings + "\n"
if mode == "edif":
ext = "edif"
else:
return "/opt/Xilinx"
+def _default_source():
+ return False if sys.platform == "win32" else True
+
+
class XilinxISEToolchain:
def __init__(self):
self.xst_opt = """-ifmt MIXED
self.ise_commands = ""
def build(self, platform, fragment, build_dir="build", build_name="top",
- ise_path=_default_ise_path(), source=True, run=True, mode="xst"):
+ ise_path=_default_ise_path(), source=_default_source(), run=True, mode="xst"):
tools.mkdir_noerror(build_dir)
os.chdir(build_dir)