aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-06-14 13:09:14 +0200
committerDavid Bauer <mail@david-bauer.net>2020-06-14 13:09:59 +0200
commit5b50895a631018e7b0688b9634a486d45338465e (patch)
tree20d2238a0893b1f77e948c903046f0924e1a2654 /target/linux
parent69e7d14e1b6e402c9970e6e8834c510f0b7ad836 (diff)
downloadupstream-5b50895a631018e7b0688b9634a486d45338465e.tar.gz
upstream-5b50895a631018e7b0688b9634a486d45338465e.tar.bz2
upstream-5b50895a631018e7b0688b9634a486d45338465e.zip
ipq40xx: add image size checks for several devices
This adds image size checks for various devies using an automatic mtdsplit. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ipq40xx/image/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile
index 7ca26ba517..51849e06f6 100644
--- a/target/linux/ipq40xx/image/Makefile
+++ b/target/linux/ipq40xx/image/Makefile
@@ -48,7 +48,8 @@ define Device/DniImage
NETGEAR_HW_ID :=
IMAGES := factory.img sysupgrade.bin
IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
- IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata
+ IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | \
+ append-rootfs | pad-rootfs | append-metadata | check-size
endef
define Build/append-rootfshdr
@@ -215,7 +216,7 @@ define Device/avm_fritzbox-4040
UBOOT_PARTITION_SIZE := 524288
IMAGES = eva.bin sysupgrade.bin
IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
- IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size
DEVICE_PACKAGES := fritz-tffs fritz-caldata
endef
TARGET_DEVICES += avm_fritzbox-4040
@@ -527,6 +528,7 @@ define Device/netgear_ex61x0v2
DEVICE_DTS_CONFIG := config@4
NETGEAR_BOARD_ID := EX6150v2series
NETGEAR_HW_ID := 29765285+16+0+128+2x2
+ IMAGE_SIZE := 14400k
SOC := qcom-ipq4018
endef
@@ -681,8 +683,9 @@ define Device/zyxel_wre6606
DEVICE_MODEL := WRE6606
DEVICE_DTS_CONFIG := config@4
SOC := qcom-ipq4018
+ IMAGE_SIZE := 13184k
IMAGES := sysupgrade.bin
- IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size
DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
endef
TARGET_DEVICES += zyxel_wre6606