Skip to content

Commit 3271ea8

Browse files
committed
fix(zwa): Use archive if present, or download it
Origin: #152 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 3b23847 commit 3271ea8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

helper.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ zwa_dir?=${zwa_project}
342342

343343
${CURDIR}/tmp/${zwa_file}:
344344
@echo "TODO: https://github.com/Z-Wave-Alliance/z-wave-stack-binaries/issues/2"
345+
gh auth status || gh auth login
346+
gh auth status || echo "Please download ${zwa_url} to $@"
345347
mkdir -p ${@D} && cd ${@D} \
346348
&& gh release download \
347349
--repo "${zwa_url}" --pattern "${zwa_file}" \
@@ -351,13 +353,13 @@ ${zwa_dir}: ${CURDIR}/tmp/${zwa_file}
351353
mkdir -p "$@"
352354
tar xfa "$<" -C "$@"
353355

354-
zwa/setup: ${zwa_project}
355-
ls ${zwa_project}
356+
zwa/setup: ${zwa_dir}
357+
ls ${<}
356358

357359
mapdir?=applications/zpc/components/dotdot_mapper/rules
358360
datastore_file?=tmp.db
359361
cache_path?=tmp/cache/ota
360-
zwa/test: ./scripts/tests/z-wave-stack-binaries-test.sh ${zwa_dir}
362+
zwa/test: ./scripts/tests/z-wave-stack-binaries-test.sh
361363
-reset
362364
rm -fv ${datastore_file} *.tmp
363365
mkdir -p ${cache_path}

0 commit comments

Comments
 (0)