wok view cross-arm-binutils/receipt @ 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 | |
children | a328abdf0a9c |
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-arm-binutils"
4 VERSION="2.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Cross compilation linker targeting ARM platform."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="binutils"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # Cross toolchain variables.
17 CROSS_TARGET="arm-slitaz-linux-gnueabi"
18 CROSS_PREFIX="/usr/cross/arm"
19 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
21 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
22 unset CFLAGS CXXFLAGS CONFIG_SITE
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 mkdir ../build && cd ../build
29 $src/configure \
30 --prefix=$CROSS_PREFIX \
31 --program-prefix=${CROSS_TARGET}- \
32 --enable-targets=$ARCH-slitaz-linux \
33 --enable-shared \
34 --disable-multilib \
35 --disable-werror \
36 --disable-nls \
37 $CROSS_TRIPLET &&
38 make configure-host &&
39 make && make install
40 #make tooldir=$CROSS_PREFIX &&
41 #make tooldir=$CROSS_PREFIX install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/cross $fs/usr
49 rm -rf ${fs}${CROSS_PREFIX}/share
50 }