cookutils diff doc/cross.txt @ rev 361
Add cross (let have a cross toolchain builder)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 09 22:15:39 2012 +0200 (2012-05-09) |
parents | |
children | 38fc81ba44de |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/doc/cross.txt Wed May 09 22:15:39 2012 +0200 1.3 @@ -0,0 +1,48 @@ 1.4 + 1.5 +SYNOPSIS 1.6 + cross [command|package] package 1.7 + 1.8 +DESCRIPTION 1.9 + Cross is a tool to build a cross toolchain on SliTaz GNU/Linux. The 1.10 + ARM platform is actually supported and x86_64 toolchain is on the 1.11 + stove 1.12 + 1.13 +COMMANDS 1.14 + Run: cross usage 1.15 + 1.16 +OPTIONS 1.17 + --log clean: Will also clean log files 1.18 + --install check-env: Install needed packages 1.19 + 1.20 +HOWTO: 1.21 + When building a cross toolchain it's better to understand what is a 1.22 + linker or or C compiler such as GCC. The configure option --target is 1.23 + used by 'cross' to build cross-tools. When the toolchain is build on 1.24 + your machine you can then build packages with cook and the wok. Here 1.25 + is commands used to create a chroot (use last tazdev): 1.26 + 1.27 + # tazdev gen-chroot --arch=arm 1.28 + # tazdev chroot 1.29 + 1.30 + --> Clone cookutils to get last cook and cross 1.31 + # tazpkg -gi mercurial 1.32 + # tazpkg -gi make 1.33 + # cd && hg clone http://hg.slitaz.org/cookutils 1.34 + # cd cookutils 1.35 + # make install-cross 1.36 + 1.37 + --> Now setup the build environment and compile a cross toolchain: 1.38 + # cook setup 1.39 + # cook arm-setup 1.40 + # mkdir -p /home/slitaz/cross 1.41 + # cd /home/slitaz/cross 1.42 + # cp /etc/slitaz/cross.conf . 1.43 + (vi/nano config) 1.44 + # cross check-env --install 1.45 + # cross compile 1.46 + 1.47 + --> Test the cross tools 1.48 + # cross testsuite 1.49 + 1.50 +AUTHOR 1.51 + Written by Christophe Lincoln