mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
boards/nexys4ddr: ethernet support fix-up
Commit 5f6e7874
added ethernet support, let's now also expose it via
the "--with-ethernet" command line argument.
This commit is contained in:
parent
0a8699f1e6
commit
5707bdc0a4
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue