This adds options for 4 8 and 16Mib (hacked) versions of
the firmware. 16MiB version relies on the previous patch
to mktplinkfw. This also adds the required profile

Signed-off-by: Andrew 'Necromant' Andrianov <[email protected]>
---
 target/linux/ar71xx/generic/profiles/mercury.mk |   15 +++++++++++++++
 target/linux/ar71xx/image/Makefile              |    9 +++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 target/linux/ar71xx/generic/profiles/mercury.mk

diff --git a/target/linux/ar71xx/generic/profiles/mercury.mk 
b/target/linux/ar71xx/generic/profiles/mercury.mk
new file mode 100644
index 0000000..9474d36
--- /dev/null
+++ b/target/linux/ar71xx/generic/profiles/mercury.mk
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/MW150R
+        NAME:=Mercury MW150R
+        PACKAGES:=kmod-usb-core kmod-usb2
+endef
+define Profile/MW150R/Description
+        Package set optimized for the Mercury MW150R.
+endef
+$(eval $(call Profile,MW150R))
diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 6c2581d..6039f2b 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -948,6 +948,14 @@ define Image/Build/Profile/TLWR743
        $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK,tl-wr743nd-v1,$(tlwr741_cmdline),0x07430001,1,4M)
 endef
 
+mw150r_cmdline=board=MERCURY-MW150R console=ttyATH0,115200
+# Hacked Mercury MW150R with u-boot from WR703N, flash sizes: 16 8 and 4 Mibs
+define Image/Build/Profile/MW150R
+       $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,mecury-mw150r-16m,$(mw150r_cmdline),0x07030101,1,16Mlzma)
+       $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,mecury-mw150r-8m,$(mw150r_cmdline),0x07030101,1,8Mlzma)
       
+       $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,mecury-mw150r-4m,$(mw150r_cmdline),0x07030101,1,4Mlzma)
       
+endef
+
 tlwr841v15_cmdline=board=TL-WR841N-v1.5 console=ttyS0,115200
 tlwr841v3_cmdline=board=TL-WR941ND console=ttyS0,115200
 tlwr841v5_cmdline=board=TL-WR741ND console=ttyS0,115200
@@ -1140,6 +1148,7 @@ define Image/Build/Profile/Default
        $(call Image/Build/Profile/WZRHPG450H,$(1))
        $(call Image/Build/Profile/ZCN1523H28,$(1))
        $(call Image/Build/Profile/ZCN1523H516,$(1))
+       $(call Image/Build/Profile/MW150R,$(1))
 endef
 
 define Image/Build/Profile/Minimal
-- 
1.7.6

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to