From 002508a69ad1b7641a031aae5679c0b67e2bba30 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 14 Jan 2016 17:15:39 +0100 Subject: [PATCH] soc/integration: return vns with soc and builder --- litex/soc/integration/builder.py | 7 ++++--- litex/soc/integration/soc_core.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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): -- 2.30.2