build: avoid failing in append-metadata if image could not be generated
authorFelix Fietkau <nbd@nbd.name>
Mon, 4 Dec 2017 19:24:24 +0000 (20:24 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 4 Dec 2017 19:24:51 +0000 (20:24 +0100)
The image build might have failed due to a size check

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/image-commands.mk

index 1ec5252..8db046b 100644 (file)
@@ -281,7 +281,7 @@ metadata_json = \
        }'
 
 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 - $@)
 endef
 
 define Build/kernel2minor