From: Florent Kermarrec Date: Mon, 19 May 2014 17:49:32 +0000 (+0200) Subject: make.py: init bios memory in build-bitstream action otherwise it is not possible... X-Git-Tag: 24jan2021_ls180~2711 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dcbb077fdfd64ca0291c2516ad50b539b70b5bd;p=litex.git 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 --- diff --git a/make.py b/make.py index 57e16700..3d0df721 100755 --- a/make.py +++ b/make.py @@ -179,17 +179,17 @@ CPU type: {} if ret: raise OSError("BIOS build failed") - if hasattr(soc, "init_bios_memory"): - with open("software/bios/bios.bin", "rb") as bios_file: - bios_data = [] - while True: - w = bios_file.read(4) - if not w: - break - bios_data.append(struct.unpack(">I", w)[0]) - soc.init_bios_memory(bios_data) - if actions["build-bitstream"]: + if hasattr(soc, "init_bios_memory"): + with open("software/bios/bios.bin", "rb") as bios_file: + bios_data = [] + while True: + w = bios_file.read(4) + if not w: + break + bios_data.append(struct.unpack(">I", w)[0]) + soc.init_bios_memory(bios_data) + for decorator in args.decorate: soc = getattr(simplify, decorator)(soc) build_kwargs = dict((k, autotype(v)) for k, v in args.build_option)