diff options
author | Mathias Kresin <dev@kresin.me> | 2016-11-26 10:43:34 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-11-27 15:34:23 +0100 |
commit | 4780e7e994d549a375bbfba02faef9a2bb2a6ea8 (patch) | |
tree | 0646509cbee210ea050a846130c1db1cdd0a552c /target/linux/ramips/image/rt3883.mk | |
parent | 6cc0ae27b90f73a547130be7b5b25ea576615dd6 (diff) | |
download | mtk-20170518-4780e7e994d549a375bbfba02faef9a2bb2a6ea8.zip mtk-20170518-4780e7e994d549a375bbfba02faef9a2bb2a6ea8.tar.gz mtk-20170518-4780e7e994d549a375bbfba02faef9a2bb2a6ea8.tar.bz2 |
ramips: add size checks/append metadata where missing
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/image/rt3883.mk')
-rw-r--r-- | target/linux/ramips/image/rt3883.mk | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/target/linux/ramips/image/rt3883.mk b/target/linux/ramips/image/rt3883.mk index 5fe4a71..abece50 100644 --- a/target/linux/ramips/image/rt3883.mk +++ b/target/linux/ramips/image/rt3883.mk @@ -7,7 +7,8 @@ define Device/br-6475nd BLOCKSIZE := 64k IMAGE_SIZE := 7744k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ - edimax-header -s CSYS -m RN54 -f 0x70000 -S 0x01100000 | pad-rootfs | append-metadata + edimax-header -s CSYS -m RN54 -f 0x70000 -S 0x01100000 | pad-rootfs | \ + append-metadata | check-size $$$$(IMAGE_SIZE) DEVICE_TITLE := Edimax BR-6475nD DEVICE_PACKAGES := swconfig endef @@ -69,7 +70,8 @@ define Device/tew-691gr DTS := TEW-691GR BLOCKSIZE := 64k IMAGES += factory.bin - IMAGE/factory.bin := $$(sysupgrade_bin) | umedia-header 0x026910 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + umedia-header 0x026910 DEVICE_TITLE := TRENDnet TEW-691GR DEVICE_PACKAGES := swconfig endef @@ -80,7 +82,8 @@ define Device/tew-692gr DTS := TEW-692GR BLOCKSIZE := 64k IMAGES += factory.bin - IMAGE/factory.bin := $$(sysupgrade_bin) | umedia-header 0x026920 + IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + umedia-header 0x026920 DEVICE_TITLE := TRENDnet TEW-692GR DEVICE_PACKAGES := swconfig endef @@ -92,27 +95,9 @@ define Device/wlr-6000 BLOCKSIZE := 4k IMAGE_SIZE := 7244k IMAGES += factory.dlf - IMAGE/factory.dlf := \ - $$(sysupgrade_bin) | senao-header -r 0x0202 -p 0x41 -t 2 + IMAGE/factory.dlf := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + senao-header -r 0x0202 -p 0x41 -t 2 DEVICE_TITLE := Sitecom WLR-6000 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig endef TARGET_DEVICES += wlr-6000 - - -define BuildFirmware/RTN56U/squashfs - $(call BuildFirmware/Default8M/$(1),$(1),rt-n56u,RT-N56U) - -mkrtn56uimg -s $(call sysupname,$(1),rt-n56u) - -cp $(call sysupname,$(1),rt-n56u) $(call imgname,$(1),rt-n56u)-factory.bin - -mkrtn56uimg -f $(call imgname,$(1),rt-n56u)-factory.bin -endef - -Image/Build/Profile/RTN56U=$(call BuildFirmware/RTN56U/$(1),$(1),rt-n56u,RT-N56U) - - -define LegacyDevice/RTN56U - BLOCKSIZE := 64k - DEVICE_TITLE := Asus RT-N56U - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig -endef -LEGACY_DEVICES += RTN56U |