Skip to content

Commit

Permalink
Add framework-arduinoespressif32-libs SDK to platform and load when r…
Browse files Browse the repository at this point in the history
…eferenced by platform package
  • Loading branch information
sgryphon committed Mar 29, 2024
1 parent b901f2d commit 16d9ba7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
"owner": "platformio",
"version": "~3.20014.0"
},
"framework-arduinoespressif32-libs": {
"type": "sdk",
"optional": true,
"owner": "espressif",
"version": "~5.1.0"
},
"framework-espidf": {
"type": "framework",
"optional": true,
Expand Down
3 changes: 3 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def _parse_version(original_version):
)

toolchain_remap = {
"esp32-arduino-libs": "framework-arduinoespressif32-libs",
"xtensa-esp32-elf-gcc": "toolchain-xtensa-esp32",
"xtensa-esp32s2-elf-gcc": "toolchain-xtensa-esp32s2",
"xtensa-esp32s3-elf-gcc": "toolchain-xtensa-esp32s3",
Expand Down Expand Up @@ -385,6 +386,8 @@ def configure_arduino_toolchains(self, package_index):
self.packages[toolchain_package]["version"] = version
self.packages[toolchain_package]["owner"] = "espressif"
self.packages[toolchain_package]["type"] = "toolchain"
if (toolchain_package == "framework-arduinoespressif32-libs"):
self.packages[toolchain_package]["optional"] = False

def configure_upstream_arduino_packages(self, url_items):
framework_index_file = os.path.join(
Expand Down

0 comments on commit 16d9ba7

Please sign in to comment.