View difference between Paste ID: qmh3hPR1 and 3QGP5GXZ
SHOW: | | - or go back to the newest paste.
1
obj-m := wmi.o
2
3
KVERSION := $(shell uname -r)
4
KDIR := /lib/modules/$(KVERSION)/build
5
PWD := $(shell pwd)
6
7
default:
8
	[ -f wmi.c ] || wget 'http://git.kernel.org/?p=linux/kernel/git/next/linux-next-history.git;a=blob_plain;f=drivers/platform/x86/wmi.c;hb=HEAD' -O wmi.c
9
	$(MAKE) -C $(KDIR) M=$(PWD) modules
10
11
clean:
12
	$(MAKE) -C $(KDIR) M=$(PWD) clean
13
14
install:
15
	install -m 644 wmi.ko /lib/modules/$(KVERSION)/kernel/drivers/platform/x86/wmi.ko
16
	echo "Please reboot for the changes take effect"
17-
	echO "You need to run this every kernel update until it's fixed"
17+
	echo "You need to run this every kernel update until it's fixed"
18
19
20