Skip to content

Commit ad4ab2c

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/export/makefile/Makefile.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ LIBRARIES :={% for lib in libraries %} {{lib}} {% endfor %}
5858

5959
# Allow user overrides of LINKER_SCRIPT from the command line, useful
6060
# if user wants to reserve specific flash areas for production config data
61-
ifndef $(LINKER_SCRIPT)
62-
LINKER_SCRIPT := {{linker_script}}
63-
endif
61+
LINKER_SCRIPT ?= {{linker_script}}
6462
{%- block additional_variables -%}{% endblock %}
6563

6664
# Objects and Paths

0 commit comments

Comments
 (0)