cookutils view doc/cross.txt @ rev 364

cross: improve doc
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 09 23:05:01 2012 +0200 (2012-05-09)
parents e7e7979eb49d
children e31ed673ab5d
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 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 --install check-env: Install needed packages
17 HOWTO:
18 When building a cross toolchain it's better to understand what is a
19 linker or or C compiler such as GCC. The configure option --target is
20 used by 'cross' to build cross-tools. When the toolchain is build on
21 your machine you can then build packages with cook and the wok. Cross
22 use by default the same source tarball's than cook by path can by
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 and compile a cross toolchain
40 -------------------------------------------------------------
41 # cook setup
42 # cook arm-setup
43 # mkdir -p /home/slitaz/cross
44 # cd /home/slitaz/cross
45 # cp /etc/slitaz/cross.conf .
46 (vi/nano config)
47 # cross check-env --install
48 # cross compile
50 Test the cross toolchain
51 ------------------------
52 # cross testsuite
54 AUTHOR
55 Written by Christophe Lincoln