tidy up, added custom_flags as optional build flags

This commit is contained in:
Paul
2019-10-09 12:33:56 +02:00
parent 8920bea181
commit 707ce8a4f6

View File

@@ -9,19 +9,21 @@ default_envs = debug
;default_envs = tests
[common]
; build options are:
; custom build options are:
; -DMYESP_TIMESTAMP
; -DTESTS
; -DCRASH
; -DFORCE_SERIAL
; -DLOGICANALYZER
custom_flags =
;general_flags = -g -w -DNO_GLOBAL_EEPROM -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH -DBEARSSL_SSL_BASIC
general_flags = -g -w -DNO_GLOBAL_EEPROM
;general_flags =
[env]
;board = esp12e
; board = esp12e
; board = nodemcu
; board = nodemcu2
board = d1_mini
framework = arduino
platform = espressif8266
@@ -47,35 +49,35 @@ monitor_speed = 115200
;upload_protocol = espota
;upload_port = ems-esp.local
[env:clean]
extra_scripts = pre:scripts/clean_fw.py
[env:buildweb]
extra_scripts = pre:scripts/buildweb.py
[env:tests]
build_type = debug
build_flags = ${common.general_flags} -DTESTS
build_flags = ${common.general_flags} ${common.custom_flags} -DTESTS
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:crash]
build_type = debug
build_flags = ${common.general_flags} -DNO_GLOBAL_EEPROM -DCRASH
build_flags = ${common.general_flags} ${common.custom_flags} -DCRASH
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:debug]
build_type = debug
build_flags = ${common.general_flags}
build_flags = ${common.general_flags} ${common.custom_flags}
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:clean]
extra_scripts = pre:scripts/clean_fw.py
[env:release]
build_flags = ${common.general_flags} -DNO_GLOBAL_EEPROM
build_flags = ${common.general_flags} ${common.custom_flags}
extra_scripts = pre:scripts/rename_fw.py
[env:checkcode]