From 1dcbb077fdfd64ca0291c2516ad50b539b70b5bd Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 19 May 2014 19:49:32 +0200 Subject: [PATCH] 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 --- make.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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) -- 2.30.2