Hi Matthias, > Jon Masters wrote : > >> On Fri, 2010-04-30 at 16:24 +0200, Matthias Saou wrote: >> > RuoMu Hu wrote : >> > >> > > Hi Jon, >> > > >> > > 2010/4/27 Jon Masters <[email protected]>: >> > > > On Fri, 2010-04-23 at 18:40 +0800, RuoMu Hu wrote: >> > > > >> > > >> I needed to build an out of tree xfs kernel module for RHEL5.4 kernel, >> > > >> I did it in the RHEL style ( like in http://driverupdateprogram.com/ >> > > >> ). The problems are: >> > > > >> > > >> 1) The built binary kmod rpm is not stripped (size xfs.ko is 13M) >> > > >> 2) The built debuginfo package contains nothing >> > > > >> > > > Driver Updates (kmods) generally aren't stripped, but 13MB is >> > > > impressive >> > > > indeed. Is that a standard build of just the XFS source? >> > > > >> > > > Jon. >> > > >> > > Yes, it is a standard build, with all features enabled. I just don't >> > > understand why output debuginfo package is empty. >> > >> > This might be because the *.ko file isn't executable. Try just making >> > it +x in the %install section, that should fix it. >> >> You can do this, but generally speaking we don't use stripped kernel >> modules in driver updates (harder to debug because one has to find the >> debuginfo package, which might not be handy if it came from a third >> party download site). I suppose I should make it consistent so either >> there are debuginfo package built, or not, but not empty. > > The initial question was about getting a stripped module, with its > correct debuginfo. Setting the *.ko module file to be +x does just > that, I've double checked some custom kmod-xfs packages of mine : > > 252490 kmod-xfs-2.6.18-1.2.6.18_128.7.1.el5.x86_64.rpm > 252391 kmod-xfs-xen-2.6.18-1.2.6.18_128.7.1.el5.x86_64.rpm > 572873 xfs-kmod-2.6.18-1.2.6.18_128.7.1.el5.src.rpm > 8086743 xfs-kmod-debuginfo-2.6.18-1.2.6.18_128.7.1.el5.x86_64.rpm > > Where I do install -m 0755 *.ko > %{buildroot}/lib/modules/%{kverrel}${kvariant}/extra/%{kmod_name} > > Matthias
It really works!! Thank you! Regards, Ruomu _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
