How to deliver a kernel module that doesn't have to be rebuilt for every kernel update

Latest response

We are using the open source project riffa to generate a kernel module to communicate with a PCIe card

At the moment we build effectively a kmod rpm, i.e. the .ko file we deliver was built against and is specific to only one exact kernel version

This means that for every kernel update we need to rebuild our riffa.ko against the new kernel and generate a new rpm to deliver it

I have seen mention of akmod and dkms being ways of getting the kernel module to be rebuilt on the fly when a kernel update occurs but neither of these packages are in the core RHEL 6 rpms (although they are available from EPEL)

As those tools are not part of the standard rhel6 distribution is there some other way we should be doing this ?

Alec Keeler

Responses