mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Adding uboot cross compilation. I had to adapt the package a bit, because it
does not use autotools. svn path=/nixpkgs/branches/stdenv-updates/; revision=18362
This commit is contained in:
parent
3c4edd6bfa
commit
d82c7e0a69
@ -1,6 +1,6 @@
|
||||
{stdenv, fetchurl, unzip}:
|
||||
|
||||
assert stdenv.system == "armv5tel-linux";
|
||||
# assert stdenv.system == "armv5tel-linux";
|
||||
|
||||
# All this file is made for the Marvell Sheevaplug
|
||||
|
||||
@ -34,7 +34,11 @@ stdenv.mkDerivation {
|
||||
|
||||
buildPhase = ''
|
||||
unset src
|
||||
make clean all
|
||||
if test -z "$crossTarget"; then
|
||||
make clean all
|
||||
else
|
||||
make clean all ARCH=arm CROSS_COMPILE=$crossTarget-
|
||||
fi
|
||||
'';
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
@ -6096,10 +6096,14 @@ let
|
||||
inherit (xlibs) libX11 xproto;
|
||||
};*/
|
||||
|
||||
uboot = import ../misc/uboot {
|
||||
uboot = makeOverridable (import ../misc/uboot) {
|
||||
inherit fetchurl stdenv unzip;
|
||||
};
|
||||
|
||||
ubootArm = uboot.override {
|
||||
stdenv = stdenvCross "armv5tel-unknown-linux-gnueabi";
|
||||
};
|
||||
|
||||
uclibc = import ../os-specific/linux/uclibc {
|
||||
inherit fetchurl stdenv kernelHeaders;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user