From 3537d184838cd9fcdb7761c862c60e2467ed8c6d Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 20 Jun 2024 23:23:53 +0200 Subject: [PATCH] Update esp8266 platform to 2024.06.10 (#21668) * Update esp8266 platform (2024.06.00) * Update strip-floats.py * Rename strip-floats.py to strip-flags.py * rename to `strip_flags.py` * esp8266 v2.7.7 --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- pio-tools/{strip-floats.py => strip-flags.py} | 9 +-------- platformio.ini | 16 +++++----------- 3 files changed, 7 insertions(+), 20 deletions(-) rename pio-tools/{strip-floats.py => strip-flags.py} (71%) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 167baad82..fb378f095 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,7 +6,7 @@ - [ ] The pull request is done against the latest development branch - [ ] Only relevant files were touched - [ ] Only one feature/fix was added per PR and the code change compiles without warnings - - [ ] The code change is tested and works with Tasmota core ESP8266 V.2.7.6 + - [ ] The code change is tested and works with Tasmota core ESP8266 V.2.7.7 - [ ] The code change is tested and works with Tasmota core ESP32 V.3.0.1 - [ ] I accept the [CLA](https://github.com/arendst/Tasmota/blob/development/CONTRIBUTING.md#contributor-license-agreement-cla). diff --git a/pio-tools/strip-floats.py b/pio-tools/strip-flags.py similarity index 71% rename from pio-tools/strip-floats.py rename to pio-tools/strip-flags.py index 4b49321fb..714e84a0f 100644 --- a/pio-tools/strip-floats.py +++ b/pio-tools/strip-flags.py @@ -3,13 +3,6 @@ Import('env') link_flags = " ".join(env['LINKFLAGS']) build_flags = " ".join(env['BUILD_FLAGS']) -# -# Dump build environment (for debug) -#print(env.Dump()) -# - -link_flags = link_flags.replace("-u _printf_float", "") -link_flags = link_flags.replace("-u _scanf_float", "") if "FIRMWARE_SAFEBOOT" in build_flags: # Crash Recorder is not included in safeboot firmware -> remove Linker wrap link_flags = link_flags.replace("-Wl,--wrap=panicHandler", "") @@ -19,4 +12,4 @@ new_link_flags = link_flags.split() env.Replace( LINKFLAGS=new_link_flags -) \ No newline at end of file +) diff --git a/platformio.ini b/platformio.ini index 0f21033da..0a56d36eb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -73,7 +73,7 @@ build_flags = extra_scripts = pre:pio-tools/pre_source_dir.py pre:pio-tools/set_partition_table.py pre:pio-tools/override_copy.py - post:pio-tools/strip-floats.py + post:pio-tools/strip-flags.py [esp_defaults] extra_scripts = post:pio-tools/name-firmware.py @@ -121,18 +121,12 @@ build_flags = ${esp_defaults.build_flags} ; uncomment the following to enable TLS with 4096 RSA certificates ;-DUSE_4K_RSA lib_ignore = - Servo(esp8266) - ESP8266AVRISP ESP8266LLMNR ESP8266NetBIOS ESP8266SSDP - SP8266WiFiMesh - Ethernet(esp8266) - GDBStub - TFT_Touch_Shield_V2 - ESP8266HTTPUpdateServer ESP8266WiFiMesh - EspSoftwareSerial + GDBStub + ESP8266HTTPUpdateServer SPISlave Hash ; Disable next if you want to use ArduinoOTA in Tasmota (default disabled) @@ -140,8 +134,8 @@ lib_ignore = [core] ; *** Esp8266 Tasmota modified Arduino core based on core 2.7.4. Added Backport for PWM selection -platform = https://github.com/tasmota/platform-espressif8266/releases/download/2024.01.01/platform-espressif8266.zip -platform_packages = tool-esptoolpy @ https://github.com/tasmota/esptool/releases/download/v4.7.2/esptool.zip +platform = https://github.com/tasmota/platform-espressif8266/releases/download/2024.06.00/platform-espressif8266.zip +platform_packages = build_unflags = ${esp_defaults.build_unflags} build_flags = ${esp82xx_defaults.build_flags} ; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM