mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
[Build] Reduce build size by not including ESP8266mDNS lib at all
This commit is contained in:
@@ -232,6 +232,7 @@ build_flags = -DBUILD_NO_DEBUG
|
||||
-DFEATURE_SD=0
|
||||
-Os
|
||||
-s
|
||||
-DNO_GLOBAL_MDNS
|
||||
${esp82xx_common.build_flags}
|
||||
extra_scripts = ${esp82xx_common.extra_scripts}
|
||||
lib_ignore = ${esp82xx_common.lib_ignore}
|
||||
@@ -250,24 +251,19 @@ extends = esp82xx_1M
|
||||
board = esp8266_1M128k
|
||||
build_flags = ${esp82xx_1M.build_flags}
|
||||
extra_scripts = ${esp82xx_1M.extra_scripts}
|
||||
lib_ignore = ${esp82xx_1M.lib_ignore}
|
||||
|
||||
|
||||
;;; Minimal ***********************************************************
|
||||
; Minimal build size for OTA ;
|
||||
; *********************************************************************
|
||||
[esp82xx_1M_OTA]
|
||||
[esp8266_1M_OTA]
|
||||
extends = esp82xx_1M
|
||||
board = esp8266_1M128k_OTA
|
||||
build_flags = ${esp82xx_1M.build_flags}
|
||||
-DPLUGIN_BUILD_MINIMAL_OTA
|
||||
-DDISABLE_SC16IS752_Serial
|
||||
-DFEATURE_GPIO_USE_ESP8266_WAVEFORM=0
|
||||
|
||||
|
||||
|
||||
[esp8266_1M_OTA]
|
||||
extends = esp82xx_1M_OTA
|
||||
board = esp8266_1M128k_OTA
|
||||
build_flags = ${esp82xx_1M_OTA.build_flags}
|
||||
lib_ignore = ${esp82xx_1M.lib_ignore}
|
||||
; Adding the libs below to the lib_ignore will even increase build size
|
||||
; Adafruit TCS34725
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
; Use either the plugins defined in ;
|
||||
; pre_custom_esp82xx.py or Custom.h ;
|
||||
; *********************************************************************
|
||||
[limited_build_size]
|
||||
build_flags = -DNO_GLOBAL_MDNS
|
||||
|
||||
|
||||
|
||||
[hard_esp82xx]
|
||||
platform = ${regular_platform.platform}
|
||||
@@ -513,6 +517,7 @@ platform_packages = ${ir.platform_packages}
|
||||
lib_ignore = ${ir.lib_ignore}
|
||||
build_flags = ${normal_ir_extended_no_rx.build_flags}
|
||||
${esp8266_4M2M.build_flags}
|
||||
${limited_build_size.build_flags}
|
||||
-DLIMIT_BUILD_SIZE
|
||||
extra_scripts = ${esp8266_4M2M.extra_scripts}
|
||||
pre:tools/pio/ir_build_check.py
|
||||
@@ -530,6 +535,7 @@ platform = ${collection.platform}
|
||||
platform_packages = ${collection.platform_packages}
|
||||
build_flags = ${collection.build_flags}
|
||||
${esp8266_4M1M.build_flags}
|
||||
${limited_build_size.build_flags}
|
||||
|
||||
[collection_alt_wifi_ESP8266_4M1M]
|
||||
extends = esp8266_4M1M
|
||||
|
||||
Reference in New Issue
Block a user