summaryrefslogtreecommitdiff
path: root/ld_scripts
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2021-01-07 12:25:05 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-01-07 12:25:05 +0100
commit082db0c6b5b70df45ef16b7124a982df3054e3c8 (patch)
treebea0b623d6a5856e2fa286a173ef7e9c7a9952b1 /ld_scripts
parentcf79d8f57747cb41fa9756263fe14470197c5c86 (diff)
build: Added hex and size_prefix filters for Jinja2.
Diffstat (limited to 'ld_scripts')
-rw-r--r--ld_scripts/generated.ld.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/ld_scripts/generated.ld.j2 b/ld_scripts/generated.ld.j2
index 40a198a..bc088d5 100644
--- a/ld_scripts/generated.ld.j2
+++ b/ld_scripts/generated.ld.j2
@@ -1,6 +1,6 @@
MEMORY {
{% for name, m in mem.items() %}
- {{ name }} ({{ 'rx' if name == 'flash' else 'rwx' }}) : org = {{ m.origin }}, len = {{ m.size }}
+ {{ name }} ({{ 'rx' if name == 'flash' else 'rwx' }}) : org = {{ m.origin | hex }}, len = {{ m.size | size_prefix }}
{% endfor %}
}