From dfa345f78cddb2bd00a181dced5cc01cfa3d3be5 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 7 May 2021 17:50:13 +0200 Subject: [PATCH 1/3] Remove core32 stage since not working anymore. Stage is now based on IDF 4.4 and in stage alpha. Experimental Esp32 core based on IDF 4.4 is in Platformio cenv. --- platformio_override_sample.ini | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/platformio_override_sample.ini b/platformio_override_sample.ini index b9a9a7654..9b2c3e365 100644 --- a/platformio_override_sample.ini +++ b/platformio_override_sample.ini @@ -127,19 +127,6 @@ lib_extra_dirs = ${library.lib_extra_dirs} ; *** uncomment the following line if you dont use Epaper driver epidy in your Tasmota32 build. Reduces compile time lib/libesp32_epdiy -[core32] -; Activate Stage Core32 by removing ";" in next 3 lines, if you want to override the standard core32 -;platform_packages = ${core32_stage.platform_packages} -;build_unflags = ${core32_stage.build_unflags} -;build_flags = ${core32_stage.build_flags} - -[core32_stage] -platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git - platformio/tool-mklittlefs @ ~1.203.200522 -build_unflags = ${esp32_defaults.build_unflags} -build_flags = ${esp32_defaults.build_flags} - -DESP32_STAGE=true - [library] shared_libdeps_dir = lib ; *** Library disable / enable for variant Tasmota(32). Disable reduces compile time From 6b3adb3031ad918b411df9a8c5317dafef8e6771 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 7 May 2021 18:08:40 +0200 Subject: [PATCH 2/3] Remove esp8266 core variants better placed in platformio cenv --- platformio_override_sample.ini | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/platformio_override_sample.ini b/platformio_override_sample.ini index 9b2c3e365..ba0e83e94 100644 --- a/platformio_override_sample.ini +++ b/platformio_override_sample.ini @@ -78,39 +78,6 @@ extra_scripts = ${scripts_defaults.extra_scripts} lib_extra_dirs = ${library.lib_extra_dirs} -[core] -; Activate only (one set) if you want to override the standard core defined in platformio.ini !!! - -;platform_packages = ${tasmota_stage.platform_packages} -;build_unflags = ${tasmota_stage.build_unflags} -;build_flags = ${tasmota_stage.build_flags} - -;platform_packages = ${core_stage.platform_packages} -;build_unflags = ${core_stage.build_unflags} -;build_flags = ${core_stage.build_flags} - - -[tasmota_stage] -; *** Esp8266 core for Arduino version Tasmota stage. Backport for PWM selection -platform_packages = tasmota/framework-arduinoespressif8266 @ ~2.7.4 -build_unflags = ${esp_defaults.build_unflags} -build_flags = ${esp82xx_defaults.build_flags} -; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM - ;-DWAVEFORM_LOCKED_PHASE - -DWAVEFORM_LOCKED_PWM - -[core_stage] -; *** Esp8266 core for Arduino version stage -platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git -; *** Use Xtensa build chain 10.2. GNU23 from https://github.com/earlephilhower/esp-quick-toolchain - tasmota/toolchain-xtensa @ 5.100200.210303 -build_unflags = ${esp_defaults.build_unflags} - -Wswitch-unreachable -build_flags = ${esp82xx_defaults.build_flags} -; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM - ;-DWAVEFORM_LOCKED_PHASE - -DWAVEFORM_LOCKED_PWM - -Wno-switch-unreachable [common32] platform_packages = ${core32.platform_packages} From 24d4d061331001b092ae514a6d80787db7d1b25f Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 7 May 2021 18:13:55 +0200 Subject: [PATCH 3/3] esp8266 stage now in cenv --- platformio_tasmota_cenv_sample.ini | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index 6570d9e36..e6cca8334 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -4,7 +4,27 @@ build_flags = ${common.build_flags} -DUSE_ZIGBEE -DUSE_UFILESYS -; *** EXPERIMENTAL Tasmota version for ESP32-S2 +[core] +; Activate (by removing the ";" in the next lines) if you want to override the standard core defined in platformio.ini !!! +;platform_packages = ${core_stage.platform_packages} +;build_unflags = ${core_stage.build_unflags} +;build_flags = ${core_stage.build_flags} + +[core_stage] +; *** Esp8266 core for Arduino version stage +platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git +; *** Use Xtensa build chain 10.2. GNU23 from https://github.com/earlephilhower/esp-quick-toolchain + tasmota/toolchain-xtensa @ 5.100200.210303 +build_unflags = ${esp_defaults.build_unflags} + -Wswitch-unreachable +build_flags = ${esp82xx_defaults.build_flags} +; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM + ;-DWAVEFORM_LOCKED_PHASE + -DWAVEFORM_LOCKED_PWM + -Wno-switch-unreachable + + +;*** EXPERIMENTAL Tasmota version for ESP32-S2 [env:tasmota32s2] extends = env:tasmota32_base board = esp32s2