From: Florent Kermarrec Date: Sat, 16 Mar 2019 08:33:16 +0000 (+0100) Subject: build/microsemi/libero_soc: add linux build script support X-Git-Tag: 24jan2021_ls180~1361 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bc13ba841d129039d702beb623078138c2db023;p=litex.git build/microsemi/libero_soc: add linux build script support --- diff --git a/litex/build/microsemi/libero_soc.py b/litex/build/microsemi/libero_soc.py index 4327f623..a82ac586 100644 --- a/litex/build/microsemi/libero_soc.py +++ b/litex/build/microsemi/libero_soc.py @@ -23,6 +23,8 @@ def _format_io_constraint(c): elif isinstance(c, IOStandard): return "-io_std {} ".format(c.name) elif isinstance(c, Misc): + return "-RES_PULL {} ".format(c.misc) + else: raise NotImplementedError @@ -183,7 +185,10 @@ def _build_script(build_name, device, toolchain_path, ver=None): copy_stmt = "copy" fail_stmt = " || exit /b" else: - raise NotImplementedError + script_ext = ".sh" + build_script_contents = "# Autogenerated by Migen\n\n" + copy_stmt = "cp" + fail_stmt = " || exit 1" build_script_file = "build_" + build_name + script_ext tools.write_to_file(build_script_file, build_script_contents,