soc_core: add uart-stub argument
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 24 Sep 2018 00:01:15 +0000 (02:01 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 24 Sep 2018 00:01:15 +0000 (02:01 +0200)
litex/soc/integration/soc_core.py

index 5f6883380882530d84f2d25f852654cb3fe8a752..bfbeacce1c3df418ad1394d61594df97db216420 100644 (file)
@@ -385,11 +385,18 @@ def soc_core_args(parser):
                         help="size/enable the integrated (BIOS) ROM")
     parser.add_argument("--integrated-main-ram-size", default=None, type=int,
                         help="size/enable the integrated main RAM")
+    parser.add_argument("--uart-stub", default=False, type=bool,
+                        help="enable uart stub")
 
 
 def soc_core_argdict(args):
     r = dict()
-    for a in "cpu_type", "cpu_variant", "integrated_rom_size", "integrated_main_ram_size":
+    for a in [
+        "cpu_type",
+        "cpu_variant",
+        "integrated_rom_size",
+        "integrated_main_ram_size",
+        "uart_stub"]:
         arg = getattr(args, a)
         if arg is not None:
             r[a] = arg