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