Kernel compiling: Why is my Kernel so big?

Kevin O'Gorman kogorman at gmail.com
Fri Jul 10 16:41:08 UTC 2009


On Fri, Jul 10, 2009 at 5:20 AM, Dieter Wirz<didi.wirz at gmail.com> wrote:
> Thanks, Markus!
> You pushed me in the right direction...
>
> 2009/7/10 Markus Schönhaber <ubuntu-users at list-post.mks-mail.de>:
>> Dieter Wirz:
>>
>>> ~ du /lib/modules/* -sh #Disk usage of modules
>>> 672M    /lib/modules/2.6.28.10-didi1
>>> 88M     /lib/modules/2.6.28-13-generic
>>>
>>> And initrd is about 50M!
>>
>> You should set
>> INSTALL_MOD_STRIP=1
>> for the modules_install stage. Otherwise the modules will contain
>> debugging symbols, which makes them really huge.
>> I'm not sure how to set INSTALL_MOD_STRIP with make-kpkg. But simply
>> setting it in the evironment might be enough.
>
> But instead of compiling the modules with debugging  info's and then
> striping them off I now simply turn OFF "Compile the kernel with debug
> info"....
>
> # du /lib/modules/* -sh
> 88M     /lib/modules/2.6.28-13-generic
> 67M     /lib/modules/2.6.30.1-didi


Where do you (un)set this option?


-- 
Kevin O'Gorman, PhD




More information about the ubuntu-users mailing list