Skip to content

Commit

Permalink
Update esp8266 platform to 2024.06.10 (#21668)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Jason2866 authored Jun 20, 2024
1 parent fe280fe commit 3537d18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
9 changes: 1 addition & 8 deletions pio-tools/strip-floats.py → pio-tools/strip-flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
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", "")
Expand All @@ -19,4 +12,4 @@

env.Replace(
LINKFLAGS=new_link_flags
)
)
14 changes: 4 additions & 10 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -121,27 +121,21 @@ 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)
ESP8266WiFiMesh
GDBStub
TFT_Touch_Shield_V2
ESP8266HTTPUpdateServer
ESP8266WiFiMesh
EspSoftwareSerial
SPISlave
Hash
; Disable next if you want to use ArduinoOTA in Tasmota (default disabled)
ArduinoOTA

[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
Expand Down

0 comments on commit 3537d18

Please sign in to comment.