Re: compiling driver on a redhat system (7.2)

From: Santiago Gala (
Date: 2002-07-12 08:18:55 UTC

I've managed to do it.

If you have several kernels binaries around in the machine, this patch for the Makefile:

 VERFILE := $(KERNEL_PATH)/include/linux/version.h
-KERNELRELEASE := $(shell if [ -r $(VERFILE) ]; \

will install in the one you are running.

Alternatively you can just copy the module to the place where it tries to put it after successful make (I think /lib/modules/<release>/net), and execute "depmod -a"

At least this works for Mandrake, I don't know if Redhat kernel source is that different.

This archive was generated by hypermail 2.1.4.