Advertisement
Lekensteyn

WMI fix

Nov 2nd, 2011
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.56 KB | None | 0 0
  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"
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement