mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Silence compiler warnings
Discarded-qualifiers Platformio refactored to support different Platformio Scripts for esp8266 and Esp32.
This commit is contained in:
parent
8b8f6260b3
commit
7765ff43eb
4
pio-tools/add_c_flags.py
Normal file
4
pio-tools/add_c_flags.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Import("env")
|
||||||
|
|
||||||
|
# General options that are passed to the C compiler (C only; not C++).
|
||||||
|
env.Append(CFLAGS=["-Wno-discarded-qualifiers"])
|
@ -23,6 +23,7 @@ extra_configs = platformio_tasmota32.ini
|
|||||||
platformio_tasmota_env.ini
|
platformio_tasmota_env.ini
|
||||||
platformio_tasmota_env32.ini
|
platformio_tasmota_env32.ini
|
||||||
platformio_override.ini
|
platformio_override.ini
|
||||||
|
platformio_tasmota_cenv.ini
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
platform = ${core.platform}
|
platform = ${core.platform}
|
||||||
@ -38,7 +39,7 @@ monitor_port = COM5
|
|||||||
; *** Upload Serial reset method for Wemos and NodeMCU
|
; *** Upload Serial reset method for Wemos and NodeMCU
|
||||||
upload_resetmethod = nodemcu
|
upload_resetmethod = nodemcu
|
||||||
upload_port = COM5
|
upload_port = COM5
|
||||||
extra_scripts = ${scripts_defaults.extra_scripts}
|
extra_scripts = ${esp_defaults.extra_scripts}
|
||||||
lib_ldf_mode = chain
|
lib_ldf_mode = chain
|
||||||
lib_compat_mode = strict
|
lib_compat_mode = strict
|
||||||
shared_libdeps_dir = lib
|
shared_libdeps_dir = lib
|
||||||
@ -70,6 +71,7 @@ extra_scripts = pio-tools/strip-floats.py
|
|||||||
pio-tools/download_fs.py
|
pio-tools/download_fs.py
|
||||||
|
|
||||||
[esp_defaults]
|
[esp_defaults]
|
||||||
|
extra_scripts = ${scripts_defaults.extra_scripts}
|
||||||
; *** remove undesired all warnings
|
; *** remove undesired all warnings
|
||||||
build_unflags = -Wall
|
build_unflags = -Wall
|
||||||
; -mtarget-align
|
; -mtarget-align
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
[platformio]
|
[platformio]
|
||||||
; For best Gitpod performance remove the ";" in the next line. Needed Platformio files are cached and installed at first run
|
; For best Gitpod performance remove the ";" in the next line. Needed Platformio files are cached and installed at first run
|
||||||
;core_dir = .platformio
|
;core_dir = .platformio
|
||||||
extra_configs = platformio_tasmota_cenv.ini
|
|
||||||
|
|
||||||
; *** Build/upload environment
|
; *** Build/upload environment
|
||||||
default_envs =
|
default_envs =
|
||||||
@ -65,7 +64,7 @@ board = ${common.board}
|
|||||||
;monitor_speed = 115200
|
;monitor_speed = 115200
|
||||||
; *** Serial port used for erasing/flashing the ESP82xx
|
; *** Serial port used for erasing/flashing the ESP82xx
|
||||||
;upload_port = COM5
|
;upload_port = COM5
|
||||||
extra_scripts = ${scripts_defaults.extra_scripts}
|
extra_scripts = ${esp_defaults.extra_scripts}
|
||||||
; pio-tools/obj-dump.py
|
; pio-tools/obj-dump.py
|
||||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||||
lib_compat_mode = ${common.lib_compat_mode}
|
lib_compat_mode = ${common.lib_compat_mode}
|
||||||
@ -96,7 +95,7 @@ build_unflags = ${esp32_defaults.build_unflags}
|
|||||||
build_flags = ${esp32_defaults.build_flags}
|
build_flags = ${esp32_defaults.build_flags}
|
||||||
|
|
||||||
; Build variant ESP32 4M Flash, Tasmota 1856k Code/OTA, 320k LITTLEFS (default)
|
; Build variant ESP32 4M Flash, Tasmota 1856k Code/OTA, 320k LITTLEFS (default)
|
||||||
board = esp32_4M
|
;board = esp32_4M
|
||||||
; Build variant ESP32 8M Flash, Tasmota 2944k Code/OTA, 2112k LITTLEFS
|
; Build variant ESP32 8M Flash, Tasmota 2944k Code/OTA, 2112k LITTLEFS
|
||||||
;board = esp32_8M
|
;board = esp32_8M
|
||||||
; Build variant ESP32 16M Flash, Tasmota 2944k Code/OTA, 10M LITTLEFS
|
; Build variant ESP32 16M Flash, Tasmota 2944k Code/OTA, 10M LITTLEFS
|
||||||
@ -109,9 +108,7 @@ monitor_speed = 115200
|
|||||||
upload_port = COM4
|
upload_port = COM4
|
||||||
;upload_speed = 115200
|
;upload_speed = 115200
|
||||||
upload_resetmethod = ${common.upload_resetmethod}
|
upload_resetmethod = ${common.upload_resetmethod}
|
||||||
extra_scripts = ${common.extra_scripts}
|
;extra_scripts = ${esp32_defaults.extra_scripts}
|
||||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
|
||||||
lib_compat_mode = ${common.lib_compat_mode}
|
|
||||||
lib_ignore =
|
lib_ignore =
|
||||||
ESP32 Azure IoT Arduino
|
ESP32 Azure IoT Arduino
|
||||||
ESP32 Async UDP
|
ESP32 Async UDP
|
||||||
|
@ -30,6 +30,8 @@ build_flags = ${esp_defaults.build_flags}
|
|||||||
-include "esp32x_fixes.h"
|
-include "esp32x_fixes.h"
|
||||||
; wrappers for the crash-recorder
|
; wrappers for the crash-recorder
|
||||||
-Wl,--wrap=panicHandler -Wl,--wrap=xt_unhandled_exception
|
-Wl,--wrap=panicHandler -Wl,--wrap=xt_unhandled_exception
|
||||||
|
extra_scripts = pre:pio-tools/add_c_flags.py
|
||||||
|
${esp_defaults.extra_scripts}
|
||||||
|
|
||||||
[core32]
|
[core32]
|
||||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2/platform-tasmota-espressif32-2.0.2.zip
|
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2/platform-tasmota-espressif32-2.0.2.zip
|
||||||
|
@ -8,7 +8,7 @@ board = esp32_4M
|
|||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
upload_port = ${common.upload_port}
|
upload_port = ${common.upload_port}
|
||||||
upload_resetmethod = ${common.upload_resetmethod}
|
upload_resetmethod = ${common.upload_resetmethod}
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${esp32_defaults.extra_scripts}
|
||||||
build_unflags = ${core32.build_unflags}
|
build_unflags = ${core32.build_unflags}
|
||||||
build_flags = ${core32.build_flags}
|
build_flags = ${core32.build_flags}
|
||||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user