Skip to content

Commit

Permalink
[Build] Reduce ESP8266 bin size disable LittleFS lib + OTA on 1M builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-er committed May 1, 2024
1 parent 7db47ab commit 7ab5bfc
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion platformio_esp82xx_envs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ lib_ignore = ESP32_ping
TinyWireM
I2C AXP192 Power management
EspSoftwareSerial
LittleFS
LittleFS(esp8266)
extra_scripts = pre:tools/pio/pre_custom_esp82xx.py
${extra_scripts_esp8266.extra_scripts}

Expand All @@ -45,6 +47,8 @@ lib_ignore = ESP32_ping
${no_ir.lib_ignore}
TinyWireM
I2C AXP192 Power management
LittleFS
LittleFS(esp8266)
extra_scripts = pre:tools/pio/pre_custom_esp82xx.py
${extra_scripts_esp8266.extra_scripts}

Expand Down Expand Up @@ -96,6 +100,7 @@ platform = ${ir.platform}
platform_packages = ${ir.platform_packages}
build_flags = ${ir.build_flags}
${esp8266_1M.build_flags}
-D NO_HTTP_UPDATER
-DPLUGIN_BUILD_CUSTOM
-DPLUGIN_BUILD_IR
lib_ignore = ESP32_ping
Expand Down Expand Up @@ -163,7 +168,13 @@ platform_packages = ${esp8266_custom_common_312.platform_packages}
build_flags = ${esp8266_custom_common_312.build_flags}
${esp8266_4M1M.build_flags}
-DPLUGIN_BUILD_CUSTOM
lib_ignore = ${esp8266_custom_common_312.lib_ignore}
lib_ignore = ESP32_ping
ESP32WebServer
ESP32HTTPUpdateServer
ServoESP32
${no_ir.lib_ignore}
TinyWireM
I2C AXP192 Power management
extra_scripts = ${esp8266_custom_common_312.extra_scripts}


Expand All @@ -174,6 +185,7 @@ platform = ${esp8266_custom_common_274.platform}
platform_packages = ${esp8266_custom_common_274.platform_packages}
build_flags = ${esp8266_custom_common_274.build_flags}
${esp8266_1M.build_flags}
-D NO_HTTP_UPDATER
-DPLUGIN_BUILD_CUSTOM
lib_ignore = ${esp8266_custom_common_274.lib_ignore}
ESP8266SdFat
Expand All @@ -191,6 +203,7 @@ platform = ${beta_platform.platform}
platform_packages = ${beta_platform.platform_packages}
build_flags = ${beta_platform.build_flags}
${esp8266_1M.build_flags}
-D NO_HTTP_UPDATER
-DPLUGIN_BUILD_CUSTOM
lib_ignore = ${esp8266_custom_common_312.lib_ignore}
ESP8266SdFat
Expand Down Expand Up @@ -225,6 +238,7 @@ platform = ${normal.platform}
platform_packages = ${normal.platform_packages}
build_flags = ${normal.build_flags}
${esp8266_1M.build_flags}
-D NO_HTTP_UPDATER
lib_ignore = ${normal.lib_ignore}


Expand All @@ -242,6 +256,7 @@ platform = ${normal.platform}
platform_packages = ${normal.platform_packages}
build_flags = ${normal.build_flags}
${esp8266_1M.build_flags}
-D NO_HTTP_UPDATER
-D FEATURE_ADC_VCC=1
lib_ignore = ${normal.lib_ignore}

Expand Down Expand Up @@ -746,6 +761,7 @@ platform = ${hard_esp82xx.platform}
platform_packages = ${hard_esp82xx.platform_packages}
build_flags = ${hard_esp82xx.build_flags}
${esp8266_1M.build_flags}
-D NO_HTTP_UPDATER
-D PLUGIN_SET_LC_TECH_RELAY_X2
lib_ignore = ${hard_esp82xx.lib_ignore}

Expand Down

0 comments on commit 7ab5bfc

Please sign in to comment.