Skip to content

Commit 8b1e77a

Browse files
Max Vilimpocadbridge
authored andcommitted
Allow user overrides of LINKER_SCRIPT Make variable
1 parent 1230b0d commit 8b1e77a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/export/makefile/Makefile.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ PROJECT := {{name}}
5555
{% endfor %}
5656
LIBRARY_PATHS :={% for p in library_paths %} {{user_library_flag}}{{p}} {% endfor %}
5757
LIBRARIES :={% for lib in libraries %} {{lib}} {% endfor %}
58+
59+
# Allow user overrides of LINKER_SCRIPT from the command line, useful
60+
# if user wants to reserve specific flash areas for production config data
61+
ifndef $(LINKER_SCRIPT)
5862
LINKER_SCRIPT := {{linker_script}}
63+
endif
5964
{%- block additional_variables -%}{% endblock %}
6065

6166
# Objects and Paths

0 commit comments

Comments
 (0)