mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Add the possibility to set global compile time settings (#20013)
This commit is contained in:
parent
52a0d5b365
commit
58f50045d9
@ -55,7 +55,6 @@ lib_extra_dirs =
|
|||||||
lib/lib_div
|
lib/lib_div
|
||||||
|
|
||||||
[tasmota]
|
[tasmota]
|
||||||
; *** Settings here do NOT affect firmware building ***
|
|
||||||
; Uncomment if you do NOT want gzipped map file(s)
|
; Uncomment if you do NOT want gzipped map file(s)
|
||||||
;disable_map_gz = 1
|
;disable_map_gz = 1
|
||||||
; Uncomment and specify a folder where to place the map file(s) (default set to folder build_output)
|
; Uncomment and specify a folder where to place the map file(s) (default set to folder build_output)
|
||||||
@ -66,6 +65,9 @@ lib_extra_dirs =
|
|||||||
;enable_esp32_gz = 1
|
;enable_esp32_gz = 1
|
||||||
; Uncomment and specify a folder where to place the firmware file(s) (default set to folder build_output)
|
; Uncomment and specify a folder where to place the firmware file(s) (default set to folder build_output)
|
||||||
;bin_dir = /tmp/bin_files/
|
;bin_dir = /tmp/bin_files/
|
||||||
|
; Global build flags (used for all env) can be overriden in "platformio_override.ini"
|
||||||
|
build_unflags =
|
||||||
|
build_flags =
|
||||||
|
|
||||||
[scripts_defaults]
|
[scripts_defaults]
|
||||||
extra_scripts = pre:pio-tools/pre_source_dir.py
|
extra_scripts = pre:pio-tools/pre_source_dir.py
|
||||||
@ -81,10 +83,12 @@ extra_scripts = post:pio-tools/name-firmware.py
|
|||||||
; post:pio-tools/obj-dump.py
|
; post:pio-tools/obj-dump.py
|
||||||
${scripts_defaults.extra_scripts}
|
${scripts_defaults.extra_scripts}
|
||||||
; *** remove undesired all warnings
|
; *** remove undesired all warnings
|
||||||
build_unflags = -Wall
|
build_unflags = ${tasmota.build_unflags}
|
||||||
|
-Wall
|
||||||
; -mtarget-align
|
; -mtarget-align
|
||||||
-Wdeprecated-declarations
|
-Wdeprecated-declarations
|
||||||
build_flags = -DCORE_DEBUG_LEVEL=0
|
build_flags = ${tasmota.build_flags}
|
||||||
|
-DCORE_DEBUG_LEVEL=0
|
||||||
-Wl,-Map,firmware.map
|
-Wl,-Map,firmware.map
|
||||||
-Wno-deprecated-declarations
|
-Wno-deprecated-declarations
|
||||||
; -mno-target-align
|
; -mno-target-align
|
||||||
|
@ -65,6 +65,11 @@ default_envs =
|
|||||||
; tasmota32c6-safeboot
|
; tasmota32c6-safeboot
|
||||||
; tasmota32c6cdc-safeboot
|
; tasmota32c6cdc-safeboot
|
||||||
|
|
||||||
|
[tasmota]
|
||||||
|
; *** Global build / unbuild compile time flags for ALL Tasmota / Tasmota32 [env]
|
||||||
|
;build_unflags =
|
||||||
|
build_flags = -DUSE_BERRY_PARTITION_WIZARD
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
;build_unflags = ${common.build_unflags}
|
;build_unflags = ${common.build_unflags}
|
||||||
; -Wswitch-unreachable
|
; -Wswitch-unreachable
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
[tasmota]
|
||||||
|
; Reset global build / unbuild compile time flags for ALL Tasmota / Tasmota32 [env]
|
||||||
|
; since custom env are designed to enable options individual
|
||||||
|
build_unflags =
|
||||||
|
build_flags =
|
||||||
|
|
||||||
[env:tasmota-rangeextender]
|
[env:tasmota-rangeextender]
|
||||||
build_flags = ${env.build_flags}
|
build_flags = ${env.build_flags}
|
||||||
-DFIRMWARE_RANGE_EXTENDER
|
-DFIRMWARE_RANGE_EXTENDER
|
||||||
|
@ -1141,7 +1141,7 @@
|
|||||||
// Note that only one cipher is enabled: ECDHE_RSA_WITH_AES_128_GCM_SHA256 which is very commonly used and highly secure
|
// Note that only one cipher is enabled: ECDHE_RSA_WITH_AES_128_GCM_SHA256 which is very commonly used and highly secure
|
||||||
#define USE_BERRY_WEBCLIENT_USERAGENT "TasmotaClient" // default user-agent used, can be changed with `wc.set_useragent()`
|
#define USE_BERRY_WEBCLIENT_USERAGENT "TasmotaClient" // default user-agent used, can be changed with `wc.set_useragent()`
|
||||||
#define USE_BERRY_WEBCLIENT_TIMEOUT 2000 // Default timeout in milliseconds
|
#define USE_BERRY_WEBCLIENT_TIMEOUT 2000 // Default timeout in milliseconds
|
||||||
#define USE_BERRY_PARTITION_WIZARD // Add a button to dynamically load the Partion Wizard from a bec file online (+1.3KB Flash)
|
//#define USE_BERRY_PARTITION_WIZARD // Add a button to dynamically load the Partion Wizard from a bec file online (+1.3KB Flash)
|
||||||
#define USE_BERRY_PARTITION_WIZARD_URL "http://ota.tasmota.com/tapp/partition_wizard.bec"
|
#define USE_BERRY_PARTITION_WIZARD_URL "http://ota.tasmota.com/tapp/partition_wizard.bec"
|
||||||
#define USE_BERRY_TCPSERVER // Enable TCP socket server (+0.6k)
|
#define USE_BERRY_TCPSERVER // Enable TCP socket server (+0.6k)
|
||||||
// #define USE_BERRY_ULP // Enable ULP (Ultra Low Power) support (+4.9k)
|
// #define USE_BERRY_ULP // Enable ULP (Ultra Low Power) support (+4.9k)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user