mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Merge pull request #8363 from Jason2866/patch-1
Enable user_config_override.h by default in Platformio.ini
This commit is contained in:
commit
2c140174fd
9
pio/override_copy.py
Normal file
9
pio/override_copy.py
Normal file
@ -0,0 +1,9 @@
|
||||
Import('env')
|
||||
import os
|
||||
import shutil
|
||||
|
||||
# copy tasmota/user_config_override_sample.h to tasmota/user_config_override.h
|
||||
if os.path.isfile("tasmota/user_config_override.h"):
|
||||
print ("*** use provided user_config_override.h as planned ***")
|
||||
else:
|
||||
shutil.copy("tasmota/user_config_override_sample.h", "tasmota/user_config_override.h")
|
@ -8,8 +8,10 @@
|
||||
; http://docs.platformio.org/en/stable/projectconf.html
|
||||
|
||||
[platformio]
|
||||
description = Provide ESP8266 based devices with Web, MQTT and OTA firmware
|
||||
src_dir = tasmota
|
||||
build_dir = .pioenvs
|
||||
workspace_dir = .pioenvs
|
||||
build_cache_dir = .cache
|
||||
extra_configs = platformio_tasmota_env.ini
|
||||
platformio_override.ini
|
||||
@ -64,11 +66,8 @@ platform_packages = ${core_active.platform_packages}
|
||||
build_flags = ${core_active.build_flags}
|
||||
|
||||
; *********************************************************************
|
||||
; *** Uncomment, by deleting ";" in line below, to use custom settings from file user_config_override.h
|
||||
; -DUSE_CONFIG_OVERRIDE
|
||||
;
|
||||
; *** alternatively can be done in: platformio_override.ini
|
||||
; *** See example: platformio_override_sample.ini
|
||||
; *** Use custom settings from file user_config_override.h
|
||||
-DUSE_CONFIG_OVERRIDE
|
||||
; *********************************************************************
|
||||
|
||||
; *** Fix espressif8266@1.7.0 induced undesired all warnings
|
||||
@ -86,6 +85,7 @@ extra_scripts = ${scripts_defaults.extra_scripts}
|
||||
extra_scripts = pio/strip-floats.py
|
||||
pio/name-firmware.py
|
||||
pio/gzip-firmware.py
|
||||
pio/override_copy.py
|
||||
|
||||
[esp_defaults]
|
||||
build_flags = -D_IR_ENABLE_DEFAULT_=false
|
||||
|
Loading…
x
Reference in New Issue
Block a user