summaryrefslogtreecommitdiff
path: root/ld_scripts/generated.ld.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ld_scripts/generated.ld.j2')
-rw-r--r--ld_scripts/generated.ld.j27
1 files changed, 7 insertions, 0 deletions
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"