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