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:
parent
7ee97214e6
commit
6d9028f505
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user