summaryrefslogtreecommitdiffstats
path: root/abs/extra/sapphire/sapphire.patch
blob: 93e40474e8d79e105be37f78c8dcf758c2e149d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
diff -ruaN sapphire-3.4.orig//Makefile sapphire-3.4/Makefile
--- sapphire-3.4.orig//Makefile	2012-04-23 02:33:11.000000000 +0000
+++ sapphire-3.4/Makefile	2012-04-23 05:23:07.000000000 +0000
@@ -5,7 +5,7 @@
 MODNAME=sapphire
 MODSOURCE=$(MODNAME).c
 CONFLICTS=hid_topseed
-BLACKLIST=/etc/modprobe.d/blacklist-$(CONFLICTS).conf
+BLACKLIST=$(DESTDIR)/etc/modprobe.d/blacklist-$(CONFLICTS).conf
 KEYMAP_SCRIPT=sapphire_keymap.sh
 EXTRACT_KEYDEFS=extract_keydefs.sh
 INPUT_H=/usr/include/linux/input.h
@@ -39,13 +39,13 @@
 
 modinstall: $(MODNAME).ko $(KEYMAP_SCRIPT)
 	$(MAKE) -C $(KDIR)/build M=`pwd` modules_install
-	depmod $(KVER)
-	@if [ "$(KVER)" = "$$(uname -r)" ]; then \
-		rmmod $(MODNAME)   2>/dev/null ;\
-		rmmod $(CONFLICTS) 2>/dev/null ;\
-		modprobe -v $(MODNAME) ;\
-		[ -e /etc/sapphire.keymap ] && ./$(KEYMAP_SCRIPT) /etc/sapphire.keymap ;\
-	fi
+#	depmod $(KVER)
+#	@if [ "$(KVER)" = "$$(uname -r)" ]; then \
+#		rmmod $(MODNAME)   2>/dev/null ;\
+#		rmmod $(CONFLICTS) 2>/dev/null ;\
+#		modprobe -v $(MODNAME) ;\
+#		[ -e /etc/sapphire.keymap ] && ./$(KEYMAP_SCRIPT) /etc/sapphire.keymap ;\
+#	fi
 
 clean:
 	$(MAKE) -C $(KDIR)/build M=`pwd` clean
@@ -62,7 +62,7 @@
 	depmod
 
 install: $(MODNAME).ko clean_modparms modinstall $(BLACKLIST) $(KEYMAP_SCRIPT)
-	install -m 0755 $(KEYMAP_SCRIPT) /usr/local/bin/
-	sync
+#	install -m 0755 $(KEYMAP_SCRIPT) /usr/local/bin/
+#	sync
 
 all: install