forked from platformio/platformio-core
Allow to specify own path to the linker script (ld) using build_flags option // Resolve #233
This commit is contained in:
1 parent
91563b01d2
commit
8e95bfb464
4 files changed
+25
-14
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||
# See LICENSE for details.
|
||||
|
||||
VERSION = (2, 2, "0.dev0")
|
||||
VERSION = (2, 2, "0.dev1")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
||||
@@ -35,9 +35,10 @@ def BuildFirmware(env):
|
||||
deplibs = firmenv.BuildDependentLibraries("$PROJECTSRC_DIR")
|
||||
|
||||
# append specified LD_SCRIPT
|
||||
if "LDSCRIPT_PATH" in firmenv:
|
||||
if ("LDSCRIPT_PATH" in firmenv and
|
||||
not any(["-Wl,-T" in f for f in firmenv['LINKFLAGS']])):
|
||||
firmenv.Append(
|
||||
LINKFLAGS=["-T", "$LDSCRIPT_PATH"]
|
||||
LINKFLAGS=["-Wl,-T", "$LDSCRIPT_PATH"]
|
||||
)
|
||||
|
||||
# enable "cyclic reference" for linker
|
||||
|
||||
Reference in new issue
Block a user