Allowing the kernel to build in the sheevaplug natively.

svn path=/nixpkgs/trunk/; revision=20284
This commit is contained in:
Lluís Batlle i Rossell 2010-02-28 08:58:07 +00:00
parent 18f667a954
commit ef1918f200

View file

@ -88,11 +88,14 @@ stdenv.mkDerivation {
kernelTarget = stdenv.platform.kernelTarget;
autoModules = stdenv.platform.kernelAutoModules;
# Should we trust platform.kernelArch? We can only do
# that once we differentiate i686/x86_64 in platforms.
arch =
if xen then "xen" else
if userModeLinux then "um" else
if stdenv.system == "i686-linux" then "i386" else
if stdenv.system == "x86_64-linux" then "x86_64" else
if stdenv.system == "armv5tel-linux" then "arm" else
abort "Platform ${stdenv.system} is not supported.";
crossAttrs = let