2020-11-02 07:16:50 +00:00
|
|
|
; PlatformIO Project Configuration File
|
|
|
|
;
|
|
|
|
; Build options: build flags, source filter, extra scripting
|
|
|
|
; Upload options: custom port, speed and extra flags
|
|
|
|
; Library options: dependencies, extra library storages
|
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; http://docs.platformio.org/en/stable/projectconf.html
|
|
|
|
;
|
2021-04-11 17:52:05 +01:00
|
|
|
; *********************************************************************
|
|
|
|
; *** Selection of Tasmota build variant is done with VSC
|
2020-11-02 07:16:50 +00:00
|
|
|
; *** alternatively can be done in: platformio_override.ini
|
|
|
|
; *** See example: platformio_override_sample.ini
|
|
|
|
; *********************************************************************
|
|
|
|
|
|
|
|
[platformio]
|
2020-11-02 12:05:43 +00:00
|
|
|
description = Provide ESP8266 / ESP32 based devices with Web, MQTT and OTA firmware
|
|
|
|
src_dir = tasmota
|
|
|
|
lib_dir = lib/default
|
2021-02-02 14:07:13 +00:00
|
|
|
boards_dir = boards
|
2020-11-02 12:05:43 +00:00
|
|
|
build_cache_dir = .cache
|
|
|
|
extra_configs = platformio_tasmota32.ini
|
|
|
|
platformio_tasmota_env.ini
|
|
|
|
platformio_tasmota_env32.ini
|
|
|
|
platformio_override.ini
|
2022-01-01 16:34:35 +00:00
|
|
|
platformio_tasmota_cenv.ini
|
2020-11-02 07:16:50 +00:00
|
|
|
|
|
|
|
[common]
|
2021-06-22 17:38:54 +01:00
|
|
|
platform = ${core.platform}
|
|
|
|
platform_packages = ${core.platform_packages}
|
2020-11-02 12:05:43 +00:00
|
|
|
framework = arduino
|
2021-06-22 17:38:54 +01:00
|
|
|
board = esp8266_1M
|
2021-01-12 14:33:15 +00:00
|
|
|
board_build.filesystem = littlefs
|
2021-01-15 14:19:01 +00:00
|
|
|
custom_unpack_dir = unpacked_littlefs
|
2020-11-02 12:05:43 +00:00
|
|
|
build_unflags = ${core.build_unflags}
|
|
|
|
build_flags = ${core.build_flags}
|
2021-03-19 11:15:23 +00:00
|
|
|
monitor_speed = 115200
|
2021-01-13 12:49:33 +00:00
|
|
|
monitor_port = COM5
|
2020-11-02 07:16:50 +00:00
|
|
|
; *** Upload Serial reset method for Wemos and NodeMCU
|
2020-11-02 12:05:43 +00:00
|
|
|
upload_resetmethod = nodemcu
|
|
|
|
upload_port = COM5
|
2022-01-01 16:34:35 +00:00
|
|
|
extra_scripts = ${esp_defaults.extra_scripts}
|
2021-02-14 15:04:03 +00:00
|
|
|
lib_ldf_mode = chain
|
|
|
|
lib_compat_mode = strict
|
2020-11-02 12:05:43 +00:00
|
|
|
shared_libdeps_dir = lib
|
|
|
|
lib_extra_dirs =
|
|
|
|
lib/lib_basic
|
|
|
|
lib/lib_i2c
|
|
|
|
lib/lib_display
|
|
|
|
lib/lib_ssl
|
|
|
|
lib/lib_audio
|
|
|
|
lib/lib_rf
|
|
|
|
lib/lib_div
|
2020-11-02 07:16:50 +00:00
|
|
|
|
2021-10-24 13:07:57 +01:00
|
|
|
[tasmota]
|
|
|
|
; *** Settings here do NOT affect firmware building ***
|
|
|
|
; Uncomment if you do NOT want gzipped map file(s)
|
|
|
|
;disable_map_gz = 1
|
|
|
|
; Uncomment and specify a folder where to place the map file(s) (default set to folder build_output)
|
|
|
|
;map_dir = /tmp/map_files/
|
|
|
|
; Uncomment if you do NOT want additionally gzipped firmware file(s)
|
|
|
|
;disable_bin_gz = 1
|
|
|
|
; Uncomment and specify a folder where to place the firmware file(s) (default set to folder build_output)
|
|
|
|
;bin_dir = /tmp/bin_files/
|
|
|
|
|
2020-11-02 07:16:50 +00:00
|
|
|
[scripts_defaults]
|
2020-11-17 21:01:42 +00:00
|
|
|
extra_scripts = pio-tools/strip-floats.py
|
|
|
|
pio-tools/name-firmware.py
|
|
|
|
pio-tools/gzip-firmware.py
|
|
|
|
pio-tools/override_copy.py
|
2021-01-13 12:49:33 +00:00
|
|
|
pio-tools/download_fs.py
|
2020-11-02 07:16:50 +00:00
|
|
|
|
|
|
|
[esp_defaults]
|
2022-01-01 16:34:35 +00:00
|
|
|
extra_scripts = ${scripts_defaults.extra_scripts}
|
2020-11-02 07:16:50 +00:00
|
|
|
; *** remove undesired all warnings
|
2020-12-08 13:31:41 +00:00
|
|
|
build_unflags = -Wall
|
|
|
|
; -mtarget-align
|
2020-11-02 12:05:43 +00:00
|
|
|
-Wdeprecated-declarations
|
2021-01-09 15:18:06 +00:00
|
|
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
|
|
|
-Wl,-Map,firmware.map
|
|
|
|
-Wno-deprecated-declarations
|
2020-12-08 13:31:41 +00:00
|
|
|
; -mno-target-align
|
|
|
|
-mtarget-align
|
2020-11-15 15:16:32 +00:00
|
|
|
-free
|
|
|
|
-fipa-pta
|
2020-11-13 08:24:35 +00:00
|
|
|
-Wreturn-type
|
2020-11-02 07:16:50 +00:00
|
|
|
; *********************************************************************
|
|
|
|
; *** Use custom settings from file user_config_override.h
|
2020-11-02 12:05:43 +00:00
|
|
|
-DUSE_CONFIG_OVERRIDE
|
2020-11-02 07:16:50 +00:00
|
|
|
; *********************************************************************
|
|
|
|
|
|
|
|
[esp82xx_defaults]
|
2020-11-02 12:05:43 +00:00
|
|
|
build_flags = ${esp_defaults.build_flags}
|
2020-11-05 07:45:35 +00:00
|
|
|
-DNDEBUG
|
2020-11-02 12:05:43 +00:00
|
|
|
-DFP_IN_IROM
|
|
|
|
-DBEARSSL_SSL_BASIC
|
|
|
|
; NONOSDK22x_190703 = 2.2.2-dev(38a443e)
|
|
|
|
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
|
|
|
|
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
|
|
|
|
; VTABLES in Flash
|
|
|
|
-DVTABLES_IN_FLASH
|
|
|
|
; remove the 4-bytes alignment for PSTR()
|
|
|
|
-DPSTR_ALIGN=1
|
|
|
|
; restrict to minimal mime-types
|
|
|
|
-DMIMETYPE_MINIMAL
|
2020-11-14 18:19:45 +00:00
|
|
|
; uncomment the following to enable TLS with 4096 RSA certificates
|
|
|
|
;-DUSE_4K_RSA
|
2020-11-02 12:05:43 +00:00
|
|
|
|
2020-11-02 07:16:50 +00:00
|
|
|
[core]
|
2020-12-06 15:59:08 +00:00
|
|
|
; *** Esp8266 Tasmota modified Arduino core based on core 2.7.4. Added Backport for PWM selection
|
2022-01-01 12:32:49 +00:00
|
|
|
platform = https://github.com/tasmota/platform-espressif8266/releases/download/v2.7.4.9/platform-espressif8266-2.7.4.9.zip
|
|
|
|
platform_packages =
|
2020-11-02 12:05:43 +00:00
|
|
|
build_unflags = ${esp_defaults.build_unflags}
|
|
|
|
build_flags = ${esp82xx_defaults.build_flags}
|
2020-12-06 15:59:08 +00:00
|
|
|
; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM
|
|
|
|
;-DWAVEFORM_LOCKED_PHASE
|
|
|
|
-DWAVEFORM_LOCKED_PWM
|