wok view cross-arm-binutils/receipt @ rev 10393
cgdb: can't cross (use native)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 23 19:01:25 2011 +0200 (2011-05-23) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-arm-binutils"
4 VERSION="2.21"
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="slitaz-toolchain"
16 # The goal here is to build an ARM cross toolchain who we let build code for
17 # the target arch from an i486 build/host. To build a cross toolchain we use
18 # the native i486 GCC compiler so set --build and --host to HOST_SYSTEM.
19 CROSS_TARGET="arm-slitaz-linux"
20 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
22 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
23 unset CFLAGS CXXFLAGS
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 mkdir -p ../build && cd ../build
30 $src/configure \
31 --program-prefix="$CROSS_TARGET-" \
32 --disable-multilib \
33 --disable-nls \
34 $CROSS_TRIPLET &&
35 make configure-host &&
36 make tooldir=/usr &&
37 make tooldir=/usr install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin $fs/usr/lib
44 cp -a $install/usr/bin/$CROSS_TARGET-* $fs/usr/bin
45 cp -a $install/usr/lib/ldscripts $fs/usr/lib
46 }