From ef1918f200db0e946c2aa1dcdba8c0bc813a7a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 28 Feb 2010 08:58:07 +0000 Subject: [PATCH] Allowing the kernel to build in the sheevaplug natively. svn path=/nixpkgs/trunk/; revision=20284 --- pkgs/os-specific/linux/kernel/generic.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 13b3cdcfb94f..5979b038283d 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -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