# HG changeset patch # User Christophe Lincoln # Date 1306020693 -7200 # Node ID 0810dd559a583e5c1d8e0d950f561cfbc5e675dd # Parent 98d98cee3cd5a9da3bf975871b919dd6e5814fb3 Add: cross-arm-binutils and cross-arm-gcc for testing purpose (see doc:cookbook:cross) diff -r 98d98cee3cd5 -r 0810dd559a58 cross-arm-binutils/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cross-arm-binutils/receipt Sun May 22 01:31:33 2011 +0200 @@ -0,0 +1,46 @@ +# SliTaz package receipt. + +PACKAGE="cross-arm-binutils" +VERSION="2.21" +CATEGORY="system-tools" +SHORT_DESC="Cross compilation linker targeting ARM platform." +MAINTAINER="pankso@slitaz.org" +SOURCE="binutils" +WEB_SITE="http://www.gnu.org/software/binutils/" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" + +DEPENDS="" +BUILD_DEPENDS="slitaz-toolchain" + +# The goal here is to build an ARM cross toolchain who we let build code for +# the target arch from an i486 build/host. To build a cross toolchain we use +# the native i486 GCC compiler so set --build and --host to HOST_SYSTEM. +CROSS_TARGET="arm-slitaz-linux" +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" + +# CFLAGS and CXXFLAGS must not be set during the building of cross-tools. +unset CFLAGS CXXFLAGS + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + mkdir -p ../build && cd ../build + $src/configure \ + --program-prefix="$CROSS_TARGET-" \ + --disable-multilib \ + --disable-nls \ + $CROSS_TRIPLET && + make configure-host && + make tooldir=/usr && + make tooldir=/usr install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib + cp -a $install/usr/bin/$CROSS_TARGET-* $fs/usr/bin + cp -a $install/usr/lib/ldscripts $fs/usr/lib +} diff -r 98d98cee3cd5 -r 0810dd559a58 cross-arm-gcc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cross-arm-gcc/receipt Sun May 22 01:31:33 2011 +0200 @@ -0,0 +1,49 @@ +# SliTaz package receipt. + +PACKAGE="cross-arm-gcc" +VERSION="4.5.2" +CATEGORY="system-tools" +SHORT_DESC="Cross compiler for targeting ARM platform." +MAINTAINER="pankso@slitaz.org" +SOURCE="gcc-core" +WEB_SITE="http://www.gnu.org/software/binutils/" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" + +DEPENDS="cross-arm-binutils mpc-library" +BUILD_DEPENDS="slitaz-toolchain cross-arm-binutils gmp gmp-dev mpfr mpfr-dev \ +mpc-library" + +# The goal here is to build an ARM cross toolchain who we let build code for +# the target arch from an i486 build/host. To build a cross toolchain we use +# the native i486 GCC compiler so set --build and --host to HOST_SYSTEM. +CROSS_TARGET="arm-slitaz-linux" +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + mkdir -p ../build && cd ../build + $src/configure \ + --libexecdir=/usr/lib \ + --disable-nls \ + --disable-threads \ + --disable-multilib \ + --disable-bootstarp \ + --enable-languages=c \ + --with-cpu=arm9 \ + $CROSS_TRIPLET && + make \ + AS_FOR_TARGET=$CROSS_TARGET-as \ + LD_FOR_TARGET=$CROSS_TARGET-ld && + make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib $fs/usr +}