Skip to content

Commit 33d176d

Browse files
committed
overseen needed changes
1 parent a81dcdc commit 33d176d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def __fetch_fs_size(target, source, env):
275275
"bin",
276276
"%s-elf-gdb" % toolchain_arch,
277277
),
278-
OBJCOPY=join(platform.get_package_dir("tl-esptool") or "", "esptool.py"),
278+
OBJCOPY=join(platform.get_package_dir("tool-esptool") or "", "esptool.py"),
279279
RANLIB="%s-elf-gcc-ranlib" % toolchain_arch,
280280
SIZETOOL="%s-elf-size" % toolchain_arch,
281281

@@ -450,7 +450,7 @@ def __fetch_fs_size(target, source, env):
450450
elif upload_protocol == "esptool":
451451
env.Replace(
452452
UPLOADER=join(
453-
platform.get_package_dir("tl-esptool") or "", "esptool.py"),
453+
platform.get_package_dir("tool-esptool") or "", "esptool.py"),
454454
UPLOADERFLAGS=[
455455
"--chip", mcu,
456456
"--port", '"$UPLOAD_PORT"',

platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def configure_default_packages(self, variables, targets):
119119
self.packages[p]["version"] = tl_path
120120

121121
for available_mcu in ("esp32", "esp32s2", "esp32s3"):
122-
if available_mcu == mcu:
122+
if available_mcu == mcu and os.path.exists(IDF_TOOLS):
123123
tc_path = "file://" + join(IDF_TOOLS_PATH_DEFAULT, "tools", "tc-xt-%s" % mcu)
124124
self.packages["tc-xt-%s" % mcu]["optional"] = False
125125
self.packages["tc-xt-%s" % mcu]["version"] = tc_path

0 commit comments

Comments
 (0)