Browse Source

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 <[email protected]>
Daniel Golle 7 years ago
parent
commit
ec78f03de5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/image-commands.mk

+ 1 - 1
include/image-commands.mk

@@ -309,7 +309,7 @@ metadata_json = \
 
 define Build/append-metadata
 	$(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" "[email protected]" ;\
 		usign -S -m "$@" -s "$(BUILD_KEY)" -x "[email protected]" ;\
 		ucert -A -c "[email protected]" -x "[email protected]" ;\