Page 1 of 1

Creating general Patch for kernel driver

Posted: 2014/12/23 04:25:45
by lyf4sci
Hi Experts,

I am making changes to some of the device drivers by recompiling it and generate a new .ko file and install it. But in that case each of the different versions of linux I have to recompile and needs to be installed.
Instead how to create a patch for all the series in the Cent OS 5 version and to install it independent of machine ?

Re: Creating general Patch for kernel driver

Posted: 2014/12/23 13:00:42
by Super Jamie
This is what DKMS is for.

It's in RepoForge: http://pkgs.repoforge.org/dkms/

Re: Creating general Patch for kernel driver

Posted: 2014/12/23 17:04:23
by toracat
If what you mean by "all the series in the Cent OS 5 version" is 'all kernel versions of CentOS 5', then you have another option. That is to create a kABI-tracking kmod package as described in this CentOS wiki article.

Yet another option, which is the easiest, will be to ask ELRepo to provide such a kmod package.

Re: Creating general Patch for kernel driver

Posted: 2015/06/30 08:56:19
by lyf4sci
Thanks for the reply.