minor update

- comment out build_unflags to allow optimization for size by default
- fix last commit build error
- format ini file to be more readable
This commit is contained in:
ZanzyTHEbar 2022-09-10 15:29:34 +01:00
parent daf44c7e71
commit 1b90d77f73

View File

@ -79,50 +79,33 @@ monitor_filters =
release_version = 0.0.1 ; increase this value every release build
build_flags =
!python tools\git_rev.py ; add git revision to build as preprocessor defines
-DOTA_SERVER_PORT=${wifi.OTAServerPort} ; Set the OTA server
-DENABLE_ADHOC=${wifi.enableADHOC} ;
-DADHOC_CHANNEL=${wifi.adhocChannel} ;
-DWIFI_CHANNEL=${wifi.channel} ;
'-DMDNS_TRACKER_NAME="OpenIrisTracker"' ; Set the tracker name - The string literal tells platformio to include the quatations in the string - making sure that the compiler sees the string as a cstring
'-DOTA_PASSWORD=${wifi.OTAPassword}' ; Set the OTA password
'-DWIFI_SSID=${wifi.ssid}' ; Set the users wifi network name
'-DWIFI_PASSWORD=${wifi.password}' ; Set the users wifi network password
'-DWIFI_AP_SSID=${wifi.ap_ssid}' ; Set the users wifi network name
'-DWIFI_AP_PASSWORD=${wifi.ap_password}' ; Set the users wifi network password
-DDEBUG_ESP_PORT=Serial ; set the debug port
-DCORE_DEBUG_LEVEL=4 ; set the debug level
-O2 ; optimize for speed
-DBOARD_HAS_PSRAM ; enable psram
-DASYNCWEBSERVER_REGEX ; enable regex in asyncwebserver
-mfix-esp32-psram-cache-issue ; fix for psram
build_unflags = -Os ; disable optimization for size
; board_build.partitions = min_spiffs.csv ; uncomment this to use the min_spiffs partition table, great for using OTA and SPIFFS
; board_build.partitions = huge_app.csv ; uncomment this to use the huge_app partition table, does not support OTA and only 1MB of SPIFFS
;build_unflags = -Os ; disable optimization for size
;board_build.partitions = min_spiffs.csv ; uncomment this to use the min_spiffs partition table, great for using OTA and SPIFFS
;board_build.partitions = huge_app.csv ; uncomment this to use the huge_app partition table, does not support OTA and only 1MB of SPIFFS
lib_ldf_mode = deep+
upload_speed = 921600
lib_deps =
esp32-camera
leftcoast/LC_baseTools@^1.5
; geeksville/Micro-RTSP @ ^0.1.6 ; Micro-RTSP library for streaming video over RTSP - will be implemented soon
https://github.com/ZanzyTHEbar/EasyPreferencesLibrary.git
https://github.com/me-no-dev/ESPAsyncWebServer.git
https://github.com/me-no-dev/AsyncTCP.git
@ -139,6 +122,13 @@ monitor_speed = ${common.monitor_speed}
monitor_rts = ${common.monitor_rts}
monitor_dtr = ${common.monitor_dtr}
monitor_filters = ${common.monitor_filters}
;build_unflags = ${common.build_unflags}
;board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
build_type = ${common.build_type}
extra_scripts = ${common.extra_scripts}
build_flags = ${common.build_flags}
; CAMERA PINOUT DEFINITIONS
@ -162,14 +152,6 @@ build_flags = ${common.build_flags}
-DDEBUG_MODE=1 ; Set the debug mode
-DVERSION=0
build_unflags = ${common.build_unflags}
board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
build_type = ${common.build_type}
extra_scripts = ${common.extra_scripts}
[env:esp32Cam_release]
platform = ${common.platform}
board = esp32cam
@ -177,18 +159,18 @@ framework = ${common.framework}
monitor_speed = ${common.monitor_speed}
monitor_rts = ${common.monitor_rts}
monitor_dtr = ${common.monitor_dtr}
build_flags =
${common.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DVERSION=${common.release_version}
build_unflags = ${common.build_unflags}
board_build.partitions = ${common.board_build.partitions}
;build_unflags = ${common.build_unflags}
;board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
build_type = release
extra_scripts = ${common.extra_scripts}
build_flags =
${common.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DVERSION=${common.release_version}
; Experimental OTA Environment - do not select unless you know what you are doing
[env:esp32Cam_OTA]
@ -206,7 +188,8 @@ upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_rts = ${common.monitor_rts}
monitor_dtr = ${common.monitor_dtr}
board_build.partitions = ${common.board_build.partitions}
;build_unflags = ${common.build_unflags}
;board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_port = 192.168.1.38
upload_protocol = espota
@ -220,8 +203,18 @@ extra_scripts = ${common.extra_scripts}
platform = ${common.platform}
board = esp-wrover-kit
framework = ${common.framework}
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
;build_unflags = ${common.build_unflags}
;board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
;upload_port = COM6
build_type = ${common.build_type}
extra_scripts = ${common.extra_scripts}
;monitor_rts = ${common.monitor_rts}
;monitor_dtr = ${common.monitor_dtr}
build_flags =
@ -247,58 +240,57 @@ build_flags =
-DHREF_GPIO_NUM=${pinoutsESPWROVER.HREF_GPIO_NUM} ; Set the HREF pin
-DPCLK_GPIO_NUM=${pinoutsESPWROVER.PCLK_GPIO_NUM} ; Set the PCLK pin
build_unflags = ${common.build_unflags}
board_build.partitions = ${common.board_build.partitions}
[env:wrover_release]
platform = ${common.platform}
board = esp-wrover-kit
framework = ${common.framework}
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
;build_unflags = ${common.build_unflags}
;board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
;upload_port = COM6
build_type = ${common.build_type}
extra_scripts = ${common.extra_scripts}
[env:wrover_release]
platform = ${common.platform}
board = esp-wrover-kit
framework = ${common.framework}
monitor_speed = ${common.monitor_speed}
monitor_rts = ${common.monitor_rts}
monitor_dtr = ${common.monitor_dtr}
;monitor_rts = ${common.monitor_rts}
;monitor_dtr = ${common.monitor_dtr}
build_flags =
${common.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DVERSION=${common.release_version}
build_unflags = ${common.build_unflags}
board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
upload_port = COM6
build_type = release
extra_scripts = ${common.extra_scripts}
; Experimental OTA Environment - do not select unless you know what you are doing
[env:wrover_OTA]
platform = ${common.platform}
board = esp-wrover-kit
framework = ${common.framework}
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
;build_unflags = ${common.build_unflags}
;board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_speed = ${common.upload_speed}
lib_deps = ${common.lib_deps}
build_type = release
extra_scripts = ${common.extra_scripts}
;monitor_rts = ${common.monitor_rts}
;monitor_dtr = ${common.monitor_dtr}
build_flags =
${common.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA
-DVERSION=${common.release_version}
lib_deps = ${common.lib_deps}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_rts = ${common.monitor_rts}
monitor_dtr = ${common.monitor_dtr}
board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
upload_port = 192.168.1.38
upload_protocol = espota
upload_flags =
--port=3232
--auth=12345678
build_type = release
extra_scripts = ${common.extra_scripts}
--auth=12345678