treewide: call check-size before append-metadata

sysupgrade metadata is not flashed to the device, so check-size
should be called _before_ adding metadata to the image.

While at it, do some obvious wrapping improvements.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Adrian Schmutzler
2021-06-20 18:54:36 +02:00
parent 918908fe76
commit cce8d16bf1
23 changed files with 64 additions and 75 deletions

View File

@@ -24,7 +24,7 @@ define Device/Default
DEVICE_DTS = $$(SOC)_$(1)
IMAGES := sysupgrade.bin
IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | \
append-metadata | check-size
check-size | append-metadata
endef
# "NGE" refers to the uImage magic