Permalink
Browse files

Updated Makefile for packaging

  • Loading branch information...
1 parent 39b7a83 commit dbeec0010378102f01dc2a4e39bd41c43aeced1a @ArchangeGabriel ArchangeGabriel committed Sep 21, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 Makefile
View
@@ -1,6 +1,7 @@
obj-m := acpi_call.o
-KDIR := /lib/modules/$(shell uname -r)/build
+KVERSION := $(shell uname -r)
+KDIR := /lib/modules/$(KVERSION)/build
PWD := $(shell pwd)
default:
@@ -10,5 +11,5 @@ clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
load:
- -sudo /sbin/rmmod acpi_call
- sudo /sbin/insmod acpi_call.ko
+ -/sbin/rmmod acpi_call
+ /sbin/insmod acpi_call.ko

0 comments on commit dbeec00

Please sign in to comment.