Hi all again.
Today I finished porting of all basic set of packages that are included 
by default into leaf.cfg, + some more. I did this mostly for comparision 
of RAM usage; -O2 + some busybox features + some updated software 
versions gives ~23M memory usage for i686 iso; 4.1.1 version eats ~20M 
in that case - IMHO not significant difference. So I think that we can 
use -O2 for userland.

All built packages seems to be working OK; but some of them gives me a 
lot of headache due to ugly build scripts that aren't targeted for 
cross-compilation (or, like perl, have very special meaning of 
cross-compilation - with checking result on live remote system in case 
of perl).

About moving packages to new toolchain - there is enough simple algorithm:
1) Try to build package w/o hacks, just specifying --host for configure 
(or, if no configure present, set CC/LD variables) and look into log for 
compiler/linker names and flags
2) If it uses system compiler - look deeper on configure how it can be 
forced to use TARGET_CC (usually it's enough to specify CC/LD just for 
configure)
3) If it tries to pull some info from host system, or has hard-coded 
compiler - patch makefile/other configure/make-related files to avoid this.
4) In hard cases - look at Google for cross-compilation solutions for 
that package, or look at first on OpenWRT/DD-WRT toolchain patches.
5) Clean/fix makefile; try to add $(MAKEOPTS) to make call (which 
actually contains -jN - to build package in multiple 'threads')

Also, if you have troubles with some package - try to update it to 
current version; if you have 'unknown host' error - run 'autoreconf 
-fvi' before configure; it'll replace old 'config.sub' that doesn't know 
about uClibc (it's actual for very old packages)ю

P.S. It'll be good to make .lwp building/assembling in better way in 
future, possible - add new package type in 
buildpacket.pl/buildtool.cfg... It looks too dirty at first look.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to