cookutils rev 380

README: add info on cook and cross compilation
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 12 21:20:37 2012 +0200 (2012-05-12)
parents 4fea0cdc9cfd
children 654e419824a9
files README
line diff
     1.1 --- a/README	Sat May 12 20:58:52 2012 +0200
     1.2 +++ b/README	Sat May 12 21:20:37 2012 +0200
     1.3 @@ -119,6 +119,25 @@
     1.4  Howto : cross howto
     1.5  
     1.6  
     1.7 +Cross compiling
     1.8 +--------------------------------------------------------------------------------
     1.9 +Cookutils let you cross coile package fro a specofic architecture. Say you want
    1.10 +to build ARM binaries from an standard i486 machine. Cookutis provide helpers
    1.11 +for the ARM platform, but the first thing to do is compile a cross toolchain and
    1.12 +modify the main cook.conf variables to use correct ARCH, CFLAGS and BUILD_SYSTEM
    1.13 +
    1.14 +Cook handle HOST_ARCH and CROSS_* receipt variables. Some package dont build or
    1.15 +are not packaged for an architecture and so cross compiling will fails if the
    1.16 +package receipt have not been reviewd and include HOST_ARCH. Here is an example
    1.17 +and a list of cross variables:
    1.18 +
    1.19 +HOST_ARCH="i486 arm"
    1.20 +CROSS_BUGS="Bugs description"
    1.21 +
    1.22 +Before cross compiling, cook will automaticaly add cross-tools path to PATH, set
    1.23 +CC, AR, LD, etc and also export CROSS_COMPILE.
    1.24 +
    1.25 +
    1.26  Toolchain
    1.27  --------------------------------------------------------------------------------
    1.28  To rebuild the full SliTaz toolchain at once - cook and the Cooker will use the