diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 60e9402e..ec8d241a 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -184,6 +184,9 @@ env.Append( ] ) +if not env.BoardConfig().get("build.ldscript", ""): + env.Replace(LDSCRIPT_PATH=env.BoardConfig().get("build.arduino.ldscript", "")) + # # Target: Build Core Library #