From f7ec385c1381db731cd5f1d22fe31149ffcbbb5e Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Mon, 7 May 2018 22:41:04 +0200 Subject: ath79: add and enforce image metadata Add metadata to images and make the metdata mandatory. Signed-off-by: Mathias Kresin --- target/linux/ath79/image/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target/linux/ath79/image/Makefile') diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile index 9c789d4e0f..cbd205bc78 100644 --- a/target/linux/ath79/image/Makefile +++ b/target/linux/ath79/image/Makefile @@ -62,8 +62,10 @@ define Device/Default KERNEL := kernel-bin | append-dtb | lzma | uImage lzma KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma COMPILE := + SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) IMAGES := sysupgrade.bin - IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs + IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | \ + append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) endef ifeq ($(SUBTARGET),generic) -- cgit v1.2.3