Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- obj-m := wmi.o
- KVERSION := $(shell uname -r)
- KDIR := /lib/modules/$(KVERSION)/build
- PWD := $(shell pwd)
- default:
- [ -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
- $(MAKE) -C $(KDIR) M=$(PWD) modules
- clean:
- $(MAKE) -C $(KDIR) M=$(PWD) clean
- install:
- install -m 644 wmi.ko /lib/modules/$(KVERSION)/kernel/drivers/platform/x86/wmi.ko
- echo "Please reboot for the changes take effect"
- echO "You need to run this every kernel update until it's fixed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement