Differences between revisions 1 and 2
Revision 1 as of 2011-04-11 12:45:30
Size: 468
Editor: MarkHymers
Comment:
Revision 2 as of 2011-04-11 12:46:23
Size: 427
Editor: MarkHymers
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)