Skip to content

Commit

Permalink
Allow using custom linker scripts (#7078)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros authored Feb 12, 2020
1 parent 11ae243 commit 5efdc77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ def scons_patched_match_splitext(path, suffixes=None):
"Generating LD script $TARGET"))
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", app_ld)

if not env.BoardConfig().get("build.ldscript", ""):
env.Replace(LDSCRIPT_PATH=env.BoardConfig().get("build.arduino.ldscript", ""))

#
# Dynamic core_version.h for staging builds
#
Expand Down

0 comments on commit 5efdc77

Please sign in to comment.