fix: remove common environment

- favour the env environment
- cleans up the config
- easier to read and maintain
This commit is contained in:
ZanzyTHEbar 2023-02-13 12:43:16 +00:00
parent 2f568c1939
commit acb5e44c03
2 changed files with 21 additions and 24 deletions

View File

@ -3,8 +3,8 @@
[env:esp32AIThinker]
board = esp32cam
build_type = ${common.build_type}
build_flags = ${common.build_flags}
build_type = debug
build_flags = ${env.build_flags}
-DCORE_DEBUG_LEVEL=4 ; set the debug level
-DDEBUG_MODE=1 ; Set the debug mode
; CAMERA PINOUT DEFINITIONS
@ -13,7 +13,7 @@ build_flags = ${common.build_flags}
[env:esp32AIThinker_release]
board = esp32cam
build_type = release
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
; CAMERA PINOUT DEFINITIONS
@ -22,7 +22,7 @@ build_flags = ${common.build_flags}
; Experimental OTA Environment - do not select unless you know what you are doing
[env:esp32AIThinker_OTA]
board = esp32cam
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA
@ -37,8 +37,8 @@ build_type = release
[env:esp32M5Stack]
board = esp32cam
build_type = ${common.build_type}
build_flags = ${common.build_flags}
build_type = debug
build_flags = ${env.build_flags}
-DDEBUG_MODE=1
-DCORE_DEBUG_LEVEL=4
${pinoutsESPCAM_M5STACK.build_flags}
@ -46,14 +46,14 @@ build_flags = ${common.build_flags}
[env:esp32M5Stack_release]
board = esp32cam
build_type = release
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0
-DCORE_DEBUG_LEVEL=1
${pinoutsESPCAM_M5STACK.build_flags}
[env:esp32M5Stack_OTA]
board = esp32cam
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA
@ -67,8 +67,8 @@ build_type = release
[env:esp32Cam]
board = esp32cam
build_type = ${common.build_type}
build_flags = ${common.build_flags}
build_type = debug
build_flags = ${env.build_flags}
-DDEBUG_MODE=1 ; Set the debug mode
; CAMERA PINOUT DEFINITIONS
${pinoutsESPCam.build_flags}
@ -76,7 +76,7 @@ build_flags = ${common.build_flags}
[env:esp32Cam_release]
board = esp32cam
build_type = release
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
; CAMERA PINOUT DEFINITIONS
@ -85,7 +85,7 @@ build_flags = ${common.build_flags}
; Experimental OTA Environment - do not select unless you know what you are doing
[env:esp32Cam_OTA]
board = esp32cam
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA
@ -102,8 +102,8 @@ build_type = release
board = esp-wrover-kit
;board_build.f_flash = 80000000L
;board_build.flash_mode = qio
build_type = ${common.build_type}
build_flags = ${common.build_flags}
build_type = debug
build_flags = ${env.build_flags}
-DDEBUG_MODE=1 ; Set the debug mode
; CAMERA PINOUT DEFINITIONS
${pinoutsESP-EYE.build_flags}
@ -113,7 +113,7 @@ board = esp-wrover-kit
;board_build.f_flash = 80000000L
;board_build.flash_mode = qio
build_type = release
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
; CAMERA PINOUT DEFINITIONS
@ -122,7 +122,7 @@ build_flags = ${common.build_flags}
; Experimental OTA Environment - do not select unless you know what you are doing
[env:esp_eye_OTA]
board = esp-wrover-kit
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA
@ -139,8 +139,8 @@ build_type = release
board = esp-wrover-kit
board_build.f_flash = 80000000L
board_build.flash_mode = qio
build_type = ${common.build_type}
build_flags = ${common.build_flags}
build_type = debug
build_flags = ${env.build_flags}
-DCORE_DEBUG_LEVEL=4 ; set the debug level
-DDEBUG_MODE=1 ; Set the debug mode
; CAMERA PINOUT DEFINITIONS
@ -150,8 +150,8 @@ build_flags = ${common.build_flags}
board = esp-wrover-kit
board_build.f_flash = 80000000L
board_build.flash_mode = qio
build_type = ${common.build_type}
build_flags = ${common.build_flags}
build_type = debug
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
; CAMERA PINOUT DEFINITIONS
@ -161,7 +161,7 @@ build_flags = ${common.build_flags}
board = esp-wrover-kit
board_build.f_flash = 80000000L
board_build.flash_mode = qio
build_flags = ${common.build_flags}
build_flags = ${env.build_flags}
-DDEBUG_MODE=0 ; Set the debug mode
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA

View File

@ -23,9 +23,6 @@ lib_deps =
extra_scripts =
pre:tools/customname.py
post:tools/createzip.py
[common]
build_type = debug
build_flags =
!python tools/git_rev.py
-DENABLE_ADHOC=${wifi.enableadhoc}