[PATCH 2/4] image: add metadata independent of SUPPORTED_DEVICES

Jonas Lochmann openwrt at jonaslochmann.de
Sat Jan 3 08:37:03 PST 2026


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 <openwrt at jonaslochmann.de>
---
 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 > "$@.sha256sum"
 	[ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \
 		cp "$(BUILD_KEY).ucert" "$@.ucert" ;\
-- 
2.47.3




More information about the openwrt-devel mailing list