From: Florent Kermarrec Date: Wed, 24 Apr 2019 20:44:37 +0000 (+0200) Subject: soc/integration/cpu_interface: fix banner in get_mem_header X-Git-Tag: 24jan2021_ls180~1270 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f27084c6c099e684f26b6c2a4523d73ddad9ac1f;p=litex.git soc/integration/cpu_interface: fix banner in get_mem_header --- diff --git a/litex/soc/integration/cpu_interface.py b/litex/soc/integration/cpu_interface.py index 99b56977..d8020a89 100644 --- a/litex/soc/integration/cpu_interface.py +++ b/litex/soc/integration/cpu_interface.py @@ -72,7 +72,7 @@ def get_linker_regions(regions): def get_mem_header(regions, flash_boot_address): r = generated_banner("//") - r = "#ifndef __GENERATED_MEM_H\n#define __GENERATED_MEM_H\n\n" + r += "#ifndef __GENERATED_MEM_H\n#define __GENERATED_MEM_H\n\n" for name, base, size in regions: r += "#define {name}_BASE 0x{base:08x}\n#define {name}_SIZE 0x{size:08x}\n\n".format(name=name.upper(), base=base, size=size) if flash_boot_address is not None: