|
⇤ ← Revision 1 as of 2011-04-11 12:45:30
Size: 468
Comment:
|
Size: 427
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| If the Makefile is well behaved, it should be as simple as: {{{ make -C /lib/modules/$(uname -r)/build M=${PWD} }}} |
If the Makefile is well behaved, it should be as simple as running {{{make}}} |
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 := $(uname -r)
KPATH := /lib/modules/$(KVER)/build
default:
$(MAKE) -C $(KPATH) M=$(CURDIR)