[LEDE-DEV] [PATCH 1/5] build: append metadata for supported images.gz
Christian Lamparter
chunkeey at gmail.com
Tue Nov 28 13:51:05 PST 2017
Targets that either directly or indirectly set
CONFIG_TARGET_IMAGES_GZIP currently have no way
to append the metadata at the end of new image
creation process. And this is going to be
necessary in order to convert the targets to use
the new fwtool assisted platform check.
These will include for example x86(_64), RPI, and
MyBook Live images.
Note: append-metadata does internally check if
SUPPORTED_DEVICES is set, before adding the
metadata. Hence, it will not interfere with
existing targets that have not been converted.
Cc: Felix Fietkau <nbd at nbd.name>
Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
include/image.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/image.mk b/include/image.mk
index f4d0a157cd..a7342c9d53 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -494,6 +494,7 @@ define Device/Build/image
$(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2)).gz: $(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2))
gzip -c -9n $$^ > $$@
+ $$(call Build/append-metadata)
$(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2)): $(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2))
cp $$^ $$@
--
2.15.0
More information about the Lede-dev
mailing list