[tools] Migrate to bk7231tools from PyPI

This commit is contained in:
Kuba Szczodrzyński
2022-09-21 21:41:08 +02:00
parent 2c59af8399
commit 5b6b80e3cd
2 changed files with 2 additions and 11 deletions

View File

@@ -127,7 +127,7 @@
},
"tool-ltchiptool": {
"type": "uploader",
"version": "https://github.com/libretuya/ltchiptool#v1.5.2",
"version": "https://github.com/libretuya/ltchiptool#v1.5.4",
"note": "This is used only for C/C++ code from ltchiptool."
},
"tool-openocd": {
@@ -135,11 +135,6 @@
"optional": true,
"owner": "platformio",
"version": "~2.1100.0"
},
"tool-bk7231tools": {
"type": "uploader",
"optional": true,
"version": "https://github.com/notkmhn/bk7231tools#1eea4c3"
}
}
}

View File

@@ -23,7 +23,7 @@ def check_ltchiptool():
import ltchiptool
importlib.reload(ltchiptool)
if Version(ltchiptool.get_version()) < Version("1.5.1"):
if Version(ltchiptool.get_version()) < Version("1.5.4"):
raise ImportError("Version too old")
@@ -147,10 +147,6 @@ class LibretuyaPlatform(PlatformBase):
(toolchain, version) = package_obj["toolchain"].split("@")
self.packages[f"toolchain-{toolchain}"]["version"] = version
# require bk7231tools
if "beken-72xx" in framework:
self.packages["tool-bk7231tools"]["optional"] = False
# mark framework SDK as required
package_obj["optional"] = False