summary refs log tree commit diff
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-09-02 18:41:48 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-09-02 18:41:48 +0000
commit6013c0cf8b2b6f76020f00efec7194cf83f7132c (patch)
tree5210414940e8ea929ebc72dc165dcb7fc849179d
parenta7791cfd1b6709a864abb62ba1de4d158873efe8 (diff)
downloadnixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.tar
nixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.tar.gz
nixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.tar.bz2
nixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.tar.lz
nixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.tar.xz
nixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.tar.zst
nixpkgs-6013c0cf8b2b6f76020f00efec7194cf83f7132c.zip
Adding more platforms to crossbuild to (nanonote and the fuloong minipc)
svn path=/nixpkgs/branches/stdenv-updates/; revision=23601
-rw-r--r--pkgs/top-level/release-cross.nix99
1 files changed, 99 insertions, 0 deletions
diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix
index 91d7b7a5adf..7b75a447083 100644
--- a/pkgs/top-level/release-cross.nix
+++ b/pkgs/top-level/release-cross.nix
@@ -165,4 +165,103 @@ in {
     patch.hostDrv = nativePlatforms;
     zile.hostDrv = nativePlatforms;
   };
+}) // (
+
+/* Linux on the fuloong */
+let
+  crossSystem = {
+    config = "mips64el-unknown-linux";  
+    bigEndian = false;
+    arch = "mips";
+    float = "hard";
+    withTLS = true;
+    libc = "glibc";
+    platform = {
+      name = "fuloong-minipc";
+      kernelMajor = "2.6";
+      kernelBaseConfig = "lemote2f_defconfig";
+      kernelHeadersBaseConfig = "fuloong2e_defconfig";
+      uboot = null;
+      kernelArch = "mips";
+      kernelAutoModules = false;
+      kernelTarget = "vmlinux";
+    };
+    openssl.system = "linux-generic32";
+    gcc = {
+      arch = "loongson2f";
+      abi = "n32";
+    };
+  };
+in {
+  fuloongminipc = mapTestOnCross crossSystem {
+    gccCrossStageFinal = nativePlatforms;
+
+    coreutils_real.hostDrv = nativePlatforms;
+    ed.hostDrv = nativePlatforms;
+    grub2.hostDrv = nativePlatforms;
+    inetutils.hostDrv = nativePlatforms;
+    nixUnstable.hostDrv = nativePlatforms;
+    patch.hostDrv = nativePlatforms;
+    zile.hostDrv = nativePlatforms;
+  };
+}) // (
+
+/* Linux on the Ben Nanonote */
+let
+  crossSystem = {
+    config = "mipsel-unknown-linux";  
+    bigEndian = false;
+    arch = "mips";
+    float = "soft";
+    withTLS = true;
+    libc = "glibc";
+    platform = {
+      name = "ben_nanonote";
+      kernelMajor = "2.6";
+      kernelBaseConfig = "qi_lb60_defconfig";
+      kernelHeadersBaseConfig = "malta_defconfig";
+      uboot = "nanonote";
+      kernelArch = "mips";
+      kernelAutoModules = false;
+      kernelTarget = "vmlinux.bin";
+      kernelExtraConfig = ''
+        SOUND y
+        SND y
+        SND_MIPS y
+        SND_SOC y
+        SND_JZ4740_SOC y
+        SND_JZ4740_SOC_QI_LB60 y
+        FUSE_FS m
+        MIPS_FPU_EMU y
+      '';
+    };
+    openssl.system = "linux-generic32";
+    perl.arch = "mipsel-unknown";
+    uclibc.extraConfig = ''
+      CONFIG_MIPS_ISA_1 n
+      CONFIG_MIPS_ISA_MIPS32 y
+      CONFIG_MIPS_N32_ABI n
+      CONFIG_MIPS_O32_ABI y
+      ARCH_BIG_ENDIAN n
+      ARCH_WANTS_BIG_ENDIAN n
+      ARCH_WANTS_LITTLE_ENDIAN y
+      LINUXTHREADS_OLD y
+    '';
+    gcc = {
+      abi = "32";
+      arch = "mips32";
+    };
+    mpg123.cpu = "generic_nofpu";
+  };
+in {
+  nanonote = mapTestOnCross crossSystem {
+    gccCrossStageFinal = nativePlatforms;
+
+    coreutils_real.hostDrv = nativePlatforms;
+    ed.hostDrv = nativePlatforms;
+    inetutils.hostDrv = nativePlatforms;
+    nixUnstable.hostDrv = nativePlatforms;
+    patch.hostDrv = nativePlatforms;
+    zile.hostDrv = nativePlatforms;
+  };
 })