From ca07a0f7af0db711ea79ae4974fa933972da70d4 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 25 Oct 2020 16:27:34 +0100 Subject: [PATCH 1/2] move lib disable in override --- platformio.ini | 14 -------------- platformio_override_sample.ini | 26 +++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/platformio.ini b/platformio.ini index ab505478a..a30214f4c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -59,7 +59,6 @@ build_cache_dir = .cache extra_configs = platformio_tasmota32.ini platformio_tasmota_env.ini platformio_tasmota_env32.ini - ;platformio_lib.ini platformio_override.ini default_envs = ${build_envs.default_envs} @@ -84,26 +83,13 @@ upload_port = COM5 extra_scripts = ${scripts_defaults.extra_scripts} lib_ldf_mode = chain+ shared_libdeps_dir = lib - -; *** Library disable / enable for variant Tasmota. Disable reduces compile time -; *** !!! Disabling needed libs will generate compile errors !!! -; *** The resulting firmware will NOT be different if you leave all libs enabled -; *** Disabling by putting a ";" in front of the lib name -; *** If you dont know what it is all about, do not change lib_extra_dirs = -; *** Only disabled for Tasmota minimal and Tasmota light. For all other variants needed! lib_basic -; **** I2C devices. Most sensors. Disable only if you dont have ANY I2C device enabled lib_i2c -; *** Displays. Disable if you dont have any Display activated lib_display -; *** Bear SSL and base64. Disable if you dont have SSL or TLS activated lib_ssl -; *** Audio needs a lot of time to compile. Mostly not used functions. Recommended to disable lib_audio -; *** RF 433 stuff (not RF Bridge). Recommended to disable lib_rf -; *** Mostly not used functions. Recommended to disable lib_div [scripts_defaults] diff --git a/platformio_override_sample.ini b/platformio_override_sample.ini index 9afe61b04..9bd30b21f 100644 --- a/platformio_override_sample.ini +++ b/platformio_override_sample.ini @@ -72,6 +72,31 @@ extra_scripts = ${scripts_defaults.extra_scripts} ; pio/strip-floats.py ; pio/http-uploader.py +lib_ldf_mode = chain+ +shared_libdeps_dir = lib + +; *** Library disable / enable for variant Tasmota. Disable reduces compile time +; *** !!! Disabling needed libs will generate compile errors !!! +; *** The resulting firmware will NOT be different if you leave all libs enabled +; *** Disabling by putting a ";" in front of the lib name +; *** If you dont know what it is all about, do not change +lib_extra_dirs = +; *** Only disabled for Tasmota minimal and Tasmota light. For all other variants needed! + lib_basic +; **** I2C devices. Most sensors. Disable only if you dont have ANY I2C device enabled + lib_i2c +; *** Displays. Disable if you dont have any Display activated + lib_display +; *** Bear SSL and base64. Disable if you dont have SSL or TLS activated + lib_ssl +; *** Audio needs a lot of time to compile. Mostly not used functions. Recommended to disable +; lib_audio +; *** RF 433 stuff (not RF Bridge). Recommended to disable + lib_rf +; *** Mostly not used functions. Recommended to disable +; lib_div + + [core] ; Activate only (one set) if you want to override the standard core defined in platformio.ini !!! @@ -156,7 +181,6 @@ build_flags = ${esp82xx_defaults.build_flags} ; -fexceptions ; -lstdc++-exc - [core32] ; Activate Stage Core32 by removing ";" in next line, if you want to override the standard core32 ;platform_packages = ${core32_stage.platform_packages} From 949faffd0d097072908132fc982314a6393b7d05 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 25 Oct 2020 16:42:07 +0100 Subject: [PATCH 2/2] Delete platformio_lib.ini --- platformio_lib.ini | 284 --------------------------------------------- 1 file changed, 284 deletions(-) delete mode 100644 platformio_lib.ini diff --git a/platformio_lib.ini b/platformio_lib.ini deleted file mode 100644 index 7c4ed544b..000000000 --- a/platformio_lib.ini +++ /dev/null @@ -1,284 +0,0 @@ -; ******************************************************** -; *** PlatformIO Configuration for Library DISABLING *** -; ******************************************************** -; -; -; *********************************************************************** -; *** Config Setup for disabling for the different Tasmota variants *** -; *********************************************************************** - -[lib_Tasmota] -; Disable not needed libs to build TASMOTA, IR-CUSTOM and all language variants -lib_ignore = - ${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} -; ${lib_ESP_ir.lib_ignore} -; ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - -[lib_minimal] -; Disable not needed libs to build TASMOTA-minimal -lib_ignore = - ${lib_all_EP8266.lib_ignore} - -[lib_lite] -; Disable not needed libs to build TASMOTA-lite -lib_ignore = - ${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} - ${lib_ESP_ir.lib_ignore} - ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - -[lib_knx] -; Disable not needed libs to build TASMOTA-KNX -lib_ignore = - ;${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} -; ${lib_ESP_ir.lib_ignore} -; ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - -[lib_sensors] -; Disable not needed libs to build TASMOTA-sensors -lib_ignore = - ${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} -; ${lib_i2c_sensor.lib_ignore} -; ${lib_sensor.lib_ignore} -; ${lib_rf.lib_ignore} -; ${lib_ESP_ir.lib_ignore} -; ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - -[lib_display] -; Disable not needed libs to build TASMOTA-display -lib_ignore = - ${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} -; ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} -; ${lib_ESP_ir.lib_ignore} -; ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - -[lib_ir] -; Disable not needed libs to build TASMOTA-IR -lib_ignore = - ${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} -; ${lib_ESP_ir.lib_ignore} - ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - - -[lib_zbbridge] -; Disable not needed libs to build TASMOTA-ZbBridge -lib_ignore = - ${lib_ESP_knx.lib_ignore} - ${lib_EP8266.lib_ignore} -; ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} - ${lib_ESP_ir.lib_ignore} - ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - - - - -; ****************************** -; *** Library groups setup *** -; ****************************** - -[lib_EP8266_default] -lib_ignore = - Servo(esp8266) - ESP8266AVRISP - ESP8266LLMNR - ESP8266NetBIOS - ESP8266SSDP - SP8266WiFiMesh - Ethernet(esp8266) - GDBStub - TFT_Touch_Shield_V2 - ESP8266HTTPUpdateServer - ESP8266WiFiMesh - EspSoftwareSerial - SPISlave - Hash - -[lib_EP8266] -lib_ignore = - ${lib_EP8266_default.lib_ignore} - LittleFS(esp8266) - -[lib_all_EP8266] -lib_ignore = - ${lib_EP8266.lib_ignore} - ${lib_knx.lib_ignore} - ${lib_custom.lib_ignore} - ${lib_SSL.lib_ignore} - ${lib_ESP_display.lib_ignore} - ${lib_i2c_sensor.lib_ignore} - ${lib_sensor.lib_ignore} - ${lib_rf.lib_ignore} - ${lib_ESP_ir.lib_ignore} - ${lib_light.lib_ignore} - ${lib_audio.lib_ignore} - ${lib_serial.lib_ignore} - ${lib_other.lib_ignore} - ${lib_SPI.lib_ignore} - -[lib_custom] -lib_ignore = - NTP Library - base64 - Unishox Compressor Decompressor highly customized and optimized for ESP8266 and Tasmota - UdpListener - C2Programmer - TasmotaSerial - TasmotaModbus - -[lib_ESP_knx] -lib_ignore = - ;ESP KNX IP Library - -[lib_SSL] -lib_ignore = - BearSSL - -[lib_ESP_display] -lib_ignore = - LinkedList - Adafruit GFX Library - Arduino ST7789 Library - Adafruit ILI9341 - ILI9488 - RA8876 - Adafruit LED Backpack Library - Waveshare esp 2.9 inch e-paper display driver - LiquidCrystal_I2C - Adafruit SH1106-gemu-1.0 - Adafruit SSD1306 - SSD3115 - -[lib_i2c_sensor] -lib_ignore = - LinkedList - Adafruit BusIO - I2Cdevlib-Core - Adafruit CCS811 Library - Adafruit MAX31865 library - Adafruit MCP9808 Library - Adafruit SGP30 Sensor - Adafruit TSL2591 - Joba Tsl2561 Library - Joba_Tsl2561 - Adafruit VEML7700 Library - MPU6050 I2C - LinkedList - LOLIN_HP303B - Grove - Multichannel Gas Sensor - Mutichannel_Gas_Sensor - OneWire - VL53L0X - VL53L1X - MLX90640 - FrogmoreScd30 - BME680 - FT5206_Library - HPMA115S0 Arduino Library - -[lib_sensor] -lib_ignore = - NewPing - -[lib_rf] -lib_ignore = - rc-switch - RF24 - KeeloqLib - -[lib_ESP_ir] -lib_ignore = - IRremoteESP8266 - -[lib_light] -lib_ignore = - NeoPixelBus - -[lib_audio] -lib_ignore = - ESP8266Audio - ESP8266SAM - -[lib_serial] -lib_ignore = - LibTeleinfo - -[lib_other] -lib_ignore = - OpenTherm Library - A4988_Stepper - EEPROM 24C128 - -[lib_SPI] -lib_ignore = - cc1101 - EEPROM 24C128