summaryrefslogtreecommitdiff
path: root/target/linux/ramips/image/rt288x.mk
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-11-25 13:03:01 +0100
committerMathias Kresin <dev@kresin.me>2016-11-27 15:34:23 +0100
commit6cc0ae27b90f73a547130be7b5b25ea576615dd6 (patch)
tree6b7f7f722b245cc57b9e7e0fe5c38d85dde5f5c4 /target/linux/ramips/image/rt288x.mk
parent7cc0d8b3bdea8fcbf5ff36a0acceb652c152b507 (diff)
downloadmtk-20170518-6cc0ae27b90f73a547130be7b5b25ea576615dd6.zip
mtk-20170518-6cc0ae27b90f73a547130be7b5b25ea576615dd6.tar.gz
mtk-20170518-6cc0ae27b90f73a547130be7b5b25ea576615dd6.tar.bz2
ramips: fix Airlink AR670W factory image
Move the mkwrgimg build step to the makefile. It will be required by other boards as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/image/rt288x.mk')
-rw-r--r--target/linux/ramips/image/rt288x.mk10
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/ramips/image/rt288x.mk b/target/linux/ramips/image/rt288x.mk
index d9dd3ae..ab56fcc 100644
--- a/target/linux/ramips/image/rt288x.mk
+++ b/target/linux/ramips/image/rt288x.mk
@@ -6,13 +6,6 @@ define Build/gemtek-header
mkheader_gemtek $@ $@.new $(1) && mv $@.new $@
endef
-define Build/airlink-header
- mkwrgimg -i $@ \
- -d "/dev/mtdblock/2" \
- -s "wrgn16a_airlink_ar670w" \
- -o $@.new && mv $@.new $@
-endef
-
define Device/ar670w
DTS := AR670W
BLOCKSIZE := 64k
@@ -20,7 +13,8 @@ define Device/ar670w
IMAGE_SIZE := $(ralink_default_fw_size_4M)
KERNEL := $(KERNEL_DTB)
IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | gemtek-header ar725w
+ IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
+ wrg-header wrgn16a_airlink_ar670w
endef
TARGET_DEVICES += ar670w