mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Add "nano.specs" for ARM linker
This commit is contained in:
@ -45,9 +45,10 @@ env.Replace(
|
|||||||
|
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
"-Os",
|
"-Os",
|
||||||
"-Wl,--gc-sections",
|
"-Wl,--gc-sections,--relax",
|
||||||
"-mthumb",
|
"-mthumb",
|
||||||
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
|
"-mcpu=${BOARD_OPTIONS['build']['cpu']}",
|
||||||
|
"--specs=nano.specs"
|
||||||
],
|
],
|
||||||
|
|
||||||
LIBS=["c", "gcc", "m"],
|
LIBS=["c", "gcc", "m"],
|
||||||
|
@ -44,7 +44,7 @@ env.Replace(
|
|||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
"-Os",
|
"-Os",
|
||||||
"-mmcu=$BOARD_MCU",
|
"-mmcu=$BOARD_MCU",
|
||||||
"-Wl,--gc-sections"
|
"-Wl,--gc-sections,--relax"
|
||||||
],
|
],
|
||||||
|
|
||||||
LIBS=["m"],
|
LIBS=["m"],
|
||||||
|
@ -16,6 +16,9 @@ if env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy":
|
|||||||
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "baseavr.py")))
|
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "baseavr.py")))
|
||||||
elif env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy3":
|
elif env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy3":
|
||||||
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "basearm.py")))
|
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "basearm.py")))
|
||||||
|
env.Append(
|
||||||
|
LINKFLAGS=["-Wl,--defsym=__rtc_localtime=$UNIX_TIME"]
|
||||||
|
)
|
||||||
|
|
||||||
env.Append(
|
env.Append(
|
||||||
CPPDEFINES=[
|
CPPDEFINES=[
|
||||||
@ -26,14 +29,7 @@ env.Append(
|
|||||||
CXXFLAGS=[
|
CXXFLAGS=[
|
||||||
"-std=gnu++0x",
|
"-std=gnu++0x",
|
||||||
"-felide-constructors"
|
"-felide-constructors"
|
||||||
],
|
]
|
||||||
|
|
||||||
LINKFLAGS=[
|
|
||||||
"-Wl,--gc-sections,--relax,--defsym=__rtc_localtime=$UNIX_TIME",
|
|
||||||
"--specs=nano.specs"
|
|
||||||
],
|
|
||||||
|
|
||||||
LIBS=["m"]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if isfile(env.subst(join(
|
if isfile(env.subst(join(
|
||||||
|
Reference in New Issue
Block a user