mirror of https://github.com/arendst/Tasmota.git
commit
fe5f17c107
|
@ -25,13 +25,13 @@
|
||||||
"arduino",
|
"arduino",
|
||||||
"espidf"
|
"espidf"
|
||||||
],
|
],
|
||||||
"name": "Espressif Generic ESP32 4M Flash, Tasmota 1856k Code/OTA, 320k FS",
|
"name": "Espressif Generic ESP32 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
|
||||||
"upload": {
|
"upload": {
|
||||||
"arduino": {
|
"arduino": {
|
||||||
"flash_extra_images": [
|
"flash_extra_images": [
|
||||||
[
|
[
|
||||||
"0x2E0000",
|
"0x2E0000",
|
||||||
"tasmota32-minicustom.bin"
|
"variants/tasmota/tasmota32-minicustom.bin"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
from os.path import join
|
||||||
|
from SCons.Script import DefaultEnvironment
|
||||||
|
|
||||||
|
env = DefaultEnvironment()
|
||||||
|
platform = env.PioPlatform()
|
||||||
|
|
||||||
|
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
|
||||||
|
|
||||||
|
safemode_dir = join(env["PROJECT_DIR"], "safemode")
|
||||||
|
variants_dir = join(FRAMEWORK_DIR, "variants", "tasmota")
|
||||||
|
|
||||||
|
if env["PIOPLATFORM"] == "espressif32":
|
||||||
|
if os.path.exists(safemode_dir):
|
||||||
|
# print("safemode.bin dir exists")
|
||||||
|
if os.path.exists(variants_dir):
|
||||||
|
print("") # dummy print
|
||||||
|
# print("variants/tasmota exists")
|
||||||
|
# os.remove(variants_dir) # todo PermissionError: [Errno 1] Operation not permitted:
|
||||||
|
else:
|
||||||
|
shutil.copytree(safemode_dir, variants_dir)
|
|
@ -91,7 +91,7 @@ lib_extra_dirs = ${library.lib_extra_dirs}
|
||||||
[env:tasmota32_base]
|
[env:tasmota32_base]
|
||||||
; *** Uncomment next lines ";" to enable development Tasmota Arduino version ESP32
|
; *** Uncomment next lines ";" to enable development Tasmota Arduino version ESP32
|
||||||
;platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3rc1/platform-espressif32-2.0.3new.zip
|
;platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3rc1/platform-espressif32-2.0.3new.zip
|
||||||
;platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/822/framework-arduinoespressif32-v4.4_work-c4b83228a5.tar.gz
|
;platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/825/framework-arduinoespressif32-v4.4_work-c4b83228a5.tar.gz
|
||||||
build_unflags = ${esp32_defaults.build_unflags}
|
build_unflags = ${esp32_defaults.build_unflags}
|
||||||
build_flags = ${esp32_defaults.build_flags}
|
build_flags = ${esp32_defaults.build_flags}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ build_flags = ${esp_defaults.build_flags}
|
||||||
-Wl,--wrap=panicHandler -Wl,--wrap=xt_unhandled_exception
|
-Wl,--wrap=panicHandler -Wl,--wrap=xt_unhandled_exception
|
||||||
-Wl,--wrap=_Z11analogWritehi ; `analogWrite(unsigned char, int)` use the Tasmota version of analogWrite for deeper integration and phase control
|
-Wl,--wrap=_Z11analogWritehi ; `analogWrite(unsigned char, int)` use the Tasmota version of analogWrite for deeper integration and phase control
|
||||||
extra_scripts = pre:pio-tools/add_c_flags.py
|
extra_scripts = pre:pio-tools/add_c_flags.py
|
||||||
|
pre:pio-tools/copy_safemode.py
|
||||||
post:pio-tools/post_esp32.py
|
post:pio-tools/post_esp32.py
|
||||||
${esp_defaults.extra_scripts}
|
${esp_defaults.extra_scripts}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue