Skip to content

Commit

Permalink
Platform 2024.06.11 Tasmota Arduino Core 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Jun 25, 2024
1 parent 9244be6 commit 19cfdb4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: git clone Tasmota and add to examples
if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'"
run: |
git clone https://github.com/arendst/Tasmota.git examples/tasmota
git clone -b development --recursive --depth 1 --shallow-submodule https://github.com/arendst/Tasmota.git examples/tasmota
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
- name: Build examples
if: "matrix.example != 'examples/tasmota' || matrix.os != 'windows-2022'"
Expand Down
18 changes: 7 additions & 11 deletions builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,22 @@
from platformio.package.version import pepver_to_semver

env = DefaultEnvironment()
platform = env.PioPlatform()

extra_flags = ''.join([element.replace("-D", " ") for element in env.BoardConfig().get("build.extra_flags", "")])
build_flags = ''.join([element.replace("-D", " ") for element in env.GetProjectOption("build_flags")])

SConscript("_embed_files.py", exports="env")

if ("CORE32SOLO1" in extra_flags or "FRAMEWORK_ARDUINO_SOLO1" in build_flags) and ("arduino" in env.subst("$PIOFRAMEWORK") and "espidf" not in env.subst("$PIOFRAMEWORK")):
SConscript(
join(DefaultEnvironment().PioPlatform().get_package_dir(
"framework-arduino-solo1"), "tools", "platformio-build.py"))

FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-solo1")
elif ("CORE32ITEAD" in extra_flags or "FRAMEWORK_ARDUINO_ITEAD" in build_flags) and ("arduino" in env.subst("$PIOFRAMEWORK") and "espidf" not in env.subst("$PIOFRAMEWORK")):
SConscript(
join(DefaultEnvironment().PioPlatform().get_package_dir(
"framework-arduino-ITEAD"), "tools", "platformio-build.py"))

FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-ITEAD")
elif "arduino" in env.subst("$PIOFRAMEWORK") and "CORE32SOLO1" not in extra_flags and "FRAMEWORK_ARDUINO_SOLO1" not in build_flags and "CORE32ITEAD" not in extra_flags and "FRAMEWORK_ARDUINO_ITEAD" not in build_flags and "espidf" not in env.subst("$PIOFRAMEWORK"):
SConscript(
join(DefaultEnvironment().PioPlatform().get_package_dir(
"framework-arduinoespressif32"), "tools", "platformio-build.py"))
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")

if "espidf" not in env.subst("$PIOFRAMEWORK"):
SConscript(join(FRAMEWORK_DIR, "tools", "platformio-build.py"))

def install_python_deps():
def _get_installed_pip_packages():
Expand Down
4 changes: 2 additions & 2 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,8 @@ def compile_source_files(
obj_path = os.path.join(obj_path, os.path.basename(src_path))

preserve_source_file_extension = board.get(
"build.esp-idf.preserve_source_file_extension", True
)
"build.esp-idf.preserve_source_file_extension", "yes"
) == "yes"

objects.append(
build_envs[compile_group_idx].StaticObject(
Expand Down
2 changes: 1 addition & 1 deletion examples/tasmota_platformio_override.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[platformio]
default_envs =
tasmota32
tasmota32-webcam
tasmota32solo1
tasmota32-nspanel
tasmota32c2
Expand Down

0 comments on commit 19cfdb4

Please sign in to comment.