October 2006
September 2006
Linux Tips
(via)Distcc permet d'utiliser d'autres machines en plus de la votre,
pour compiler vos programmes. Plus il y a de machines a participer
a ces compilations, plus la compilation est rapide.
Il n'y a pas besoin de partage reseau de donnees, tel que NFS etc...
3DES’ Journal » Linux
(via)Cross compiling with Gentoo Linux
Sunday, August 20th, 2006
Everyday use to be more common the need to cross compile open source applications because the Linux Everywhere fever :) (which I do love!). Usually when someone first time tries to cross compile is not really that hard to find some pre-compiled tools or even a complete SDK but there we are again having binaries all around our filesystem without any control at all, so…what’s Gentoo offering to solve this? Crossdev.
Crossdev is really handy tool which allows you to create and manage cross compiling environments in a very easy way. The basic command to get a complete set of tools for a target is just passing the parameter -t ARCH-VENDOR-OS-LIBC, this will make ready an stage4 which adds binutils, gcc, kernel headers, etc. get more useful information just executing the command without arguments and passing -t help.
Crossdev gets little help Portage’s Overlay feature another really nice feature which deserves its own post to get explained :) .
Live sample:
user@localhost# vim /etc/make.conf
Here the PORTDIR_OVERLAY variable have to be defined before we start building the new tools, in this directory crossdev will create some links to the official portage tree in our system, more precisely, to the tools we need to compile but defining the arch, libc, etc we really want.
user@localhost# crossdev -t armeb-softfloat-linux-uclibc
Now crossdev will start to create the links and then compile the tools, progress can be watched at /var/log where some files are created as the tools compile. What do we get when it finishes?
user@localhost# ls -la /usr/armeb-softfloat-linux-uclibc/*
That will show a serie of binaries, headers, libraries, etc. making our system ready to compile sources for the armeb architecture, using uClibc and float point by software.
Posted in Operating Systems,
July 2006
1
(4 marks)