From: Florent Kermarrec Date: Thu, 26 Nov 2015 16:27:55 +0000 (+0100) Subject: soc/integration: allow using builder with soc.cpu_type == None X-Git-Tag: 24jan2021_ls180~2041 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c24727ab4ce676f695f67275eb24784fafed948a;p=litex.git soc/integration: allow using builder with soc.cpu_type == None --- diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 45439ef0..b209e706 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -133,14 +133,18 @@ class Builder: def build(self): self.soc.finalize() - if self.soc.integrated_rom_size and not self.compile_software: - raise ValueError("Software must be compiled in order to " - "intitialize integrated ROM") - - self._prepare_software() - self._generate_includes() - self._generate_software() - self._initialize_rom() + os.makedirs(self.output_dir, exist_ok=True) + + if self.soc.cpu_type is not None: + if self.soc.integrated_rom_size and not self.compile_software: + raise ValueError("Software must be compiled in order to " + "intitialize integrated ROM") + + self._prepare_software() + self._generate_includes() + self._generate_software() + self._initialize_rom() + if self.gateware_toolchain_path is None: kwargs = dict() else: