diff options
Diffstat (limited to 'ld_scripts')
-rw-r--r-- | ld_scripts/SConscript | 3 | ||||
-rw-r--r-- | ld_scripts/generated.ld.j2 | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ld_scripts/SConscript b/ld_scripts/SConscript new file mode 100644 index 0000000..da5c551 --- /dev/null +++ b/ld_scripts/SConscript @@ -0,0 +1,3 @@ +Import('env') + +env.Jinja2('generated.ld', 'generated.ld.j2', mem = env['PLATFORM_SPEC']['mem']) diff --git a/ld_scripts/generated.ld.j2 b/ld_scripts/generated.ld.j2 new file mode 100644 index 0000000..40a198a --- /dev/null +++ b/ld_scripts/generated.ld.j2 @@ -0,0 +1,7 @@ +MEMORY { + {% for name, m in mem.items() %} + {{ name }} ({{ 'rx' if name == 'flash' else 'rwx' }}) : org = {{ m.origin }}, len = {{ m.size }} + {% endfor %} +} + +INCLUDE "arm_flash_ram.ld" |