Skip to content

Commit

Permalink
pio proper lib_ignore fix (#19742)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Oct 14, 2023
1 parent 2d1ee39 commit 2b398d3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 74 deletions.
17 changes: 17 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,23 @@ build_flags = ${esp_defaults.build_flags}
-DMIMETYPE_MINIMAL
; 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
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
Expand Down
33 changes: 0 additions & 33 deletions platformio_override_sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,6 @@ default_envs =
; *** Define serial port used for erasing/flashing/terminal
;upload_port = COM4
;monitor_port = COM4
lib_ignore =
Servo(esp8266)
ESP8266AVRISP
ESP8266LLMNR
ESP8266NetBIOS
ESP8266SSDP
SP8266WiFiMesh
Ethernet(esp8266)
GDBStub
TFT_Touch_Shield_V2
ESP8266HTTPUpdateServer
ESP8266WiFiMesh
EspSoftwareSerial
SPISlave
Hash
; Disable next if you want to use ArduinoOTA in Tasmota (default disabled)
ArduinoOTA
lib_extra_dirs = ${library.lib_extra_dirs}


Expand All @@ -110,22 +93,6 @@ lib_extra_dirs = ${library.lib_extra_dirs}
;upload_speed = 115200
monitor_speed = 115200
upload_resetmethod = ${common.upload_resetmethod}
lib_ignore =
HTTPUpdateServer
ESP RainMaker
WiFiProv
USB
SPIFFS
ESP32 Azure IoT Arduino
ESP32 Async UDP
ESP32 BLE Arduino
SimpleBLE
NetBIOS
ESP32
Preferences
BluetoothSerial
ArduinoOTA

lib_extra_dirs = ${library.lib_extra_dirs}
; *** ESP32 lib. ALWAYS needed for ESP32 !!!
lib/libesp32
Expand Down
10 changes: 10 additions & 0 deletions platformio_tasmota32.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ build_flags = ${esp_defaults.build_flags}
-Wl,--wrap=panicHandler -Wl,--wrap=xt_unhandled_exception
-Wl,--wrap=_Z11analogWritehi ; `analogWrite(unsigned char, int)` use the Tasmota version of analogWrite for deeper integration and phase control
-Wl,--wrap=ledcReadFreq ; `uint32_t ledcReadFreq(uint8_t chan)`
lib_ignore =
HTTPUpdateServer
USB
ESP32 Async UDP
esp-nimble-cpp
NetBIOS
Preferences
BluetoothSerial
ArduinoOTA
ESP32-HomeKit
extra_scripts = pre:pio-tools/add_c_flags.py
pre:pio-tools/get_flash_size.py
pre:pio-tools/gen-berry-structures.py
Expand Down
20 changes: 2 additions & 18 deletions platformio_tasmota_env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,9 @@ extra_scripts = ${esp_defaults.extra_scripts}
lib_ldf_mode = ${common.lib_ldf_mode}
lib_compat_mode = ${common.lib_compat_mode}
lib_extra_dirs = ${common.lib_extra_dirs}
lib_ignore =
Servo(esp8266)
ESP8266AVRISP
ESP8266LLMNR
ESP8266NetBIOS
ESP8266SSDP
SP8266WiFiMesh
Ethernet(esp8266)
GDBStub
TFT_Touch_Shield_V2
ESP8266HTTPUpdateServer
ESP8266WiFiMesh
EspSoftwareSerial
SPISlave
Hash
; Disable next if you want to use ArduinoOTA in Tasmota (default disabled)
ArduinoOTA
lib_ignore = ${esp82xx_defaults.lib_ignore}
; Add files to Filesystem for all env (global). Remove no files entry and add add a line with the file to include
custom_files_upload = no_files
custom_files_upload = no_files

[env:tasmota]
build_flags = ${env.build_flags} -DOTA_URL='"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz"'
Expand Down
27 changes: 4 additions & 23 deletions platformio_tasmota_env32.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,7 @@ lib_extra_dirs = ${common.lib_extra_dirs}
lib/libesp32
lib/libesp32_lvgl
lib/libesp32_audio
lib_ignore =
HTTPUpdateServer
ESP RainMaker
WiFiProv
USB
SPIFFS
ESP32 Azure IoT Arduino
ESP32 Async UDP
ESP32 BLE Arduino
esp-nimble-cpp
SimpleBLE
NetBIOS
ESP32
Preferences
BluetoothSerial
ArduinoOTA
ESP32-HomeKit
lib_ignore = ${esp32_defaults.lib_ignore}
; Add files to Filesystem for all env (global). Remove no files entry and add add a line with the file to include
; Example for adding the Partition Manager
; custom_files_upload =
Expand Down Expand Up @@ -178,12 +162,11 @@ build_flags = ${env:tasmota32_base.build_flags}
-DFIRMWARE_TASMOTA32
-DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"'
-fno-lto
lib_ignore =
lib_ignore = ${env:tasmota32_base.lib_ignore}
TTGO TWatch Library
Micro-RTSP
epdiy
mp3_shine_esp32
ESP32-HomeKit

[env:tasmota32c3cdc-safeboot]
extends = env:tasmota32c3-safeboot
Expand Down Expand Up @@ -215,12 +198,11 @@ board = esp32s2
build_flags = ${env:tasmota32_base.build_flags}
-DFIRMWARE_TASMOTA32
-DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32s2.bin"'
lib_ignore =
lib_ignore = ${env:tasmota32_base.lib_ignore}
TTGO TWatch Library
NimBLE-Arduino
Micro-RTSP
epdiy
ESP32-HomeKit

[env:tasmota32s2cdc-safeboot]
extends = env:tasmota32s2-safeboot
Expand Down Expand Up @@ -251,11 +233,10 @@ board = esp32s3-qio_qspi
build_flags = ${env:tasmota32_base.build_flags}
-DFIRMWARE_TASMOTA32
-DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32s3.bin"'
lib_ignore =
lib_ignore = ${env:tasmota32_base.lib_ignore}
TTGO TWatch Library
Micro-RTSP
epdiy
ESP32-HomeKit

[env:tasmota32s3cdc-safeboot]
extends = env:tasmota32s3-safeboot
Expand Down

0 comments on commit 2b398d3

Please sign in to comment.