mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Merge branch 'develop' into feature/platform-stm32
This commit is contained in:
@ -84,6 +84,15 @@ if "BOARD" in env:
|
|||||||
env.Replace(UPLOAD_PROTOCOL="${BOARD_OPTIONS['upload']['protocol']}")
|
env.Replace(UPLOAD_PROTOCOL="${BOARD_OPTIONS['upload']['protocol']}")
|
||||||
if "UPLOAD_SPEED" not in env:
|
if "UPLOAD_SPEED" not in env:
|
||||||
env.Replace(UPLOAD_SPEED="${BOARD_OPTIONS['upload']['speed']}")
|
env.Replace(UPLOAD_SPEED="${BOARD_OPTIONS['upload']['speed']}")
|
||||||
|
# specific linker script
|
||||||
|
if "ldscript" in env.get("BOARD_OPTIONS", {}).get("build", {}):
|
||||||
|
env.Replace(
|
||||||
|
LINKFLAGS=["-T", join(
|
||||||
|
"$PIOHOME_DIR", "packages", "ldscripts",
|
||||||
|
"${BOARD_OPTIONS['build']['ldscript']}")]
|
||||||
|
)
|
||||||
|
if "extra_flags" in env.get("BOARD_OPTIONS", {}).get("build", {}):
|
||||||
|
env.MergeFlags(env.subst("${BOARD_OPTIONS['build']['extra_flags']}"))
|
||||||
|
|
||||||
env.PrependENVPath(
|
env.PrependENVPath(
|
||||||
"PATH",
|
"PATH",
|
||||||
|
@ -33,16 +33,6 @@ env.Append(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
# specific linker script for TIVA devices
|
|
||||||
if "ldscript" in env.subst("${BOARD_OPTIONS['build']}"):
|
|
||||||
env.Append(
|
|
||||||
LINKFLAGS=["-T", join(
|
|
||||||
"$PLATFORMFW_DIR", "cores",
|
|
||||||
"${BOARD_OPTIONS['build']['core']}",
|
|
||||||
"${BOARD_OPTIONS['build']['ldscript']}")]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Target: Build Core Library
|
# Target: Build Core Library
|
||||||
#
|
#
|
||||||
|
@ -58,6 +58,11 @@ env.Replace(
|
|||||||
"F_CPU=$BOARD_F_CPU"
|
"F_CPU=$BOARD_F_CPU"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
UPLOADER=join("$PIOPACKAGES_DIR", "tool-lm4flash", "lm4flash"),
|
||||||
|
UPLOADCMD="$UPLOADER $SOURCES"
|
||||||
|
)
|
||||||
|
|
||||||
|
env.Append(
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
"-Os",
|
"-Os",
|
||||||
"-nostartfiles",
|
"-nostartfiles",
|
||||||
@ -69,10 +74,7 @@ env.Replace(
|
|||||||
"-mfloat-abi=hard",
|
"-mfloat-abi=hard",
|
||||||
"-mfpu=fpv4-sp-d16",
|
"-mfpu=fpv4-sp-d16",
|
||||||
"-fsingle-precision-constant"
|
"-fsingle-precision-constant"
|
||||||
],
|
]
|
||||||
|
|
||||||
UPLOADER=join("$PIOPACKAGES_DIR", "tool-lm4flash", "lm4flash"),
|
|
||||||
UPLOADCMD="$UPLOADER $SOURCES"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
env.Append(
|
env.Append(
|
||||||
|
Reference in New Issue
Block a user