Author: viric
Date: Thu Sep  2 18:41:48 2010
New Revision: 23601
URL: https://svn.nixos.org/websvn/nix/?rev=23601&sc=1

Log:
Adding more platforms to crossbuild to (nanonote and the fuloong minipc)

Modified:
   nixpkgs/branches/stdenv-updates/pkgs/top-level/release-cross.nix

Modified: nixpkgs/branches/stdenv-updates/pkgs/top-level/release-cross.nix
==============================================================================
--- nixpkgs/branches/stdenv-updates/pkgs/top-level/release-cross.nix    Thu Sep 
 2 12:21:56 2010        (r23600)
+++ nixpkgs/branches/stdenv-updates/pkgs/top-level/release-cross.nix    Thu Sep 
 2 18:41:48 2010        (r23601)
@@ -165,4 +165,103 @@
     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;
+  };
 })
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to