-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Remove old V3 IDF #4836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove old V3 IDF #4836
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| # ------------------------------------------------------------------------------ | ||
|
|
||
| # CI/release binaries | ||
| default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_160, esp8266_2m_160, esp01_1m_full_160, nodemcuv2_compat, esp8266_2m_compat, esp01_1m_full_compat, esp32dev, esp32dev_V4, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_16MB_opi, esp32s3dev_8MB_opi, esp32s3_4M_qspi, esp32_wrover, usermods | ||
| default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_160, esp8266_2m_160, esp01_1m_full_160, nodemcuv2_compat, esp8266_2m_compat, esp01_1m_full_compat, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_16MB_opi, esp32s3dev_8MB_opi, esp32s3_4M_qspi, esp32_wrover, usermods | ||
|
|
||
| src_dir = ./wled00 | ||
| data_dir = ./wled00/data | ||
|
|
@@ -243,37 +243,27 @@ build_flags = | |
| -D WLED_ENABLE_GIF | ||
|
|
||
| [esp32] | ||
| #platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip | ||
| platform = [email protected] | ||
| platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4 | ||
| platform = ${esp32_idf_V4.platform} | ||
| platform_packages = | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I saw a PR about adding these as they are missing for s3 etc. So are the packages required? Should they be added to the base definitions?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My (limited) understanding is that you only need to define if you are overriding the default tools for the platform |
||
| build_unflags = ${common.build_unflags} | ||
| build_flags = -g | ||
| -DARDUINO_ARCH_ESP32 | ||
| #-DCONFIG_LITTLEFS_FOR_IDF_3_2 | ||
| #use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x | ||
| -D LOROL_LITTLEFS | ||
| ; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3 | ||
| ${esp32_all_variants.build_flags} | ||
| build_flags = ${esp32_idf_V4.build_flags} | ||
| lib_deps = ${esp32_idf_V4.lib_deps} | ||
|
|
||
| tiny_partitions = tools/WLED_ESP32_2MB_noOTA.csv | ||
| default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv | ||
| extended_partitions = tools/WLED_ESP32_4MB_700k_FS.csv | ||
| big_partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB filesystem, coredump support | ||
| large_partitions = tools/WLED_ESP32_8MB.csv | ||
| extreme_partitions = tools/WLED_ESP32_16MB_9MB_FS.csv | ||
| lib_deps = | ||
| https://github.com/lorol/LITTLEFS.git | ||
| ${esp32_all_variants.lib_deps} | ||
| ${env.lib_deps} | ||
|
|
||
| board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs | ||
| # additional build flags for audioreactive - must be applied globally | ||
| AR_build_flags = ;; -fsingle-precision-constant ;; forces ArduinoFFT to use float math (2x faster) | ||
| AR_lib_deps = ;; for pre-usermod-library platformio_override compatibility | ||
|
|
||
|
|
||
| [esp32_idf_V4] | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If all are V4, do we need to state so? I.e. remove this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I wasn't sure if it made more sense to update the regular esp32 block or move things over. When considering users with their own forks or at least platformio_override I thought it might possibly be best to use explicit V4 params in our example so it was clearer what was being used, but then for backwards compatibility set the default esp32 to reference V4 I'm happy to hear other suggestions One other thing to bare in mind is what happens if we start adding some V5 builds into the mix too
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thats a good point. in that case keep the V4. Does it need to be added to S2/S3/C3 envs?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, c3, s2 and s3 all use platform = ${esp32_idf_V4.platform} |
||
| ;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5 | ||
| ;; very similar to the normal ESP32 flags, but omitting Lorol LittleFS, as littlefs is included in the new framework already. | ||
| ;; build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5 | ||
| ;; | ||
| ;; please note that you can NOT update existing ESP32 installs with a "V4" build. Also updating by OTA will not work properly. | ||
| ;; You need to completely erase your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio. | ||
|
|
@@ -290,7 +280,6 @@ lib_deps = | |
| ${esp32_all_variants.lib_deps} | ||
| https://github.com/someweisguy/esp_dmx.git#47db25d | ||
| ${env.lib_deps} | ||
| board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs | ||
|
|
||
| [esp32s2] | ||
| ;; generic definitions for all ESP32-S2 boards | ||
|
|
@@ -438,17 +427,6 @@ custom_usermods = audioreactive | |
|
|
||
| [env:esp32dev] | ||
| board = esp32dev | ||
| platform = ${esp32.platform} | ||
| platform_packages = ${esp32.platform_packages} | ||
| custom_usermods = audioreactive | ||
| build_unflags = ${common.build_unflags} | ||
| build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32\" #-D WLED_DISABLE_BROWNOUT_DET | ||
| lib_deps = ${esp32.lib_deps} | ||
| monitor_filters = esp32_exception_decoder | ||
| board_build.partitions = ${esp32.default_partitions} | ||
|
|
||
| [env:esp32dev_V4] | ||
| board = esp32dev | ||
| platform = ${esp32_idf_V4.platform} | ||
| build_unflags = ${common.build_unflags} | ||
| custom_usermods = audioreactive | ||
|
|
@@ -487,34 +465,20 @@ board_upload.maximum_size = 16777216 | |
| board_build.f_flash = 80000000L | ||
| board_build.flash_mode = dio | ||
|
|
||
| ;[env:esp32dev_audioreactive] | ||
| ;board = esp32dev | ||
| ;platform = ${esp32.platform} | ||
| ;platform_packages = ${esp32.platform_packages} | ||
| ;custom_usermods = audioreactive | ||
| ;build_unflags = ${common.build_unflags} | ||
| ;build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32_audioreactive\" #-D WLED_DISABLE_BROWNOUT_DET | ||
| ;lib_deps = ${esp32.lib_deps} | ||
| ;monitor_filters = esp32_exception_decoder | ||
| ;board_build.partitions = ${esp32.default_partitions} | ||
| ;; board_build.f_flash = 80000000L | ||
| ;; board_build.flash_mode = dio | ||
|
|
||
| [env:esp32_eth] | ||
| board = esp32-poe | ||
| platform = ${esp32.platform} | ||
| platform_packages = ${esp32.platform_packages} | ||
| platform = ${esp32_idf_V4.platform} | ||
| upload_speed = 921600 | ||
| custom_usermods = audioreactive | ||
| build_unflags = ${common.build_unflags} | ||
| build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32_Ethernet\" -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1 | ||
| ; -D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only | ||
| lib_deps = ${esp32.lib_deps} | ||
| board_build.partitions = ${esp32.default_partitions} | ||
| board_build.flash_mode = dio | ||
|
|
||
| [env:esp32_wrover] | ||
| extends = esp32_idf_V4 | ||
| platform = ${esp32_idf_V4.platform} | ||
| board = ttgo-t7-v14-mini32 | ||
| board_build.f_flash = 80000000L | ||
| board_build.flash_mode = qio | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Confirm removal of V3-specific envs and default artifacts impact
"default_envs" no longer includes any V3/legacy ESP32 envs (e.g., esp32dev_V4). Given that esp32dev now targets V4, ensure CI/release pipelines and artifact naming don’t rely on the old V4-suffixed env. Adjust downstream packaging/docs if needed.
Run this quick check to spot any references to deprecated V3/V4-suffixed env names in the repo:
🏁 Script executed:
Length of output: 89
🏁 Script executed:
Length of output: 550
🏁 Script executed:
Length of output: 22717
🏁 Script executed:
Length of output: 25629
Action: Update sample overrides / usermods that still reference esp32dev_V4
Verified: platformio.ini default_envs no longer contains V4-suffixed ESP32 envs (default_envs uses "esp32dev"). CI builds read default_envs via pio project config and name artifacts as firmware-${{ matrix.environment }} — so artifact names will follow the new env names. However several sample/override and usermod files still reference esp32dev_V4 (or esp32dev_V4_dio80) and should be updated or have compatibility envs added.
Files/locations to fix:
Recommendation (choose one):