summaryrefslogtreecommitdiff
path: root/network/rt5370/patches
diff options
context:
space:
mode:
authorRoberto Neri <rneri@libero.it>2012-07-30 01:20:13 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-07-30 01:20:13 -0500
commit71040f50aeb70f7c4dcff3e6246f8656134eacd4 (patch)
tree7bfec71d2ca9f27ff84f2d42a59bd113db9d9759 /network/rt5370/patches
parenta77891b22da1990072964ac40651f659faf4eaae (diff)
downloadslackbuilds-71040f50aeb70f7c4dcff3e6246f8656134eacd4.tar.gz
network/rt5370: Added (driver for Ralink RT5370 USB WLAN Card)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/rt5370/patches')
-rw-r--r--network/rt5370/patches/Makefile.4.diff20
-rw-r--r--network/rt5370/patches/Makefile.4.netif.diff14
-rw-r--r--network/rt5370/patches/Makefile.4.util.diff14
-rw-r--r--network/rt5370/patches/Makefile.6.diff20
-rw-r--r--network/rt5370/patches/Makefile.6.netif.diff14
-rw-r--r--network/rt5370/patches/Makefile.6.util.diff17
-rw-r--r--network/rt5370/patches/Makefile.diff33
-rw-r--r--network/rt5370/patches/config.mk.diff25
8 files changed, 157 insertions, 0 deletions
diff --git a/network/rt5370/patches/Makefile.4.diff b/network/rt5370/patches/Makefile.4.diff
new file mode 100644
index 0000000000..f57772388a
--- /dev/null
+++ b/network/rt5370/patches/Makefile.4.diff
@@ -0,0 +1,20 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/Makefile.4 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile.4 2012-06-20 14:34:49.503183209 +0200
+@@ -266,13 +266,10 @@
+ endif
+
+ install:
+- rm -rf $(DAT_PATH)
+- $(shell [ ! -f /etc/Wireless ] && mkdir /etc/Wireless)
+- mkdir $(DAT_PATH)
+- cp $(RT28xx_DIR)/$(DAT_FILE_NAME) $(DAT_PATH)/.
+- install -d $(LINUX_SRC_MODULE)
+- install -m 644 -c $(addsuffix .o,$(MOD_NAME)) $(LINUX_SRC_MODULE)
+- /sbin/depmod -a ${shell uname -r}
++ mkdir -p $(DESTDIR)/$(DAT_PATH)
++ cp $(RT28xx_DIR)/$(DAT_FILE_NAME) $(DESTDIR)/$(DAT_PATH)
++ install -d $(DESTDIR)/$(LINUX_SRC_MODULE)
++ install -m 644 -c $(addsuffix .o,$(MOD_NAME)) $(DESTDIR)/$(LINUX_SRC_MODULE)
+
+ uninstall:
+ # rm -rf $(DAT_PATH)
diff --git a/network/rt5370/patches/Makefile.4.netif.diff b/network/rt5370/patches/Makefile.4.netif.diff
new file mode 100644
index 0000000000..8a7a7f744f
--- /dev/null
+++ b/network/rt5370/patches/Makefile.4.netif.diff
@@ -0,0 +1,14 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/Makefile.4.netif 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile.4.netif 2012-06-20 14:37:13.111387859 +0200
+@@ -362,9 +362,8 @@
+ endif
+
+ install:
+- install -d $(LINUX_SRC_MODULE)
+- install -m 644 -c $(addsuffix .o,$(MOD_NAME)) $(LINUX_SRC_MODULE)
+- /sbin/depmod -a ${shell uname -r}
++ install -d $(DESTDIR)/$(LINUX_SRC_MODULE)
++ install -m 644 -c $(addsuffix .o,$(MOD_NAME)) $(DESTDIR)/$(LINUX_SRC_MODULE)
+
+ uninstall:
+ rm -rf $(addprefix $(LINUX_SRC_MODULE),$(addsuffix .o,$(MOD_NAME)))
diff --git a/network/rt5370/patches/Makefile.4.util.diff b/network/rt5370/patches/Makefile.4.util.diff
new file mode 100644
index 0000000000..ef739885a2
--- /dev/null
+++ b/network/rt5370/patches/Makefile.4.util.diff
@@ -0,0 +1,14 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/Makefile.4.util 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile.4.util 2012-06-20 14:38:28.727442528 +0200
+@@ -97,9 +97,8 @@
+ endif
+
+ install:
+- install -d $(LINUX_SRC_MODULE)
+- install -m 644 -c $(addsuffix .o,$(MOD_NAME)) $(LINUX_SRC_MODULE)
+- /sbin/depmod -a ${shell uname -r}
++ install -d $(DESTDIR)/$(LINUX_SRC_MODULE)
++ install -m 644 -c $(addsuffix .o,$(MOD_NAME)) $(DESTDIR)/$(LINUX_SRC_MODULE)
+
+ uninstall:
+ rm -rf $(addprefix $(LINUX_SRC_MODULE),$(addsuffix .o,$(MOD_NAME)))
diff --git a/network/rt5370/patches/Makefile.6.diff b/network/rt5370/patches/Makefile.6.diff
new file mode 100644
index 0000000000..6f3360d182
--- /dev/null
+++ b/network/rt5370/patches/Makefile.6.diff
@@ -0,0 +1,20 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/Makefile.6 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile.6 2012-06-20 14:40:03.119262468 +0200
+@@ -356,13 +356,10 @@
+ endif
+
+ install:
+- rm -rf $(DAT_PATH)
+- $(shell [ ! -f /etc/Wireless ] && mkdir /etc/Wireless)
+- mkdir $(DAT_PATH)
+- cp $(RT28xx_DIR)/$(DAT_FILE_NAME) $(DAT_PATH)/.
+- install -d $(LINUX_SRC_MODULE)
+- install -m 644 -c $(addsuffix .ko,$(MOD_NAME)) $(LINUX_SRC_MODULE)
+- /sbin/depmod -a ${shell uname -r}
++ mkdir -p $(DESTDIR)/$(DAT_PATH)
++ cp $(RT28xx_DIR)/$(DAT_FILE_NAME) $(DESTDIR)/$(DAT_PATH)
++ install -d $(DESTDIR)/$(LINUX_SRC_MODULE)
++ install -m 644 -c $(addsuffix .ko,$(MOD_NAME)) $(DESTDIR)/$(LINUX_SRC_MODULE)
+
+ uninstall:
+ # rm -rf $(DAT_PATH)
diff --git a/network/rt5370/patches/Makefile.6.netif.diff b/network/rt5370/patches/Makefile.6.netif.diff
new file mode 100644
index 0000000000..be0769f451
--- /dev/null
+++ b/network/rt5370/patches/Makefile.6.netif.diff
@@ -0,0 +1,14 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/Makefile.6.netif 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile.6.netif 2012-06-20 14:41:11.367409249 +0200
+@@ -371,9 +371,8 @@
+ endif
+
+ install:
+- install -d $(LINUX_SRC_MODULE)
+- install -m 644 -c $(addsuffix .ko,$(MOD_NAME)) $(LINUX_SRC_MODULE)
+- /sbin/depmod -a ${shell uname -r}
++ install -d $(DESTDIR)/$(LINUX_SRC_MODULE)
++ install -m 644 -c $(addsuffix .ko,$(MOD_NAME)) $(DESTDIR)/$(LINUX_SRC_MODULE)
+
+ uninstall:
+ rm -rf $(addprefix $(LINUX_SRC_MODULE),$(addsuffix .ko,$(MOD_NAME)))
diff --git a/network/rt5370/patches/Makefile.6.util.diff b/network/rt5370/patches/Makefile.6.util.diff
new file mode 100644
index 0000000000..a469ef342d
--- /dev/null
+++ b/network/rt5370/patches/Makefile.6.util.diff
@@ -0,0 +1,17 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/Makefile.6.util 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile.6.util 2012-06-20 14:42:29.777428989 +0200
+@@ -106,10 +106,9 @@
+ endif
+
+ install:
+- install -d $(LINUX_SRC_MODULE)
+- install -m 644 -c $(addsuffix .ko,$(MOD_NAME)) $(LINUX_SRC_MODULE)
+- /sbin/depmod -a ${shell uname -r}
++ install -d $(DESTDIR)/$(LINUX_SRC_MODULE)
++ install -m 644 -c $(addsuffix .ko,$(MOD_NAME)) $(DESTDIR)/$(LINUX_SRC_MODULE)
+
+ uninstall:
+ rm -rf $(addprefix $(LINUX_SRC_MODULE),$(addsuffix .ko,$(MOD_NAME)))
+- /sbin/depmod -a ${shell uname -r}
+\ No newline at end of file
++ /sbin/depmod -a ${shell uname -r}
diff --git a/network/rt5370/patches/Makefile.diff b/network/rt5370/patches/Makefile.diff
new file mode 100644
index 0000000000..58dc8e17e9
--- /dev/null
+++ b/network/rt5370/patches/Makefile.diff
@@ -0,0 +1,33 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/Makefile 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/Makefile 2012-06-20 15:13:00.545541237 +0200
+@@ -170,10 +170,10 @@
+
+ ifeq ($(PLATFORM),PC)
+ # Linux 2.6
+-LINUX_SRC = /lib/modules/$(shell uname -r)/build
++LINUX_SRC = /lib/modules/$(KERNEL)/build
+ # Linux 2.4 Change to your local setting
+ #LINUX_SRC = /usr/src/linux-2.4
+-LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
++LINUX_SRC_MODULE = /lib/modules/$(KERNEL)/kernel/drivers/net/wireless/
+ CROSS_COMPILE =
+ endif
+
+@@ -339,7 +339,7 @@
+ cp -f $(RT28xx_DIR)/os/linux/rtnet$(CHIPSET)apsta.o /tftpboot
+ endif
+ else
+- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.o /tftpboot
++ true
+ ifeq ($(OSABL),YES)
+ cp -f $(RT28xx_DIR)/os/linux/rtutil$(CHIPSET)sta.o /tftpboot
+ cp -f $(RT28xx_DIR)/os/linux/rtnet$(CHIPSET)sta.o /tftpboot
+@@ -385,7 +385,7 @@
+ cp -f $(RT28xx_DIR)/os/linux/rtnet$(CHIPSET)apsta.ko /tftpboot
+ endif
+ else
+- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko /tftpboot
++ true
+ ifeq ($(OSABL),YES)
+ cp -f $(RT28xx_DIR)/os/linux/rtutil$(CHIPSET)sta.ko /tftpboot
+ cp -f $(RT28xx_DIR)/os/linux/rtnet$(CHIPSET)sta.ko /tftpboot
diff --git a/network/rt5370/patches/config.mk.diff b/network/rt5370/patches/config.mk.diff
new file mode 100644
index 0000000000..c726100a64
--- /dev/null
+++ b/network/rt5370/patches/config.mk.diff
@@ -0,0 +1,25 @@
+--- 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.orig/os/linux/config.mk 2011-07-19 10:56:36.000000000 +0200
++++ 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/config.mk 2012-06-20 08:51:51.680101903 +0200
+@@ -40,7 +40,7 @@
+ HAS_RSSI_FEEDBACK=n
+
+ # Support XLINK mode
+-HAS_XLINK=n
++HAS_XLINK=y
+
+
+ HAS_NINTENDO=n
+@@ -53,11 +53,11 @@
+ HAS_APCLI=n
+
+ # Support Wpa_Supplicant
+-HAS_WPA_SUPPLICANT=n
++HAS_WPA_SUPPLICANT=y
+
+
+ # Support Native WpaSupplicant for Network Maganger
+-HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
++HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
+
+ #Support Net interface block while Tx-Sw queue full
+ HAS_BLOCK_NET_IF=n