mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
move binutils-arm to binutils-cross. Also, add binutils for mips-linux in a
more generic way. Still, there is a lot of room for improvement. svn path=/nixpkgs/trunk/; revision=4458
This commit is contained in:
parent
fec867b5f2
commit
8b10549f2e
@ -1,12 +1,12 @@
|
||||
{stdenv, fetchurl, noSysDirs}:
|
||||
{stdenv, fetchurl, noSysDirs, cross}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "binutils-2.16.1-arm";
|
||||
name = "binutils-2.16.1";
|
||||
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";
|
||||
configureFlags = if cross=="arm-linux" then "--target=arm-linux" else if cross=="mips-linux" then "--target=mips-linux" else "";
|
||||
}
|
@ -322,8 +322,14 @@ rec {
|
||||
inherit fetchurl stdenv noSysDirs;
|
||||
};
|
||||
|
||||
binutilsArm = (import ../development/tools/misc/binutils-arm) {
|
||||
binutilsMips = (import ../development/tools/misc/binutils-cross) {
|
||||
inherit fetchurl stdenv noSysDirs;
|
||||
cross = "mips-linux";
|
||||
};
|
||||
|
||||
binutilsArm = (import ../development/tools/misc/binutils-cross) {
|
||||
inherit fetchurl stdenv noSysDirs;
|
||||
cross = "arm-linux";
|
||||
};
|
||||
|
||||
patchelf = (import ../development/tools/misc/patchelf) {
|
||||
@ -492,7 +498,9 @@ rec {
|
||||
langF77 = false;
|
||||
langCC = false;
|
||||
};
|
||||
inherit (stdenv.gcc) binutils glibc;
|
||||
#inherit (stdenv.gcc) binutils glibc;
|
||||
inherit (stdenv.gcc) glibc;
|
||||
binutils = binutilsArm;
|
||||
inherit stdenv;
|
||||
};
|
||||
gcc40 = (import ../build-support/gcc-wrapper) {
|
||||
@ -1424,6 +1432,13 @@ rec {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
#dietlibcArm = (import ../os-specific/linux/dietlibc-cross) {
|
||||
# inherit fetchurl stdenv;
|
||||
# gccCross = gcc40arm;
|
||||
# binutilsCross = binutilsArm;
|
||||
# arch = "arm";
|
||||
#};
|
||||
|
||||
dietlibcWrapper = (import ../os-specific/linux/dietlibc-wrapper) {
|
||||
inherit stdenv dietlibc;
|
||||
gcc = stdenv.gcc;
|
||||
|
Loading…
Reference in New Issue
Block a user