From 86426b99e87881643883a3ba040dec1109d5801f Mon Sep 17 00:00:00 2001 From: valeros Date: Fri, 15 Feb 2019 22:09:53 +0200 Subject: [PATCH 1/3] Update mbed framework to 5.11.4 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 9a56bb6..49279fd 100644 --- a/platform.json +++ b/platform.json @@ -46,7 +46,7 @@ "framework-mbed": { "type": "framework", "optional": true, - "version": "~5.51103.190202" + "version": "~5.51104.190214" }, "tool-teensy": { "type": "uploader", From 787cac6b4870e5740726b08e53868d73c988f4d8 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 19 Feb 2019 20:27:54 +0200 Subject: [PATCH 2/3] Use "Smallest Code" optimization profile for Teensy LC and "Faster" for others --- builder/frameworks/arduino.py | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/builder/frameworks/arduino.py b/builder/frameworks/arduino.py index e65a4b3..f981924 100644 --- a/builder/frameworks/arduino.py +++ b/builder/frameworks/arduino.py @@ -212,20 +212,35 @@ CCFLAGS=["-g", "-Og", "-flto", "-fno-fat-lto-objects"], LINKFLAGS=["-g", "-Og", "-flto", "-fno-fat-lto-objects", "-fuse-linker-plugin"] ) - elif "TEENSY_OPT_SMALLEST_CODE" in env['CPPDEFINES']: - env.Append( - CCFLAGS=["-Os", "--specs=nano.specs"], - LINKFLAGS=["-Os", "--specs=nano.specs"] - ) elif "TEENSY_OPT_SMALLEST_CODE_LTO" in env['CPPDEFINES']: env.Append( CCFLAGS=["-Os", "--specs=nano.specs", "-flto", "-fno-fat-lto-objects"], LINKFLAGS=["-Os", "--specs=nano.specs", "-flto", "-fno-fat-lto-objects", "-fuse-linker-plugin"] ) - # TEENSY_OPT_FASTER + elif "TEENSY_OPT_FASTER" in env['CPPDEFINES']: + env.Append( + CCFLAGS=["-O2"], + LINKFLAGS=["-O2"] + ) + elif "TEENSY_OPT_SMALLEST_CODE" in env['CPPDEFINES']: + env.Append( + CCFLAGS=["-Os", "--specs=nano.specs"], + LINKFLAGS=["-Os", "--specs=nano.specs"] + ) + # default profiles else: - env.Append(CCFLAGS=["-O2"], LINKFLAGS=["-O2"]) - + # for Teensy LC => TEENSY_OPT_SMALLEST_CODE + if env.BoardConfig().id_ == "teensylc": + env.Append( + CCFLAGS=["-Os", "--specs=nano.specs"], + LINKFLAGS=["-Os", "--specs=nano.specs"] + ) + # for others => TEENSY_OPT_FASTER + else: + env.Append( + CCFLAGS=["-O2"], + LINKFLAGS=["-O2"] + ) env.Append( ASFLAGS=env.get("CCFLAGS", [])[:] From 47f2217c91705340312ecf4bf94e46057f1f6257 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 19 Feb 2019 20:28:31 +0200 Subject: [PATCH 3/3] Bump version to 4.1.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 49279fd..4e4b4b8 100644 --- a/platform.json +++ b/platform.json @@ -12,7 +12,7 @@ "type": "git", "url": "https://github.com/platformio/platform-teensy.git" }, - "version": "4.0.0", + "version": "4.1.0", "packageRepositories": [ "https://dl.bintray.com/platformio/dl-packages/manifest.json", "http://dl.platformio.org/packages/manifest.json"