mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Update linker flags for teensy platform
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
"teensy30": {
|
||||
"build": {
|
||||
"core": "teensy3",
|
||||
"extra_flags": "-D__MK20DX128__",
|
||||
"extra_flags": "-D__MK20DX128__ -larm_cortexM4l_math",
|
||||
"f_cpu": "48000000L",
|
||||
"ldscript": "mk20dx128.ld",
|
||||
"mcu": "mk20dx128",
|
||||
@ -56,7 +56,7 @@
|
||||
"teensy31": {
|
||||
"build": {
|
||||
"core": "teensy3",
|
||||
"extra_flags": "-D__MK20DX256__",
|
||||
"extra_flags": "-D__MK20DX256__ -larm_cortexM4l_math",
|
||||
"f_cpu": "72000000L",
|
||||
"ldscript": "mk20dx256.ld",
|
||||
"mcu": "mk20dx256",
|
||||
@ -76,7 +76,7 @@
|
||||
"teensylc": {
|
||||
"build": {
|
||||
"core": "teensy3",
|
||||
"extra_flags": "-D__MKL26Z64__",
|
||||
"extra_flags": "-D__MKL26Z64__ -larm_cortexM0l_math",
|
||||
"f_cpu": "48000000L",
|
||||
"ldscript": "mkl26z64.ld",
|
||||
"mcu": "mkl26z64",
|
||||
|
@ -29,7 +29,9 @@ 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"
|
||||
"-Wl,--defsym=__rtc_localtime=$UNIX_TIME",
|
||||
"-fsingle-precision-constant",
|
||||
"--specs=nano.specs"
|
||||
],
|
||||
CCFLAGS=[
|
||||
"-fsingle-precision-constant"
|
||||
|
Reference in New Issue
Block a user