soc/integration: return vns with soc and builder
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 14 Jan 2016 16:15:39 +0000 (17:15 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 14 Jan 2016 16:15:39 +0000 (17:15 +0100)
litex/soc/integration/builder.py
litex/soc/integration/soc_core.py

index 08fae492c9e88f33134561a74a9e4255a6086f6d..98457138f35990f79d05dc4a6d011e5205c62d5b 100644 (file)
@@ -154,9 +154,10 @@ class Builder:
 
         if self.gateware_toolchain_path is not None:
             toolchain_path = self.gateware_toolchain_path
-        self.soc.build(build_dir=os.path.join(self.output_dir, "gateware"),
-                       run=self.compile_gateware, toolchain_path=toolchain_path,
-                       **kwargs)
+        vns = self.soc.build(build_dir=os.path.join(self.output_dir, "gateware"),
+                             run=self.compile_gateware, toolchain_path=toolchain_path,
+                             **kwargs)
+        return vns
 
 
 def builder_args(parser):
index e7cc8ca8e437c032421a86153b1768bef85861b6..721d5929178b53716f00f38b7e9719f89477169f 100644 (file)
@@ -201,7 +201,7 @@ class SoCCore(Module):
                     self.comb += self.cpu_or_bridge.interrupt[v].eq(getattr(self, k).ev.irq)
 
     def build(self, *args, **kwargs):
-        self.platform.build(self, *args, **kwargs)
+        return self.platform.build(self, *args, **kwargs)
 
 
 def soc_core_args(parser):