projects
/
openwrt
/
staging
/
ldir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf19fd0
)
mediatek: fix append-gl-metadata when running in buildbot
author
Daniel Golle
<
[email protected]
>
Fri, 19 May 2023 08:31:36 +0000
(09:31 +0100)
committer
Daniel Golle
<
[email protected]
>
Fri, 19 May 2023 08:34:22 +0000
(09:34 +0100)
Use same logic as in append-metadata so build doesn't fail in case of
missing build-key (it was previously failing on the buildbot runners).
Signed-off-by: Daniel Golle <
[email protected]
>
target/linux/mediatek/image/filogic.mk
patch
|
blob
|
history
diff --git
a/target/linux/mediatek/image/filogic.mk
b/target/linux/mediatek/image/filogic.mk
index 5c8b47c662f3157e7f1d10f72a5ab609f20d6e7b..7159917ff45bbe33a302b889a776357ba0ef34ca 100644
(file)
--- a/
target/linux/mediatek/image/filogic.mk
+++ b/
target/linux/mediatek/image/filogic.mk
@@
-58,9
+58,12
@@
metadata_gl_json = \
define Build/append-gl-metadata
$(if $(SUPPORTED_DEVICES),-echo $(call metadata_gl_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@)
- [ ! -s "$(BUILD_KEY)" -o ! -s "$@" ] || { \
+ sha256sum "$@" | cut -d" " -f1 > "
[email protected]
"
+ [ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \
+ cp "$(BUILD_KEY).ucert" "
[email protected]
" ;\
usign -S -m "$@" -s "$(BUILD_KEY)" -x "
[email protected]
" ;\
- fwtool -S "
[email protected]
" "$@" ;\
+ ucert -A -c "
[email protected]
" -x "
[email protected]
" ;\
+ fwtool -S "
[email protected]
" "$@" ;\
}
endef