Linux – Compiling kernel modules in Arch Linux

linux-kernel

I'm currently running Arch Linux on linux-3.0-ARCH and I'm looking to compile kernel modules written for linux-2.6.22.14.

I've only compiled kernel modules on a pre-configured debian. So all I had to know was the location for the kernel source and how to edit the module's Makefile accordingly.

But since I'm trying this on my machine now, I downloaded the source for 2.6.22.14 and put it in /root/. I changed the Makefile for the module to point to this and I executed 'make'. All I get now is:

Makefile:1443: *** mixed implicit and normal rules. Stop.

Someone once said I'd have to compile this kernel source. If so, is there an easier way to obtain the compiled version, to plug here instead of the source code?

Best Answer

You may be missing the kernel headers package: pacman -S linux-headers

That should get you the appropriate kernel headers.

Related Question