hw: foboot-bitstream: create multiboot image after build

This fixes an issue where the directory wasn't created first.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-04-06 16:19:30 +08:00
parent 7ee97214e6
commit 6d9028f505

View File

@ -676,8 +676,6 @@ def main():
output_dir = 'build'
make_multiboot_header(os.path.join(output_dir, "gateware", "multiboot-header.bin"), [160, 262144])
if args.export_random_rom_file is not None:
size = 0x2000
def xorshift32(x):
@ -723,6 +721,8 @@ def main():
vns = builder.build()
soc.do_exit(vns)
make_multiboot_header(os.path.join(output_dir, "gateware", "multiboot-header.bin"), [160, 262144])
with open(os.path.join(output_dir, 'gateware', 'multiboot-header.bin'), 'rb') as multiboot_header_file:
multiboot_header = multiboot_header_file.read()
with open(os.path.join(output_dir, 'gateware', 'top.bin'), 'rb') as top_file: