mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
image: fix build without ucert
Make sure the Shell-expression returns true also in case of
key-build.ucert being absent.
Fixes commit 848b455d2e
("image: use ucert to append signature")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
848b455d2e
commit
ec78f03de5
@ -309,7 +309,7 @@ metadata_json = \
|
|||||||
|
|
||||||
define Build/append-metadata
|
define Build/append-metadata
|
||||||
$(if $(SUPPORTED_DEVICES),-echo $(call metadata_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@)
|
$(if $(SUPPORTED_DEVICES),-echo $(call metadata_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@)
|
||||||
[ -s "$(BUILD_KEY)" -a -s "$(BUILD_KEY).ucert" ] && { \
|
[ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" ] || { \
|
||||||
cp "$(BUILD_KEY).ucert" "$@.ucert" ;\
|
cp "$(BUILD_KEY).ucert" "$@.ucert" ;\
|
||||||
usign -S -m "$@" -s "$(BUILD_KEY)" -x "$@.sig" ;\
|
usign -S -m "$@" -s "$(BUILD_KEY)" -x "$@.sig" ;\
|
||||||
ucert -A -c "$@.ucert" -x "$@.sig" ;\
|
ucert -A -c "$@.ucert" -x "$@.sig" ;\
|
||||||
|
Loading…
Reference in New Issue
Block a user