cookutils view doc/cross.txt @ rev 421

cook, cross, *.conf: improve cross compilation and small clean
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 19 04:47:53 2012 +0200 (2012-05-19)
parents a20fac3c915f
children 4c71388c43e6
line source
2 SYNOPSIS
3 cross [command|package] package
5 DESCRIPTION
6 Cross is a tool to build a cross toolchain on SliTaz GNU/Linux. The
7 ARM platform is actually supported and a x86_64 toolchain is on the
8 stove
10 COMMANDS
11 Run: cross usage
13 OPTIONS
14 --log clean: Will also clean log files
15 --config= Use specified configuration file
17 HOWTO:
18 When building a cross toolchain it's better to understand what is a
19 linker or C compiler such as GCC. The configure option --target is
20 used by 'cross' to build cross-tools. When the toolchain is built on
21 your machine you can then build packages with cook and the wok. Cross
22 uses by default the same source tarballs as cook but the path can be
23 changed via the config file. Configuration is: cross.conf. Here is a
24 cmdline howto:
26 Create a chroot (use last tazdev)
27 ---------------------------------
28 # tazdev gen-chroot --arch=arm
29 # tazdev chroot
31 Clone cookutils to get last cook and cross
32 ------------------------------------------
33 # tazpkg -gi mercurial
34 # tazpkg -gi make
35 # cd && hg clone http://hg.slitaz.org/cookutils
36 # cd cookutils
37 # make install-cross
39 Setup the build environment, get source and compile a cross toolchain
40 ---------------------------------------------------------------------
41 # cook arm-setup
42 # cook setup
43 (vi/nano /etc/slitaz/cross.conf)
44 # cross check
45 # cross download
46 # cross compile
48 Test the cross toolchain
49 ------------------------
50 # cross testsuite
52 AUTHORS
53 Written by Christophe Lincoln