I am trying to create a kernel module package, which consists of a single C file which must be compiled using the 2.6 kernel build system.
I already have a makefile for my 386 system, which looks like this:
obj-m := my-module.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Can someone suggest a suitable template package Makefile?