soc/integration: allow using builder with soc.cpu_type == None

This commit is contained in:
Florent Kermarrec 2015-11-26 17:27:55 +01:00
parent 7298fff1e6
commit c24727ab4c
1 changed files with 11 additions and 7 deletions

View File

@ -133,14 +133,18 @@ class Builder:
def build(self): def build(self):
self.soc.finalize() self.soc.finalize()
if self.soc.integrated_rom_size and not self.compile_software: os.makedirs(self.output_dir, exist_ok=True)
raise ValueError("Software must be compiled in order to "
"intitialize integrated ROM") 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()
self._prepare_software()
self._generate_includes()
self._generate_software()
self._initialize_rom()
if self.gateware_toolchain_path is None: if self.gateware_toolchain_path is None:
kwargs = dict() kwargs = dict()
else: else: