soc/integration/builder: don't build bios is user is providing rom data
This commit is contained in:
parent
5d98a60e6e
commit
b78a4760bb
|
@ -117,8 +117,11 @@ class Builder:
|
||||||
dst_dir = os.path.join(self.output_dir, "software", name)
|
dst_dir = os.path.join(self.output_dir, "software", name)
|
||||||
os.makedirs(dst_dir, exist_ok=True)
|
os.makedirs(dst_dir, exist_ok=True)
|
||||||
|
|
||||||
def _generate_software(self):
|
def _generate_software(self, compile_bios=True):
|
||||||
for name, src_dir in self.software_packages:
|
for name, src_dir in self.software_packages:
|
||||||
|
if name == "bios" and not compile_bios:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
dst_dir = os.path.join(self.output_dir, "software", name)
|
dst_dir = os.path.join(self.output_dir, "software", name)
|
||||||
makefile = os.path.join(src_dir, "Makefile")
|
makefile = os.path.join(src_dir, "Makefile")
|
||||||
if self.compile_software:
|
if self.compile_software:
|
||||||
|
@ -144,7 +147,7 @@ class Builder:
|
||||||
if self.soc.cpu_type is not None:
|
if self.soc.cpu_type is not None:
|
||||||
self._prepare_software()
|
self._prepare_software()
|
||||||
self._generate_includes()
|
self._generate_includes()
|
||||||
self._generate_software()
|
self._generate_software(not self.soc.integrated_rom_initialized)
|
||||||
if self.soc.integrated_rom_size and self.compile_software:
|
if self.soc.integrated_rom_size and self.compile_software:
|
||||||
if not self.soc.integrated_rom_initialized:
|
if not self.soc.integrated_rom_initialized:
|
||||||
self._initialize_rom()
|
self._initialize_rom()
|
||||||
|
|
Loading…
Reference in New Issue