summaryrefslogtreecommitdiff
path: root/network/rt3xxx/patches/Makefile.6.diff
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@yahoo.com>2011-01-29 23:08:53 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-01-30 09:15:30 -0600
commit1351898b8fef415a3e11ddb1b7f68459b526646c (patch)
tree3d64aa277b46d4ca5ce5ddeac23137a0381d0e1f /network/rt3xxx/patches/Makefile.6.diff
parent46c9bfb1f98fd317078db019265bf798e1d0ad6a (diff)
downloadslackbuilds-1351898b8fef415a3e11ddb1b7f68459b526646c.tar.gz
network/rt3xxx: Added (driver for rt3xxx chipsets)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/rt3xxx/patches/Makefile.6.diff')
-rw-r--r--network/rt3xxx/patches/Makefile.6.diff37
1 files changed, 37 insertions, 0 deletions
diff --git a/network/rt3xxx/patches/Makefile.6.diff b/network/rt3xxx/patches/Makefile.6.diff
new file mode 100644
index 0000000000..70660351e7
--- /dev/null
+++ b/network/rt3xxx/patches/Makefile.6.diff
@@ -0,0 +1,37 @@
+diff -Naur a/os/linux/Makefile.6 b/os/linux/Makefile.6
+--- a/os/linux/Makefile.6 2010-12-17 20:44:47.000000000 +0900
++++ b/os/linux/Makefile.6 2011-01-27 04:45:02.828981820 +0900
+@@ -4,7 +4,7 @@
+ #ifdef CONFIG_STA_SUPPORT
+ ifeq ($(RT28xx_MODE), STA)
+ MOD_NAME = rt$(CHIPSET)sta
+-DAT_PATH = /etc/Wireless/RT$(CHIPSET_DAT)STA
++DAT_PATH = /etc/rt3xxx/RT$(CHIPSET_DAT)STA
+ DAT_FILE_NAME = RT$(CHIPSET_DAT)STA.dat
+ endif
+ #endif // CONFIG_STA_SUPPORT //
+@@ -255,18 +255,14 @@
+ 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)
+- rm -rf $(addprefix $(LINUX_SRC_MODULE),$(addsuffix .ko,$(MOD_NAME)))
+- /sbin/depmod -a ${shell uname -r}
++ rm -rf $(addprefix $(DESTDIR)/$(LINUX_SRC_MODULE),$(addsuffix .ko,$(MOD_NAME)))
+
+ # Declare the contents of the .PHONY variable as phony. We keep that
+ # information in a variable so we can use it in if_changed and friends.
+