Skip to content

Commit 5efdc77

Browse files
authored
Allow using custom linker scripts (#7078)
1 parent 11ae243 commit 5efdc77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/platformio-build.py

+3
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ def scons_patched_match_splitext(path, suffixes=None):
264264
"Generating LD script $TARGET"))
265265
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", app_ld)
266266

267+
if not env.BoardConfig().get("build.ldscript", ""):
268+
env.Replace(LDSCRIPT_PATH=env.BoardConfig().get("build.arduino.ldscript", ""))
269+
267270
#
268271
# Dynamic core_version.h for staging builds
269272
#

0 commit comments

Comments
 (0)