Skip to content

Commit e6d863a

Browse files
committed
Handle bsim and blobs
1 parent 84e8f35 commit e6d863a

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CIRCUITPY_BUILD_EXTENSIONS = ["elf"]
2+
BLOBS=["hal_renesas"]

ports/zephyr-cp/cptools/pre_zephyr_build_prep.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@
1919
mpconfigboard = tomllib.load(f)
2020

2121
blobs = mpconfigboard.get("BLOBS", [])
22+
blob_fetch_args = mpconfigboard.get("blob_fetch_args", {})
2223
for blob in blobs:
23-
subprocess.run(["west", "blobs", "fetch", blob], check=True)
24+
args = blob_fetch_args.get(blob, [])
25+
subprocess.run(["west", "blobs", "fetch", blob, *args], check=True)
26+
27+
if board.endswith("bsim"):
28+
subprocess.run(
29+
["make", "everything", "-j", "8"],
30+
cwd=portdir / "tools" / "bsim",
31+
check=True,
32+
)

0 commit comments

Comments
 (0)