Huub van Niekerk wrote:
Hi,
I'm trying to build a kernel-module with g_NCR5380.c from the latest FC2
kernel, but it won't compile with success. I've tried this: gcc -c -O2
-Wall -D__KERNEL__ -DMODULE -isystem/lib/modules/`uname
-r`/build/include g_NCR5380.c but I get the error that irq_vectors.h
doesn't exist. When I try to make -C /lib/modules/`uname
-r`/build/include g_NCR5380.c, it says that there is no rule to make
target g_NCR5380.c
What am I doing wrong?
Try the sample makefile from:
http://www.captain.at/programming/kernel-2.6/
Building modules for kernel 2.6 is different (easier) as for 2.4 kernels.
Cheers,
Hannes.