aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-31 09:28:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-10-31 09:28:50 +0000
commit1ad6f94ce6af8a54ae9a4d072b3a4949b77aab9a (patch)
treee911936886a584f9be22c1ff99ece9b9cfb4f41e /target/linux
parentfe1580af62a7f5b78b3fedc651dfac8aaf73d2b0 (diff)
downloadmaster-187ad058-1ad6f94ce6af8a54ae9a4d072b3a4949b77aab9a.tar.gz
master-187ad058-1ad6f94ce6af8a54ae9a4d072b3a4949b77aab9a.tar.bz2
master-187ad058-1ad6f94ce6af8a54ae9a4d072b3a4949b77aab9a.zip
ar71xx/image: introduce TPLINK_HEADER_VERSION variable for tplink image
Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47315 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index a659af9fa6..8cfad76263 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -48,6 +48,7 @@ endef
define Build/mktplinkfw
-$(STAGING_DIR_HOST)/bin/mktplinkfw \
-H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $2 \
+ -m $(TPLINK_HEADER_VERSION) \
-k $(word 1,$^) \
-r $@ \
-o $@.new \
@@ -62,6 +63,7 @@ endef
define Build/mktplinkfw-initramfs
$(STAGING_DIR_HOST)/bin/mktplinkfw \
-H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $2 \
+ -m $(TPLINK_HEADER_VERSION) \
-k $@ \
-o $@.new \
-s -S \
@@ -99,7 +101,7 @@ define Build/copy-file
cat "$(1)" > "$@"
endef
-DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT
+DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION
# UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
# UBNT_TYPE e.g. one of (BZ, XM, XW)
@@ -249,6 +251,7 @@ TARGET_DEVICES += wndr3700 wndr3700v2 wndr3800 wndr3800ch wndrmac wndrmacv2
define Device/tplink
TPLINK_HWREV := 0x1
+ TPLINK_HEADER_VERSION := 1
KERNEL := kernel-bin | patch-cmdline | lzma
KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-initramfs
IMAGES := sysupgrade.bin factory.bin
@@ -258,8 +261,9 @@ endef
define Device/tplink-chn-v2
$(Device/tplink)
- IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade "-m 2"
- IMAGE/factory.bin := append-rootfs | mktplinkfw factory "-m 2"
+ TPLINK_HEADER_VERSION := 2
+ IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade
+ IMAGE/factory.bin := append-rootfs | mktplinkfw factory
endef
define Device/tplink-nolzma