On Sun, Nov 22, 2009 at 02:15:14AM +0200, Tom Hacohen wrote:
> On Sun, Nov 22, 2009 at 1:23 AM, Tom Hacohen <t...@stosb.com> wrote:
> 
> > On Fri, Nov 20, 2009 at 6:26 AM, Marco Trevisan <m...@3v1n0.net> wrote:
> >
> >> The kernel modules that are provided by SHR aren't stripped, and this
> >> causes them to use really a lot more space than the needed.
> >>
> >> For example, using the latest shr modules as test:
> >>
> >>  du -sh ./shr-modules
> >>  77M
> >>
> >>  find ./shr-modules -type f -name *.ko -exec \
> >>  arm-angstrom-linux-gnueabi-strip --strip-debug {} \;
> >>
> >>  du -sh .
> >>  7,4M
> >>
> >> So you can have in 7,4Mb the same that you provide in 77Mb, just moving
> >> out the unneeded symbols there... This would allow to put the all the
> >> modules in the the phone without a big space usage.
> >> I think you should do this by default for your redistributed archive.
> >>
> >>
> >> _______________________________________________
> >>
> > Are you sure there are no side effects? I finished doing the change, I
> > haven't sent a patch yet.
> > Does it work brilliantly for you? It should make a big change, as they
> > waste space and ram for no good reason.
> > --
> > Tom.
> >
> Actually I'm not so sure I should apply my fix, my thoughts from
> #openmoko-cde...@freenode:
> <TAsn> JaMa, btw, jama, thinking about it. It's bitbake's job to strip
> stuff, so it must be a config option, it can't be possible we'll have to do
> it for every package. If so, we'll probably need to change a global config
> and add there do_pacakge_(regular not -dbg)_prepened or something similar.
> Though as I said, it's ugly and there's probably a way.
> 
> JaMa and I will investigate more about this topic, this is really troubling
> though as this wastes huge amount of hd space and also a lot of ram (and
> probably cpu) for no apparent reason.
> 
> 
> -- 
> Tom.

As soon as it gets ACK in oe.dev, I'll push it and bump our kernel
version.

http://thread.gmane.org/gmane.comp.handhelds.openembedded/27940

TAsn: and this is for both modules*.tgz :) (good for downloading
alternate kernels - drm and 2.6.31)

http://thread.gmane.org/gmane.comp.handhelds.openembedded/27940/focus=27939
-- 
uin:136542059                jid:martin.ja...@gmail.com
Jansa Martin                 sip:jama...@voip.wengo.fr 
JaMa                         
_______________________________________________
Shr-devel mailing list
Shr-devel@lists.shr-project.org
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to