From a19591f9dd6134b5798efe3f94886ce783cac473 Mon Sep 17 00:00:00 2001 From: Rik <49898887+gemenerik@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:59:11 +0200 Subject: [PATCH 1/2] Added cf21bl --- build_targets.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_targets.json b/build_targets.json index 67db9ea..66a9554 100644 --- a/build_targets.json +++ b/build_targets.json @@ -3,6 +3,7 @@ "cf2", "bolt", "tag", - "flapper" + "flapper", + "cf21bl" ] } From 6888c80c447705d873d03a8f5aface2ccb312522 Mon Sep 17 00:00:00 2001 From: Rik <49898887+gemenerik@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:47:39 +0200 Subject: [PATCH 2/2] Require full platform name match to avoid using cf21bl for cf2 --- tools/build/package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/package b/tools/build/package index 4674796..693b4ce 100755 --- a/tools/build/package +++ b/tools/build/package @@ -91,7 +91,7 @@ def _download_latest(path, repository: str, branch: str, fw_platform: str) -> st found_artifact = None if fw_platform is not None: for artifact in artifacts['artifacts']: - if artifact["name"].startswith(fw_platform): + if artifact["name"].split('-')[0] == fw_platform: found_artifact = artifact version = found_artifact['name'].replace(fw_platform + "-", "") break