make.py: init bios memory in build-bitstream action otherwise it is not possible to run clean or build-csr-csv or build-headers without build-bios
This commit is contained in:
parent
f4c0648289
commit
1dcbb077fd
2
make.py
2
make.py
|
@ -179,6 +179,7 @@ CPU type: {}
|
||||||
if ret:
|
if ret:
|
||||||
raise OSError("BIOS build failed")
|
raise OSError("BIOS build failed")
|
||||||
|
|
||||||
|
if actions["build-bitstream"]:
|
||||||
if hasattr(soc, "init_bios_memory"):
|
if hasattr(soc, "init_bios_memory"):
|
||||||
with open("software/bios/bios.bin", "rb") as bios_file:
|
with open("software/bios/bios.bin", "rb") as bios_file:
|
||||||
bios_data = []
|
bios_data = []
|
||||||
|
@ -189,7 +190,6 @@ CPU type: {}
|
||||||
bios_data.append(struct.unpack(">I", w)[0])
|
bios_data.append(struct.unpack(">I", w)[0])
|
||||||
soc.init_bios_memory(bios_data)
|
soc.init_bios_memory(bios_data)
|
||||||
|
|
||||||
if actions["build-bitstream"]:
|
|
||||||
for decorator in args.decorate:
|
for decorator in args.decorate:
|
||||||
soc = getattr(simplify, decorator)(soc)
|
soc = getattr(simplify, decorator)(soc)
|
||||||
build_kwargs = dict((k, autotype(v)) for k, v in args.build_option)
|
build_kwargs = dict((k, autotype(v)) for k, v in args.build_option)
|
||||||
|
|
Loading…
Reference in New Issue