Pages

February 15, 2008

Make kernel module 2.6

To make kernel module under kernel 2.6, just rename module and execute make.
# cat Makefile 
obj-m := ptpatch2008.o

KDIR := /lib/modules/`uname -r`/build
PWD := `pwd`

default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

No comments:

Post a Comment