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

How to strip the vanilla kernel modules on FC4?


 I'm a newbie to kernel compilation and installation.
I just found a "problem" needs experts help: How to
strip vanilla kernel modules sizes?

 The 2.6 vanilla kernels doens't have a build options
like "make strip" or "make installStrip" or similar
options, so a simple "make config; make; make
modules_install install" will installed unstripped
kernel modules to under /lib/modules/<vanilla_kernel>.
And then unfortunatelly the size of much bigger than
default FC4 stock kernel.

 I have to run "strip" manually to strip the sizes
down, Any one can share his|her experience in kernel
compilation? how to strip the kernel modules before
"make module_install install"? or there is a MAKE
switch I forget since I see the command "strip" in the
Makefile ??

Actual results are attached below:

[root testnode01 modules]# ls -alF /boot/vmlinuz-2*
-rw-r--r--  1 root root 1811801 Feb  7 10:47 
-rw-r--r--  1 root root 1811805 Feb  7 11:01 
-rw-r--r--  1 root root 2794641 Mar  6 22:19 

[root testnode01 modules]# du -sk /lib/modules/*
95676   2.6.15-1.1831_FC4
95696   2.6.15-1.1831_FC4smp
219620  2.6.15-6_64GB

[root testnode01 /]# find /usr/lib/2.6.15-6_64GB/
-type f -name '*.ko' 
| xargs 
[root testnode01 /]# du -sk /usr/lib/2.6.15-6_64GB/
32932   /usr/lib/2.6.15-6_64GB/

[root testnode01 linux-]# strip
strip: /boot/vmlinuz-2.6.15-6_64GB: File format not

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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