|
Size: 423
Comment:
|
← Revision 4 as of 2012-10-16 20:31:48 ⇥
Size: 429
Comment: fix makefile
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 9: | Line 9: |
| KVER := $(uname -r) | KVER := $(shell uname -r) |
This page contains brief notes on building well-behaved Out-Of-Tree kernel modules .
The kernel headers package needed can be found using linux-headers-$(uname -r)
If the Makefile is well behaved, it should be as simple as running make
A well behaved Makefile will contain something like
KVER := $(shell uname -r)
KPATH := /lib/modules/$(KVER)/build
all:
$(MAKE) -C $(KPATH) M=$(CURDIR)