From: William D. Jones Date: Mon, 24 Sep 2018 16:28:45 +0000 (-0400) Subject: integration/builder: Create EXECUTE_IN_PLACE Makefile variable to complement COPY_TO_... X-Git-Tag: 24jan2021_ls180~1578^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8106008184c84ce9ff5715500b495856b756bb3c;p=litex.git integration/builder: Create EXECUTE_IN_PLACE Makefile variable to complement COPY_TO_MAIN_RAM. --- diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index ddeccfac..0495ec2b 100755 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -74,10 +74,16 @@ class Builder: define("LITEX", "1") # Distinguish between applications running from main RAM and # flash for user-provided software packages. + exec_profiles = { + "COPY_TO_MAIN_RAM" : "0", + "EXECUTE_IN_PLACE" : "0" + } if "main_ram" in (m[0] for m in memory_regions): - define("COPY_TO_MAIN_RAM", "1") + exec_profiles["COPY_TO_MAIN_RAM"] = "1" else: - define("COPY_TO_MAIN_RAM", "0") + exec_profiles["EXECUTE_IN_PLACE"] = "1" + for k, v in exec_profiles.items(): + define(k, v) define("SOC_DIRECTORY", soc_directory) variables_contents.append("export BUILDINC_DIRECTORY\n") define("BUILDINC_DIRECTORY", buildinc_dir)