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