cookutils rev 382

Edit cross files
author Paul Issott <paul@slitaz.org>
date Sat May 12 22:03:46 2012 +0100 (2012-05-12)
parents 654e419824a9
children e4f6883a36fc
files README cook.conf cross doc/cross.txt
line diff
     1.1 --- a/README	Sat May 12 22:04:31 2012 +0200
     1.2 +++ b/README	Sat May 12 22:03:46 2012 +0100
     1.3 @@ -65,7 +65,7 @@
     1.4  Cooker
     1.5  --------------------------------------------------------------------------------
     1.6  The Cooker is a Build Bot which automates the build process but doesn't make
     1.7 -the dinner for you! We need quality receipts to cook succesfully and the goal
     1.8 +the dinner for you! We need quality receipts to cook successfully and the goal
     1.9  is not to have a bloated script so please Keep It Short and Simple.
    1.10  
    1.11  Cmdline tool  : /usr/bin/cooker
    1.12 @@ -113,28 +113,28 @@
    1.13  
    1.14  Cross
    1.15  -------------------------------------------------------------------------------
    1.16 -See   : doc/cross.txt
    1.17 -Istall: make install-cross
    1.18 -Usage : cross usage
    1.19 -Howto : cross howto
    1.20 +See    : doc/cross.txt
    1.21 +Install: make install-cross
    1.22 +Usage  : cross usage
    1.23 +Howto  : cross howto
    1.24  
    1.25  
    1.26  Cross compiling
    1.27  --------------------------------------------------------------------------------
    1.28 -Cookutils let you cross coile package fro a specofic architecture. Say you want
    1.29 -to build ARM binaries from an standard i486 machine. Cookutis provide helpers
    1.30 +Cookutils lets you cross compile a package for a specific architecture. Say you want
    1.31 +to build ARM binaries from a standard i486 machine. Cookutils provides helpers
    1.32  for the ARM platform, but the first thing to do is compile a cross toolchain and
    1.33 -modify the main cook.conf variables to use correct ARCH, CFLAGS and BUILD_SYSTEM
    1.34 +modify the main cook.conf variables to use a correct ARCH, CFLAGS and BUILD_SYSTEM
    1.35  
    1.36 -Cook handle HOST_ARCH and CROSS_* receipt variables. Some package dont build or
    1.37 -are not packaged for an architecture and so cross compiling will fails if the
    1.38 -package receipt have not been reviewd and include HOST_ARCH. Here is an example
    1.39 +Cook handles HOST_ARCH and CROSS_* receipt variables. Some packages don't build or
    1.40 +are not packaged for an architecture and so cross compiling will fail if the
    1.41 +package receipt has not been reviewed and includes HOST_ARCH. Here is an example
    1.42  and a list of cross variables:
    1.43  
    1.44  HOST_ARCH="i486 arm"
    1.45  CROSS_BUGS="Bugs description"
    1.46  
    1.47 -Before cross compiling, cook will automaticaly add cross-tools path to PATH, set
    1.48 +Before cross compiling, cook will automatically add cross-tools path to PATH, set
    1.49  CC, AR, LD, etc and also export CROSS_COMPILE.
    1.50  
    1.51  
     2.1 --- a/cook.conf	Sat May 12 22:04:31 2012 +0200
     2.2 +++ b/cook.conf	Sat May 12 22:03:46 2012 +0100
     2.3 @@ -51,7 +51,7 @@
     2.4  # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
     2.5  # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
     2.6  #
     2.7 -# ARM: dont use -0s but -02
     2.8 +# ARM:  don't use -0s but -02
     2.9  # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
    2.10  #
    2.11  #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
    2.12 @@ -59,7 +59,7 @@
    2.13  CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
    2.14  CXXFLAGS="$CFLAGS"
    2.15  
    2.16 -# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    2.17 +# Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
    2.18  #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
    2.19  
    2.20  # Default tool prefix for Binutils.
     3.1 --- a/cross	Sat May 12 22:04:31 2012 +0200
     3.2 +++ b/cross	Sat May 12 22:03:46 2012 +0100
     3.3 @@ -21,7 +21,7 @@
     3.4  
     3.5  Commands:
     3.6    howto           Man alike and howto
     3.7 -  info            Dispaly cross-tools info
     3.8 +  info            Display cross-tools info
     3.9    testsuite       Execute a small testsuite
    3.10    check-env       Check build host tools
    3.11    download        Download necessary sources
    3.12 @@ -113,7 +113,7 @@
    3.13  	make all-gcc all-target-libgcc || exit 1
    3.14  	make install-gcc install-target-libgcc
    3.15  	cd $PREFIX/lib/gcc/$TARGET/$GCC_VERSION
    3.16 -	echo "Creating symlink forstatic libgcc: libgcc_eh.a"
    3.17 +	echo "Creating symlink for static libgcc: libgcc_eh.a"
    3.18  	rm -f libgcc_eh.a && ln -s libgcc.a libgcc_eh.a
    3.19  }
    3.20  
    3.21 @@ -182,7 +182,7 @@
    3.22  	make install
    3.23  }
    3.24  
    3.25 -# Build Busybox to we can create prebuild tiny rootfs image and boot
    3.26 +# Build Busybox to we can create prebuilt tiny rootfs image and boot
    3.27  # from NFS ?
    3.28  cross_busybox() {
    3.29  	echo "Extracting: busybox-$BUSYBOX_VERSION.tar.bz2"
    3.30 @@ -207,12 +207,12 @@
    3.31  	info)
    3.32  		init_compile
    3.33  		CC=${TARGET}-gcc
    3.34 -		echo -e "\nCross Toolchain iformation" && separator
    3.35 +		echo -e "\nCross Toolchain information" && separator
    3.36  		[ "$config" ] && echo "Config file     : $config"
    3.37  		cat << EOT
    3.38  Target arch     : $ARCH
    3.39  C Compiler      : $CC
    3.40 -Additonal path  : /usr/cross/$ARCH/bin
    3.41 +Additional path : /usr/cross/$ARCH/bin
    3.42  Build directory : $WORK
    3.43  EOT
    3.44  		separator && echo ""
    3.45 @@ -246,7 +246,7 @@
    3.46  	download)
    3.47  		download_src ;;
    3.48  	clean)
    3.49 -		echo -n "Remove all source files..."
    3.50 +		echo -n "Removing all source files..."
    3.51  		rm -rf $WORK/source/* && status
    3.52  		[ "$log" ] && rm -f $WORK/log/*.log
    3.53  		echo "To clean chroot: rm -rf $PREFIX" ;;
     4.1 --- a/doc/cross.txt	Sat May 12 22:04:31 2012 +0200
     4.2 +++ b/doc/cross.txt	Sat May 12 22:03:46 2012 +0100
     4.3 @@ -4,7 +4,7 @@
     4.4  
     4.5  DESCRIPTION
     4.6  	Cross is a tool to build a cross toolchain on SliTaz GNU/Linux. The
     4.7 -	ARM platform is actually supported and x86_64 toolchain is on the
     4.8 +	ARM platform is actually supported and a x86_64 toolchain is on the
     4.9  	stove
    4.10  
    4.11  COMMANDS
    4.12 @@ -17,10 +17,10 @@
    4.13  
    4.14  HOWTO:
    4.15  	When building a cross toolchain it's better to understand what is a
    4.16 -	linker or or C compiler such as GCC. The configure option --target is
    4.17 -	used by 'cross' to build cross-tools. When the toolchain is build on
    4.18 +	linker or C compiler such as GCC. The configure option --target is
    4.19 +	used by 'cross' to build cross-tools. When the toolchain is built on
    4.20  	your machine you can then build packages with cook and the wok. Cross
    4.21 -	use by default the same source tarball's than cook but path can by
    4.22 +	uses by default the same source tarballs as cook but the path can be
    4.23  	changed via the config file. Configuration is: cross.conf. Here is a
    4.24  	cmdline howto:
    4.25  
    4.26 @@ -49,5 +49,5 @@
    4.27  	------------------------
    4.28  	# cross testsuite
    4.29  
    4.30 -AUTHOR
    4.31 +AUTHORS
    4.32  	Written by Christophe Lincoln