Skip to content

Commit e0dc7ec

Browse files
authored
all tools from free open source repos without gatekeeper
1 parent 41c4462 commit e0dc7ec

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

platform.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -164,28 +164,28 @@ def install_tool(TOOL):
164164
for package in CHECK_PACKAGES:
165165
for check_tool in variables.get("check_tool", ""):
166166
if check_tool in package:
167-
self.packages[package]["optional"] = False
167+
install_tool(package)
168168

169169
if "buildfs" in targets:
170170
filesystem = variables.get("board_build.filesystem", "littlefs")
171171
if filesystem == "littlefs":
172-
self.packages["tool-mklittlefs"]["optional"] = False
172+
install_tool("tool-mklittlefs")
173173
elif filesystem == "fatfs":
174-
self.packages["tool-mkfatfs"]["optional"] = False
174+
install_tool("tool-mkfatfs")
175175
else:
176-
self.packages["tool-mkspiffs"]["optional"] = False
176+
install_tool("tool-mkspiffs")
177177

178178
if "downloadfs" in targets:
179179
filesystem = variables.get("board_build.filesystem", "littlefs")
180180
if filesystem == "littlefs":
181181
# Use Tasmota mklittlefs v4.0.0 to unpack, older version is incompatible
182-
self.packages["tool-mklittlefs"]["version"] = "~4.0.0"
182+
self.packages["tool-mklittlefs"]["version"] = "https://github.com/pioarduino/registry/releases/download/0.0.1/mklittlefs-4.0.0.zip"
183+
self.packages["tool-mklittlefs"]["optional"] = False
184+
install_tool("tool-mklittlefs")
183185

184186
# Currently only Arduino Nano ESP32 uses the dfuutil tool as uploader
185187
if variables.get("board") == "arduino_nano_esp32":
186-
self.packages["tool-dfuutil-arduino"]["optional"] = False
187-
else:
188-
del self.packages["tool-dfuutil-arduino"]
188+
install_tool("tool-dfuutil-arduino")
189189

190190
return super().configure_default_packages(variables, targets)
191191

0 commit comments

Comments
 (0)