From: Gabriel L. Somlo Date: Fri, 17 May 2019 14:06:12 +0000 (-0400) Subject: boards/nexys4ddr: ethernet support fix-up X-Git-Tag: 24jan2021_ls180~1209^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5707bdc0a4c718fbb4228ae0e145ce449691ec33;p=litex.git boards/nexys4ddr: ethernet support fix-up Commit 5f6e7874 added ethernet support, let's now also expose it via the "--with-ethernet" command line argument. --- diff --git a/litex/boards/targets/nexys4ddr.py b/litex/boards/targets/nexys4ddr.py index fa9c3c49..2cb638f0 100755 --- a/litex/boards/targets/nexys4ddr.py +++ b/litex/boards/targets/nexys4ddr.py @@ -102,9 +102,12 @@ def main(): parser = argparse.ArgumentParser(description="LiteX SoC on Nexys4DDR") builder_args(parser) soc_sdram_args(parser) + parser.add_argument("--with-ethernet", action="store_true", + help="enable Ethernet support") args = parser.parse_args() - soc = BaseSoC(**soc_sdram_argdict(args)) + cls = EthernetSoC if args.with_ethernet else BaseSoC + soc = cls(**soc_sdram_argdict(args)) builder = Builder(soc, **builder_argdict(args)) builder.build()