Skip to content

Commit

Permalink
dev.yml.j2: update mlif and muriscvnn ref
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jan 5, 2024
1 parent 2a7eac3 commit e4981ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion mlonmcu/setup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def is_populated(path):
return path.is_dir() and os.listdir(path.resolve())


def download_and_extract(url, archive, dest, progress=False):
def download_and_extract(url, archive, dest, progress=False, force=True):
if isinstance(dest, str):
dest = Path(dest)
assert isinstance(dest, Path)
Expand All @@ -386,6 +386,9 @@ def download_and_extract(url, archive, dest, progress=False):
tmp_dir_new = Path(tmp_dir) / contents[0]
if tmp_dir_new.is_dir(): # Archive contains a single subdirectory with a different name
tmp_dir = tmp_dir_new
if dest.is_dir():
assert force, f"Set force=True to replace destination {dest}"
shutil.rmtree(dest)
move(tmp_dir, dest)


Expand Down
4 changes: 2 additions & 2 deletions resources/templates/dev.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repos:
ref: db52781b01421491d01efec5dab8e81859c6afe9 # TODO: change after fixing semihosting issue
muriscvnn:
url: "https://github.com/tum-ei-eda/muriscv-nn.git"
ref: a9b8214177a22b937e4890331e9a580af5e2496a
ref: bc60b2d2f541e1fee6352b9c9ab7cb442ff59bf4
tflite_pack:
url: "https://github.com/tum-ei-eda/tflite-pack.git"
ref: 439b78d36456f716629ad9dbaff9734baaa75db9
Expand All @@ -85,7 +85,7 @@ repos:
ref: fc42c71353d15c564558249bd4f13350119ab6a9
mlif:
url: "https://github.com/tum-ei-eda/mlonmcu-sw.git"
ref: 1bfcf3c9b90dd532011011386f3a08ad20573c09
ref: 5914b4a76218816b5f21539ba7ad72ac1979525b
# espidf:
# url: "https://github.com/espressif/esp-idf.git"
# ref: release/v4.4
Expand Down

0 comments on commit e4981ed

Please sign in to comment.