[tools] Migrate to bk7231tools from PyPI
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user