cookutils view doc/cross.txt @ rev 405

cook: we may use sysroot when cross compiling
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 13 17:59:11 2012 +0200 (2012-05-13)
parents 95ba9a892bb4
children 71450d322f7b
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 --install check-env: Install needed packages
16 --config= Use specified configuration file
18 HOWTO:
19 When building a cross toolchain it's better to understand what is a
20 linker or C compiler such as GCC. The configure option --target is
21 used by 'cross' to build cross-tools. When the toolchain is built on
22 your machine you can then build packages with cook and the wok. Cross
23 uses by default the same source tarballs as cook but the path can be
24 changed via the config file. Configuration is: cross.conf. Here is a
25 cmdline howto:
27 Create a chroot (use last tazdev)
28 ---------------------------------
29 # tazdev gen-chroot --arch=arm
30 # tazdev chroot
32 Clone cookutils to get last cook and cross
33 ------------------------------------------
34 # tazpkg -gi mercurial
35 # tazpkg -gi make
36 # cd && hg clone http://hg.slitaz.org/cookutils
37 # cd cookutils
38 # make install-cross
40 Setup the build environment and compile a cross toolchain
41 -------------------------------------------------------------
42 # cook arm-setup
43 # cook setup
44 (vi/nano /etc/slitaz/cross.conf)
45 # cross check-env --install
46 # cross compile
48 Test the cross toolchain
49 ------------------------
50 # cross testsuite
52 AUTHORS
53 Written by Christophe Lincoln