build optimizations

This commit is contained in:
proddy
2019-11-04 19:16:15 +01:00
parent 9f146768b4
commit 6b1e0d496c
5 changed files with 66 additions and 46 deletions

View File

@@ -13,8 +13,7 @@ default_envs = debug
; -DFORCE_SERIAL
custom_flags =
;general_flags = -DNO_GLOBAL_EEPROM -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH -DBEARSSL_SSL_BASIC
general_flags = -DNO_GLOBAL_EEPROM
general_flags = -fno-exceptions -lstdc++ -DNO_GLOBAL_EEPROM -O2 -DBEARSSL_SSL_BASIC -DVTABLES_IN_FLASH -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
[env]
framework = arduino
@@ -45,27 +44,32 @@ monitor_speed = 115200
[env:travis]
board = esp12e
build_flags = ${common.general_flags}
extra_scripts = scripts/main_script.py
[env:esp12e]
board = esp12e
build_flags = ${common.general_flags}
extra_scripts = scripts/main_script.py
[env:d1_mini]
board = d1_mini
build_flags = ${common.general_flags}
extra_scripts = scripts/main_script.py
[env:nodemcuv2]
board = nodemcuv2
build_flags = ${common.general_flags}
extra_scripts = scripts/main_script.py
[env:nodemcu]
board = nodemcu
build_flags = ${common.general_flags}
extra_scripts = scripts/main_script.py
[env:debug]
board = d1_mini
build_type = debug
build_flags = ${common.general_flags} ${common.custom_flags}
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
extra_scripts =
pre:scripts/pre_script.py
scripts/main_script.py