View Single Post
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#165
Originally Posted by hxka View Post
@szopin, not all of files in rootfs are ELFs.
It's bit tricky to count size of all ELFs in rootfs, I've ended up with this:
Code:
Nokia-N900:~# cat iself.sh 
#!/bin/sh
file "$1" | grep ": ELF" 2>&1 >/dev/null && echo "$1"
Nokia-N900:~# du -ch $(find / -xdev -type f -exec sh iself.sh {} \;) | tail -1
191.2M	total
And 30-40% is a reduction of code size, not resulting code size.
So, 345.6−191.2⋅0.4=269.12. Too much, even if not to take into account that not all of them are open source and can be recompiled, that partition size is 251.25 MB, not 256 and that filesystem iteslf require some space to store inodes and other stuff.
Good point, my logic took a bit of over-excited vacation/leap, still, getting /bin(sbin) dirs alone (and lib? thumb2 compiled .so's should count, no?) out of compressed parts should give both battery and performance boost. Hoping to give compiling that toolchain a go over the week and maybe get something to contribute over the weekend.

freemangordon: Please open up a wikipage with detailed instructions for noobs on how to help out (list of parts that still need compilation...), the more step-by-step the better. I'm sure quite a few people would be willing to help the effort. EDIT: even if general steps, will be happy to update with what WFMed once I get to setting it up.

Last edited by szopin; 2012-06-18 at 18:41.
 

The Following User Says Thank You to szopin For This Useful Post: