add binutils for use in a crosscompiler, hosted on x86 though.
svn path=/nixpkgs/trunk/; revision=4214
This commit is contained in:
parent
94b27fcf98
commit
4431b8377b
12
pkgs/development/tools/misc/binutils-arm/builder.sh
Normal file
12
pkgs/development/tools/misc/binutils-arm/builder.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
. $stdenv/setup
|
||||||
|
|
||||||
|
patchConfigure() {
|
||||||
|
# Clear the default library search path.
|
||||||
|
if test "$noSysDirs" = "1"; then
|
||||||
|
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
preConfigure=patchConfigure
|
||||||
|
|
||||||
|
genericBuild
|
12
pkgs/development/tools/misc/binutils-arm/default.nix
Normal file
12
pkgs/development/tools/misc/binutils-arm/default.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{stdenv, fetchurl, noSysDirs}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "binutils-2.16.1-arm";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://ftp.nluug.nl/gnu/binutils/binutils-2.16.1.tar.bz2;
|
||||||
|
md5 = "6a9d529efb285071dad10e1f3d2b2967";
|
||||||
|
};
|
||||||
|
inherit noSysDirs;
|
||||||
|
configureFlags = "--target=arm-linux";
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user