Re: Size problem compiling kernel modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 07, 2004 at 07:37:35PM +0100, Dave Jones wrote:
> From: Dave Jones <davej@xxxxxxxxxx>
> To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
> Date: Mon, 07 Jun 2004 19:37:35 +0100
> Subject: Re: Size problem compiling kernel modules
> Reply-To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
> 
> On Mon, 2004-06-07 at 13:50, Aaron Gaudio wrote:
>  
> > > If you don't care about it you can unset CONFIG_DEBUG_INFO
> > > and it won't generate it.
> > Is there a convenient way to manually strip the debug info from
> > the files after they are compiled? In other words, how does rpm
> > do it?
> 
> You know, I'm not actually sure.
> Taking a peek inside the .spec file, there's this gem..
> 
>     # mark modules executable so that strip-to-file can strip them
>     find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f  |
> xargs chmod u+x
> 
> Which seems to be something magical that rpm invokes.

These shell scripts seem to cover much of this.

      /usr/lib/rpm/brp-strip-comment-note
      /usr/lib/rpm/brp-strip-static-archive
      /usr/lib/rpm/brp-strip
      /usr/lib/rpm/brp-strip-shared
      /usr/lib/rpm/redhat/brp-strip-comment-note
      /usr/lib/rpm/redhat/brp-strip-static-archive
      /usr/lib/rpm/redhat/brp-strip
      /usr/lib/rpm/redhat/brp-strip-shared

There could be more but scanning them exposes lots of different strip
options.  All fun stuff to think about both for reducing file sizes
and also for delivering/ generating debug rpms.


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux