wok rev 12696
Add: cross-arm-binutils (2.22) The cross ARM linker :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 03 01:32:48 2012 +0200 (2012-05-03) |
parents | 3f1efbe56db8 |
children | 9ba57c7ee2b2 |
files | cross-arm-binutils/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cross-arm-binutils/receipt Thu May 03 01:32:48 2012 +0200 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cross-arm-binutils" 1.7 +VERSION="2.22" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Cross compilation linker targeting ARM platform." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +SOURCE="binutils" 1.12 +WEB_SITE="http://www.gnu.org/software/binutils/" 1.13 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.14 +WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" 1.15 + 1.16 +DEPENDS="" 1.17 +BUILD_DEPENDS="" 1.18 + 1.19 +# Cross toolchain variables. 1.20 +CROSS_TARGET="arm-slitaz-linux-gnueabi" 1.21 +CROSS_PREFIX="/usr/cross/arm" 1.22 +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" 1.23 + 1.24 +# CFLAGS and CXXFLAGS must not be set during the building of cross-tools. 1.25 +unset CFLAGS CXXFLAGS CONFIG_SITE 1.26 + 1.27 +# Rules to configure and make the package. 1.28 +compile_rules() 1.29 +{ 1.30 + cd $src 1.31 + mkdir ../build && cd ../build 1.32 + $src/configure \ 1.33 + --prefix=$CROSS_PREFIX \ 1.34 + --program-prefix=${CROSS_TARGET}- \ 1.35 + --enable-targets=$ARCH-slitaz-linux \ 1.36 + --enable-shared \ 1.37 + --disable-multilib \ 1.38 + --disable-werror \ 1.39 + --disable-nls \ 1.40 + $CROSS_TRIPLET && 1.41 + make configure-host && 1.42 + make && make install 1.43 + #make tooldir=$CROSS_PREFIX && 1.44 + #make tooldir=$CROSS_PREFIX install 1.45 +} 1.46 + 1.47 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.48 +genpkg_rules() 1.49 +{ 1.50 + mkdir -p $fs/usr 1.51 + cp -a $install/usr/cross $fs/usr 1.52 + rm -rf ${fs}${CROSS_PREFIX}/share 1.53 +}