chore: unify building system with Makefile (#398)
* reorder and extend platformio config * update gitignore * add processing extra_script * add makefile * update github workflow * update docker build * add release and debug targets * define custom_build debug * fix custom_build target * update README
This commit is contained in:
@@ -15,6 +15,7 @@ default_envs = esp32dev
|
||||
platform = espressif32
|
||||
framework = arduino
|
||||
build_type = release
|
||||
custom_build = release
|
||||
board_build.partitions = partitions.csv
|
||||
build_flags =
|
||||
-fexceptions
|
||||
@@ -33,50 +34,33 @@ monitor_filters =
|
||||
|
||||
[env:esp32dev]
|
||||
board = esp32dev
|
||||
extra_scripts = post:pio_package.py
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
||||
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
|
||||
|
||||
[env:esp32-c3]
|
||||
extends = env:esp32dev
|
||||
board = esp32-c3-devkitc-02
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
||||
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
|
||||
|
||||
[env:esp32-s3]
|
||||
extends = env:esp32dev
|
||||
board = esp32-s3-devkitc-1
|
||||
|
||||
[env:esp32solo1]
|
||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.10.03/platform-espressif32-2023.10.03.zip
|
||||
board = esp32-solo1
|
||||
extra_scripts = post:pio_package.py
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DFRAMEWORK_ARDUINO_SOLO1
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
||||
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
|
||||
|
||||
[env:esp32-s3]
|
||||
board = esp32-s3-devkitc-1
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
||||
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
|
||||
|
||||
[env:esp32dev_dbg]
|
||||
board = esp32dev
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
|
||||
-DDEBUG_NUKIHUB
|
||||
-DDEBUG_SENSE_NUKI
|
||||
-DDEBUG_NUKI_COMMAND
|
||||
-DDEBUG_NUKI_CONNECT
|
||||
-DDEBUG_NUKI_COMMUNICATION
|
||||
;-DDEBUG_NUKI_HEX_DATA
|
||||
-DDEBUG_NUKI_READABLE_DATA
|
||||
|
||||
[env:esp32-s3_dbg]
|
||||
board = esp32-s3-devkitc-1
|
||||
extends = env:esp32dev
|
||||
custom_build = debug
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||
@@ -90,7 +74,23 @@ build_flags =
|
||||
-DDEBUG_NUKI_READABLE_DATA
|
||||
|
||||
[env:esp32-c3_dbg]
|
||||
board = esp32-c3-devkitc-02
|
||||
extends = env:esp32-c3
|
||||
custom_build = debug
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0
|
||||
-DDEBUG_NUKIHUB
|
||||
-DDEBUG_SENSE_NUKI
|
||||
-DDEBUG_NUKI_COMMAND
|
||||
-DDEBUG_NUKI_CONNECT
|
||||
-DDEBUG_NUKI_COMMUNICATION
|
||||
;-DDEBUG_NUKI_HEX_DATA
|
||||
-DDEBUG_NUKI_READABLE_DATA
|
||||
|
||||
[env:esp32-s3_dbg]
|
||||
extends = env:esp32-s3
|
||||
custom_build = debug
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||
@@ -104,8 +104,8 @@ build_flags =
|
||||
-DDEBUG_NUKI_READABLE_DATA
|
||||
|
||||
[env:esp32solo1_dbg]
|
||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.10.03/platform-espressif32-2023.10.03.zip
|
||||
board = esp32-solo1
|
||||
extends = env:esp32solo1
|
||||
custom_build = debug
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DFRAMEWORK_ARDUINO_SOLO1
|
||||
@@ -117,4 +117,4 @@ build_flags =
|
||||
-DDEBUG_NUKI_CONNECT
|
||||
-DDEBUG_NUKI_COMMUNICATION
|
||||
;-DDEBUG_NUKI_HEX_DATA
|
||||
-DDEBUG_NUKI_READABLE_DATA
|
||||
-DDEBUG_NUKI_READABLE_DATA
|
||||
|
||||
Reference in New Issue
Block a user