From 6013c0cf8b2b6f76020f00efec7194cf83f7132c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 2 Sep 2010 18:41:48 +0000 Subject: [PATCH] Adding more platforms to crossbuild to (nanonote and the fuloong minipc) svn path=/nixpkgs/branches/stdenv-updates/; revision=23601 --- pkgs/top-level/release-cross.nix | 99 ++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index 91d7b7a5adf6..7b75a4470836 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; + }; })