From 7bc13ba841d129039d702beb623078138c2db023 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 16 Mar 2019 09:33:16 +0100 Subject: [PATCH] build/microsemi/libero_soc: add linux build script support --- litex/build/microsemi/libero_soc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, -- 2.30.2