Reduce Boards manifests

## Description:

by using the 4MB default safeboot partition scheme layout. Tasmota will increase the FS partition with
the new Autoresize feature introduced with PR #16838 #16842

So it is possible to reduce the boards mainifest since it is no more needed to have different ones for boards with different flash sizes. Added generic S3 Flash / PSRAM boards variants. Removed all S3 boards specific variants. Configuration is done via Autoconfig. For a few special use cases maybe an [env] needs to be defined. Examples for are in file `platformio_tasmota_cenv_sample.ini`

@s-hadinger @arendst @staars please test. Since it is a major change how the firmwares are build, there is maybe something i overlooked. So i do not check all below.

## Checklist:
  - [x] The pull request is done against the latest development branch
  - [x] 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.4.9
  - [ ] The code change is tested and works with Tasmota core ESP32 V.2.0.5
  - [x] I accept the [CLA](https://github.com/arendst/Tasmota/blob/development/CONTRIBUTING.md#contributor-license-agreement-cla).

_NOTE: The code change must pass CI tests. **Your PR cannot be merged unless tests pass**_
This commit is contained in:
Jason2866
2022-10-17 16:04:11 +02:00
committed by GitHub
parent f998a457db
commit 724b0342c7
26 changed files with 110 additions and 556 deletions
+27 -10
View File
@@ -14,12 +14,29 @@ build_flags = ${env:tasmota32_base.build_flags}
[env:tasmota32s3-file]
extends = env:tasmota32_base
board = esp32s3
board = esp32s3-qio_qspi
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
build_flags = ${env:tasmota32_base.build_flags} -D FIRMWARE_TASMOTA32
; example for custom file upload in Tasmota Filesystem
; custom_files_upload = ${env:tasmota32_base.custom_files_upload}
; tasmota/berry/modules/Partition_wizard.tapp
; https://github.com/tasmota/autoconf/raw/main/esp32s3/DevKitC-1.autoconf
; !!! Real flash size needed, avoid autoresize since it is formating FS !!!
board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608
; Without autoresize a partition scheme is needed which does fit to flash size
board_build.partitions = partitions/esp32_partition_app2944k_fs2M.csv
; Dont use safeboot, not used in this partition scheme -> an empty entry needed to overwrite the default setting
board_upload.arduino.flash_extra_images =
; Example for custom file upload in Tasmota Filesystem
custom_files_upload = ${env:tasmota32_base.custom_files_upload}
tasmota/berry/modules/Partition_wizard.tapp
https://github.com/tasmota/autoconf/raw/main/esp32s3/DevKitC-1.autoconf
[env:tasmota32s3-qio_opi-all]
extends = env:tasmota32_base
board = esp32s3-qio_opi
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
build_flags = ${env:tasmota32_base.build_flags} -DUSE_WEBCAM -DUSE_BERRY_ULP -DFIRMWARE_LVGL -DUSE_LVGL_OPENHASP
[env:tasmota32c3-bluetooth]
extends = env:tasmota32c3
@@ -64,7 +81,7 @@ lib_ignore = ESP8266Audio
TTGO TWatch Library
Micro-RTSP
epdiy
esp32-camera
esp32-camera
[env:tasmota32s3-mi32-homebridge]
extends = env:tasmota32s3
@@ -108,7 +125,7 @@ monitor_filters = esp32_exception_decoder
[env:tasmota32-ocd]
build_type = debug
extends = env:tasmota32_base
board = esp32_4M
board = esp32
debug_tool = esp-prog
upload_protocol = esp-prog
debug_init_break = tbreak setup
@@ -119,7 +136,7 @@ monitor_filters = esp32_exception_decoder
[env:tasmota32solo1-ocd]
build_type = debug
extends = env:tasmota32solo1
board = esp32_solo1_4M
board = esp32_solo1
debug_tool = esp-prog
upload_protocol = esp-prog
debug_init_break = tbreak setup
@@ -143,7 +160,7 @@ monitor_filters = esp32_exception_decoder
[env:tasmota32s3cdc-ocd]
build_type = debug
extends = env:tasmota32s3
board = esp32s3cdc
board = esp32s3cdc-qio_opi
debug_tool = esp-builtin
upload_protocol = esp-builtin
debug_init_break = tbreak setup
@@ -154,7 +171,7 @@ monitor_filters = esp32_exception_decoder
[env:tasmota32c3cdc-ocd]
build_type = debug
extends = env:tasmota32c3
board = esp32c3cdc
board = esp32c3cdc-qio_opi
debug_tool = esp-builtin
upload_protocol = esp-builtin
debug_init_break = tbreak setup