10000 updates from upstream by Jason2866 · Pull Request #134 · tasmota/arduino-esp32 · GitHub
[go: up one dir, main page]

Skip to content

updates from upstream #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add support for extra flash images (espressif#6625)
This PR adds support for uploading additional flash images (e.g. Adafruit Tiny UF2 bootloader) specified in board manifests.

Additionally, the PR switches the PlatformIO CI script to the upstream version of the ESP32 dev-platform (basically reverts changes introduced in espressif#5387 as they are no longer required).
  • Loading branch information
valeros authored Apr 26, 2022
commit f0636d515f37d89c3d750151cf4e8f9bf10f3ea8
2 changes: 1 addition & 1 deletion .github/scripts/install-platformio-esp32.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

export PLATFORMIO_ESP32_PATH="$HOME/.platformio/packages/framework-arduinoespressif32"
PLATFORMIO_ESP32_URL="https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master"
PLATFORMIO_ESP32_URL="https://github.com/platformio/platform-espressif32.git"

TOOLCHAIN_VERSION="8.4.0+2021r2-patch3"
ESPTOOLPY_VERSION="~1.30100.0"
Expand Down
8 changes: 7 additions & 1 deletion tools/platformio-build-esp32.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py

from os.path import abspath, isdir, isfile, join, basename
from os.path import abspath, isdir, isfile, join

from SCons.Script import DefaultEnvironment

Expand Down Expand Up @@ -331,6 +331,12 @@
("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")),
("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"))
]
+ [
(offset, join(FRAMEWORK_DIR, img))
8000 for offset, img in env.BoardConfig().get(
"upload.arduino.flash_extra_images", []
)
],
)

#
Expand Down
8 changes: 7 additions & 1 deletion tools/platformio-build-esp32c3.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py

from os.path import abspath, isdir, isfile, join, basename
from os.path import abspath, isdir, isfile, join

from SCons.Script import DefaultEnvironment

Expand Down Expand Up @@ -324,6 +324,12 @@
("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")),
("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"))
]
+ [
(offset, join(FRAMEWORK_ 8000 DIR, img))
for offset, img in env.BoardConfig().get(
"upload.arduino.flash_extra_images", []
)
],
)

#
Expand Down
8 changes: 7 additions & 1 deletion tools/platformio-build-esp32s2.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py

from os.path import abspath, isdir, isfile, join, basename
from os.path import abspath, isdir, isfile, join

from SCons.Script import DefaultEnvironment

Expand Down Expand Up @@ -326,6 +326,12 @@
("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")),
("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"))
]
+ [
(offset, join(FRAMEWORK_DIR, img))
for offset, img in env.BoardConfig().get(
"upload.arduino.flash_extra_images", []
)
],
)

#
Expand Down
8 changes: 7 additions & 1 deletion tools/platformio-build-esp32s3.py
54A4
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py

from os.path import abspath, isdir, isfile, join, basename
from os.path import abspath, isdir, isfile, join

from SCons.Script import DefaultEnvironment

Expand Down Expand Up @@ -343,6 +343,12 @@
("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")),
("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"))
]
+ [
(offset, join(FRAMEWORK_DIR, img))
for offset, img in env.BoardConfig().get(
"upload.arduino.flash_extra_images", []
)
],
)

#
Expand Down
0