mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
cleaned up pio scripts
This commit is contained in:
@@ -8,9 +8,8 @@ upload_flags =
|
|||||||
upload_port = 10.10.10.101
|
upload_port = 10.10.10.101
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
; EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_TEST ENABLE_CORS DEMSESP_DEFAULT_BOARD_PROFILE
|
; options are EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_TEST ENABLE_CORS DEMSESP_DEFAULT_BOARD_PROFILE
|
||||||
; debug_flags = -DENABLE_CORS -DCORS_ORIGIN=\"http://localhost:3000\"
|
; debug_flags = -DENABLE_CORS -DEMSESP_DEBUG -DEMSESP_TEST -DCORS_ORIGIN=\"http://localhost:3000\"
|
||||||
; debug_flags = -DEMSESP_DEBUG -DEMSESP_TEST
|
|
||||||
; debug_flags = -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\"
|
; debug_flags = -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\"
|
||||||
|
|
||||||
[env:esp32]
|
[env:esp32]
|
||||||
|
|||||||
@@ -1,21 +1,24 @@
|
|||||||
; PlatformIO Project Configuration File for EMS-ESP
|
; PlatformIO Project Configuration File for EMS-ESP
|
||||||
|
; override any settings with your own local ones in pio_local.ini
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = esp32
|
default_envs = esp32
|
||||||
|
|
||||||
# override any settings with your own local ones in pio_local.ini
|
|
||||||
extra_configs =
|
extra_configs =
|
||||||
factory_settings.ini
|
factory_settings.ini
|
||||||
pio_local.ini
|
pio_local.ini
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
core_build_flags = -Wno-deprecated-declarations
|
core_build_flags =
|
||||||
-Wreturn-type
|
-Wall
|
||||||
-DCORE_DEBUG_LEVEL=0
|
-D CORE_DEBUG_LEVEL=0
|
||||||
-DNDEBUG
|
-D NDEBUG
|
||||||
|
-D ARDUINO_ARCH_ESP32=1
|
||||||
|
-D ESP32=1
|
||||||
|
; -std=c++17 -std=gnu++17
|
||||||
|
|
||||||
esp32_build_flags = -DARDUINO_ARCH_ESP32=1 -DESP32=1
|
core_unbuild_flags =
|
||||||
; -std=c17 -std=c++17 -std=gnu++17
|
; -std=gnu++11
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.core_build_flags}
|
${common.core_build_flags}
|
||||||
@@ -24,12 +27,10 @@ build_flags =
|
|||||||
-D NO_GLOBAL_ARDUINOOTA
|
-D NO_GLOBAL_ARDUINOOTA
|
||||||
-D ARDUINOJSON_ENABLE_STD_STRING=1
|
-D ARDUINOJSON_ENABLE_STD_STRING=1
|
||||||
|
|
||||||
build_unflags = -Wall -Wdeprecated-declarations
|
unbuild_flags =
|
||||||
|
${common.core_unbuild_flags}
|
||||||
|
|
||||||
esp32_build_unflags =
|
; these are set in your pio_local.ini
|
||||||
; -std=gnu++11
|
|
||||||
|
|
||||||
; set these in your pio_local.ini
|
|
||||||
debug_flags =
|
debug_flags =
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
@@ -51,8 +52,8 @@ extra_scripts = scripts/rename_fw.py
|
|||||||
board = esp32dev
|
board = esp32dev
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
||||||
build_flags = ${common.build_flags} ${common.esp32_build_flags}
|
build_flags = ${common.build_flags}
|
||||||
build_unflags = ${common.build_unflags} ${common.esp32_build_unflags}
|
build_unflags = ${common.unbuild_flags}
|
||||||
|
|
||||||
[env:esp32]
|
[env:esp32]
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
@@ -66,5 +67,5 @@ platform = espressif32
|
|||||||
; toolchain-xtensa32 @ 2.80400.2020
|
; toolchain-xtensa32 @ 2.80400.2020
|
||||||
; platform = https://github.com/platformio/platform-espressif32.git
|
; platform = https://github.com/platformio/platform-espressif32.git
|
||||||
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
||||||
build_flags = ${common.build_flags} ${common.esp32_build_flags} ${common.debug_flags}
|
build_flags = ${common.build_flags} ${common.debug_flags}
|
||||||
build_unflags = ${common.build_unflags} ${common.esp32_build_unflags}
|
build_unflags = ${common.unbuild_flags}
|
||||||
|
|||||||
Reference in New Issue
Block a user