Currently, image metadata is not added if SUPPORTED_DEVICES is empty.
This conditions is fulfilled for generic arm and x86 builds. Without
the metadata, the pre upgrade compatibility checks are skipped.

Signed-off-by: Jonas Lochmann <[email protected]>
---
 include/image-commands.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/image-commands.mk b/include/image-commands.mk
index feeeb5b074..c394c9136c 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -89,7 +89,7 @@ metadata_json = \
        }'
 
 define Build/append-metadata
-       $(if $(SUPPORTED_DEVICES),-echo $(call metadata_json) | fwtool -I - $@)
+       -echo $(call metadata_json) | fwtool -I - $@
        sha256sum "$@" | cut -d" " -f1 > "[email protected]"
        [ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \
                cp "$(BUILD_KEY).ucert" "[email protected]" ;\
-- 
2.47.3


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to