Differences between revisions 3 and 4
Revision 3 as of 2011-04-11 12:47:05
Size: 423
Editor: MarkHymers
Comment:
Revision 4 as of 2012-10-16 20:31:48
Size: 429
Editor: ?GeoffreyThomas
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)