Add "nano.specs" for ARM linker

This commit is contained in:
Valeriy Koval
2015-04-06 21:16:10 +03:00
parent b23a8a7075
commit 960eccad8c
3 changed files with 8 additions and 11 deletions

View File

@ -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"],

View File

@ -44,7 +44,7 @@ env.Replace(
LINKFLAGS=[
"-Os",
"-mmcu=$BOARD_MCU",
"-Wl,--gc-sections"
"-Wl,--gc-sections,--relax"
],
LIBS=["m"],

View File

@ -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(