summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-26 18:50:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-26 18:50:44 +0000
commitc25bf32f8dc8cd47a1e78e1701dc79da55529f93 (patch)
tree30409e7ee9fa57efade9e03b6d73b5ff059f42ac /target/linux
parenta1b725bba5346a3f10e5569b4f19ea51b7743b9d (diff)
downloadmtk-20170518-c25bf32f8dc8cd47a1e78e1701dc79da55529f93.zip
mtk-20170518-c25bf32f8dc8cd47a1e78e1701dc79da55529f93.tar.gz
mtk-20170518-c25bf32f8dc8cd47a1e78e1701dc79da55529f93.tar.bz2
ar71xx: fix image size checks for WNDR3700
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45030
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index eac969f..3638969 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -13,7 +13,7 @@ JFFS2_BLOCKSIZE = 64k 128k 256k
KERNEL_LOADADDR = 0x80060000
-DEVICE_VARS += NETGEAR_KERNEL_MAGIC NETGEAR_BOARD NETGEAR_ID CMDLINE CONSOLE
+DEVICE_VARS += NETGEAR_KERNEL_MAGIC NETGEAR_BOARD NETGEAR_ID CMDLINE CONSOLE IMAGE_SIZE
define Build/netgear-squashfs
rm -rf $@.fs $@.squashfs
@@ -92,12 +92,14 @@ define Device/wndr3700
BOARDNAME = WNDR3700
NETGEAR_KERNEL_MAGIC = 0x33373030
NETGEAR_BOARD = WNDR3700
+ IMAGE_SIZE = 7680k
MTDPARTS = spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,7680k(firmware),64k(art)ro
IMAGES := sysupgrade.bin factory.img factory-NA.img
KERNEL := kernel-bin | patch-cmdline | lzma -d20 | netgear-uImage lzma
- IMAGE/sysupgrade.bin = append-kernel $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
- IMAGE/factory.img = $$(IMAGE/sysupgrade.bin) | netgear-image
- IMAGE/factory-NA.img = $$(IMAGE/sysupgrade.bin) | netgear-image NA
+ IMAGE/default = append-kernel $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
+ IMAGE/sysupgrade.bin = $$(IMAGE/default) | check-size $$$$(IMAGE_SIZE)
+ IMAGE/factory.img = $$(IMAGE/default) | netgear-image | check-size $$$$(IMAGE_SIZE)
+ IMAGE/factory-NA.img = $$(IMAGE/default) | netgear-image NA | check-size $$$$(IMAGE_SIZE)
endef
define Device/wndr3700v2
@@ -105,6 +107,7 @@ $(Device/wndr3700)
NETGEAR_BOARD = WNDR3700v2
NETGEAR_KERNEL_MAGIC = 0x33373031
NETGEAR_ID = 29763654+16+64
+ IMAGE_SIZE = 15872k
MTDPARTS = spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro
IMAGES := sysupgrade.bin factory.img
endef