From: Florent Kermarrec Date: Thu, 14 Jan 2016 16:15:39 +0000 (+0100) Subject: soc/integration: return vns with soc and builder X-Git-Tag: 24jan2021_ls180~2015 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=002508a69ad1b7641a031aae5679c0b67e2bba30;p=litex.git soc/integration: return vns with soc and builder --- diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 08fae492..98457138 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -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): diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index e7cc8ca8..721d5929 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -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):