diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 18:50:44 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 18:50:44 +0000 |
commit | ef1773c07cf4f388187e7bfb911665b9a5f3dc08 (patch) | |
tree | ef4316241f74e32353b05c56de8039b9b62029b2 /target/linux/ar71xx/image/Makefile | |
parent | 9cf98d38cad035942ceeb2c195f6ef3188db69f0 (diff) | |
download | upstream-ef1773c07cf4f388187e7bfb911665b9a5f3dc08.tar.gz upstream-ef1773c07cf4f388187e7bfb911665b9a5f3dc08.tar.bz2 upstream-ef1773c07cf4f388187e7bfb911665b9a5f3dc08.zip |
ar71xx: fix image size checks for WNDR3700
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45030 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/image/Makefile')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index eac969ffb8..36389698f8 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 |