soc/integration/builder.py: don't take care of ROM when compile_software is forced to False

This commit is contained in:
Florent Kermarrec 2017-04-24 19:12:30 +02:00
parent dc66dfcb55
commit c0800d25a6
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ class Builder:
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:
if self.soc.cpu_type is not None and self.compile_software:
if self.soc.integrated_rom_size:
raise ValueError("Software must be compiled in order to "
"intitialize integrated ROM")