From: Florent Kermarrec Date: Mon, 29 Oct 2018 14:56:46 +0000 (+0100) Subject: boards/targets/simple: add gateware-toolchain parameter X-Git-Tag: 24jan2021_ls180~1542 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52917a710ee63a19cf46c25853c3dfd3859e7662;p=litex.git boards/targets/simple: add gateware-toolchain parameter --- diff --git a/litex/boards/targets/simple.py b/litex/boards/targets/simple.py index ee1a4a7c..68f98293 100755 --- a/litex/boards/targets/simple.py +++ b/litex/boards/targets/simple.py @@ -58,10 +58,15 @@ def main(): help="enable Ethernet support") parser.add_argument("platform", help="module name of the platform to build for") + parser.add_argument("--gateware-toolchain", default=None, + help="FPGA gateware toolchain used for build") args = parser.parse_args() platform_module = importlib.import_module(args.platform) - platform = platform_module.Platform() + if args.gateware_toolchain is not None: + platform = platform_module.Platform(toolchain=args.gateware_toolchain) + else: + platform = platform_module.Platform() cls = EthernetSoC if args.with_ethernet else BaseSoC soc = cls(platform, **soc_core_argdict(args)) builder = Builder(soc, **builder_argdict(args))