Skip to content

Commit 47d19e4

Browse files
authored
Install esptool via tl-install routine (#219)
1 parent 2d6bfb4 commit 47d19e4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

platform.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@
9090
},
9191
"tool-esptoolpy": {
9292
"type": "uploader",
93-
"optional": false,
93+
"optional": true,
9494
"owner": "pioarduino",
95-
"version": "https://github.com/pioarduino/esptool/releases/download/v5.0.0/esptool.zip"
95+
"package-version": "5.0.0",
96+
"version": "https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.0.0.zip"
9697
},
9798
"tl-install": {
9899
"type": "tool",

platform.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ def _configure_installer(self) -> None:
430430
if os.path.exists(installer_path):
431431
self.packages["tl-install"]["optional"] = True
432432

433+
def _install_esptool_package(self) -> None:
434+
"""Install esptool package required for all builds."""
435+
self.install_tool("tool-esptoolpy")
436+
433437
def _install_common_idf_packages(self) -> None:
434438
"""Install common ESP-IDF packages required for all builds."""
435439
for package in COMMON_IDF_PACKAGES:
@@ -534,6 +538,7 @@ def configure_default_packages(self, variables: Dict, targets: List[str]) -> Any
534538
try:
535539
# Configuration steps
536540
self._configure_installer()
541+
self._install_esptool_package()
537542
self._configure_arduino_framework(frameworks)
538543
self._configure_espidf_framework(frameworks, variables, board_config, mcu)
539544
self._configure_mcu_toolchains(mcu, variables, targets)

0 commit comments

Comments
 (0)