[PLUG] Building kernel module RPM for all kernel version in RHEL 6

2014-03-09 Thread Abhijeet Kasurde
Hi All,

I want to create a RPM package out of source tar file to support all
kernel versions in RHEL 6.

I have created a RPM-spec file for kernel 2.6.32-358 (RHEL 6.4), and
it gives me working RPM. Now here is problem, when I install that same
RPM on kernel 2.6.32-279 (RHEL 6.3), modprobe fails as .ko file goes
in /lib/modules/2.6.32-358.el6-x86_64/extra.

What do I do to support all other kernel versions and kernel patches
using this RPM ?
Please give some hint to create unified build system ?

Thanks,
Abhijeet Kasurde

___
Pune GNU/Linux Users Group Mailing List 


Re: [PLUG] Building kernel module RPM for all kernel version in RHEL 6

2014-03-09 Thread Sankarshan Mukhopadhyay
On Fri, Mar 7, 2014 at 7:40 PM, Abhijeet Kasurde
 wrote:
> I have created a RPM-spec file for kernel 2.6.32-358 (RHEL 6.4), and
> it gives me working RPM. Now here is problem, when I install that same
> RPM on kernel 2.6.32-279 (RHEL 6.3), modprobe fails as .ko file goes
> in /lib/modules/2.6.32-358.el6-x86_64/extra.

A reasonably clean way is to compile your kernel module for each new
version of the kernel that you want to work with. Would it be possible
for you to explain a bit more about why you do not want to take that
route?


-- 
sankarshan mukhopadhyay


___
Pune GNU/Linux Users Group Mailing List