[beken-72xx] Add UF2 uploading based on bk7231tools

This commit is contained in:
Kuba Szczodrzyński
2022-06-23 14:23:22 +02:00
parent 236e9ccda6
commit 45af7c188a
8 changed files with 89 additions and 3 deletions

View File

@@ -40,7 +40,12 @@ if __name__ == "__main__":
args = dict(args._get_kwargs())
if uf2.family.code == "ambz":
from uf2_rtltool import upload
from tools.soc.uf2_rtltool import upload
if not upload(ctx, **args):
exit(1)
elif uf2.family.parent_code == "bk72xx":
from tools.soc.uf2_bk72xx import upload
if not upload(ctx, **args):
exit(1)