2010-03-09 11:33:31 +01:00
|
|
|
with (import ./release-lib.nix);
|
2010-03-09 15:14:30 +01:00
|
|
|
let
|
|
|
|
nativePlatforms = linux;
|
|
|
|
|
|
|
|
/* Basic list of packages to cross-build */
|
|
|
|
basicHostDrv = {
|
|
|
|
bison.hostDrv = nativePlatforms;
|
2010-03-09 23:44:45 +01:00
|
|
|
busybox.hostDrv = nativePlatforms;
|
2010-03-10 00:11:12 +01:00
|
|
|
dropbear.hostDrv = nativePlatforms;
|
2010-03-09 15:14:30 +01:00
|
|
|
tightvnc.hostDrv = nativePlatforms;
|
|
|
|
#openoffice.hostDrv = nativePlatforms;
|
|
|
|
wxGTK.hostDrv = nativePlatforms;
|
|
|
|
#firefox = nativePlatforms;
|
|
|
|
xorg = {
|
|
|
|
#xorgserver.hostDrv = nativePlatforms;
|
|
|
|
};
|
|
|
|
nixUnstable.hostDrv = nativePlatforms;
|
|
|
|
linuxPackages_2_6_32.kernel.hostDrv = linux;
|
|
|
|
linuxPackages_2_6_33.kernel.hostDrv = linux;
|
|
|
|
};
|
2010-03-09 11:33:31 +01:00
|
|
|
|
2010-03-09 15:14:30 +01:00
|
|
|
/* Basic list of packages to be natively built,
|
|
|
|
but need a crossSystem defined to get meaning */
|
|
|
|
basicBuildDrv = {
|
|
|
|
gdbCross = nativePlatforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
basic = basicHostDrv // basicBuildDrv;
|
|
|
|
|
|
|
|
in
|
2010-03-09 11:33:31 +01:00
|
|
|
(
|
|
|
|
|
|
|
|
/* Test some cross builds to the Sheevaplug */
|
|
|
|
let
|
|
|
|
crossSystem = {
|
|
|
|
config = "armv5tel-unknown-linux-gnueabi";
|
|
|
|
bigEndian = false;
|
|
|
|
arch = "arm";
|
|
|
|
float = "soft";
|
|
|
|
withTLS = true;
|
|
|
|
platform = pkgs.platforms.sheevaplug;
|
2010-03-09 16:48:25 +01:00
|
|
|
libc = "glibc";
|
2010-03-09 11:33:31 +01:00
|
|
|
openssl.system = "linux-generic32";
|
|
|
|
};
|
2010-03-09 15:14:30 +01:00
|
|
|
|
2010-03-09 11:33:31 +01:00
|
|
|
in {
|
2010-03-09 15:14:30 +01:00
|
|
|
crossSheevaplugLinux = mapTestOnCross crossSystem (
|
|
|
|
basic //
|
|
|
|
{
|
|
|
|
ubootSheevaplug.hostDrv = nativePlatforms;
|
|
|
|
});
|
2010-03-09 11:33:31 +01:00
|
|
|
}) // (
|
|
|
|
|
2010-03-09 16:48:25 +01:00
|
|
|
/* Test some cross builds to the Sheevaplug - uclibc*/
|
|
|
|
let
|
|
|
|
crossSystem = {
|
|
|
|
config = "armv5tel-unknown-linux-gnueabi";
|
|
|
|
bigEndian = false;
|
|
|
|
arch = "arm";
|
|
|
|
float = "soft";
|
|
|
|
withTLS = true;
|
|
|
|
platform = pkgs.platforms.sheevaplug;
|
|
|
|
libc = "uclibc";
|
|
|
|
openssl.system = "linux-generic32";
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
crossSheevaplugLinuxUclibc = mapTestOnCross crossSystem (
|
|
|
|
basic //
|
|
|
|
{
|
|
|
|
ubootSheevaplug.hostDrv = nativePlatforms;
|
|
|
|
});
|
|
|
|
}) // (
|
|
|
|
|
2010-03-09 11:33:31 +01:00
|
|
|
/* Test some cross builds to the mipsel */
|
|
|
|
let
|
|
|
|
crossSystem = {
|
|
|
|
config = "mipsel-unknown-linux";
|
|
|
|
bigEndian = false;
|
|
|
|
arch = "mips";
|
|
|
|
float = "soft";
|
|
|
|
withTLS = true;
|
2010-03-10 21:44:48 +01:00
|
|
|
libc = "uclibc";
|
2010-03-09 11:33:31 +01:00
|
|
|
platform = {
|
|
|
|
name = "malta";
|
2010-03-10 21:44:48 +01:00
|
|
|
kernelMajor = "2.4";
|
2010-03-09 11:33:31 +01:00
|
|
|
kernelBaseConfig = "malta_defconfig";
|
2010-03-10 21:44:48 +01:00
|
|
|
kernelHeadersBaseConfig = "defconfig-malta";
|
2010-03-09 11:33:31 +01:00
|
|
|
uboot = null;
|
|
|
|
kernelArch = "mips";
|
|
|
|
kernelAutoModules = false;
|
2010-03-10 21:44:48 +01:00
|
|
|
kernelTarget = "vmlinux";
|
2010-03-09 11:33:31 +01:00
|
|
|
};
|
|
|
|
openssl.system = "linux-generic32";
|
|
|
|
};
|
|
|
|
in {
|
2010-03-10 21:44:48 +01:00
|
|
|
crossMipselLinux24 = mapTestOnCross crossSystem basic;
|
2010-03-09 11:33:31 +01:00
|
|
|
}) // (
|
|
|
|
|
|
|
|
/* Test some cross builds to the ultrasparc */
|
|
|
|
let
|
|
|
|
crossSystem = {
|
|
|
|
config = "sparc64-unknown-linux";
|
|
|
|
bigEndian = true;
|
|
|
|
arch = "sparc64";
|
|
|
|
float = "hard";
|
|
|
|
withTLS = true;
|
2010-03-09 16:48:25 +01:00
|
|
|
libc = "glibc";
|
2010-03-09 11:33:31 +01:00
|
|
|
platform = {
|
|
|
|
name = "ultrasparc";
|
2010-03-10 21:44:48 +01:00
|
|
|
kernelMajor = "2.6";
|
2010-03-09 11:33:31 +01:00
|
|
|
kernelHeadersBaseConfig = "sparc64_defconfig";
|
|
|
|
kernelBaseConfig = "sparc64_defconfig";
|
|
|
|
kernelArch = "sparc";
|
|
|
|
kernelAutoModules = false;
|
|
|
|
kernelTarget = "zImage";
|
|
|
|
uboot = null;
|
|
|
|
};
|
|
|
|
openssl.system = "linux64-sparcv9";
|
2010-03-14 15:05:08 +01:00
|
|
|
gcc.cpu = "ultrasparc";
|
2010-03-09 11:33:31 +01:00
|
|
|
};
|
|
|
|
in {
|
2010-03-09 15:14:30 +01:00
|
|
|
crossUltraSparcLinux = mapTestOnCross crossSystem basic;
|
2010-05-06 20:47:35 +02:00
|
|
|
}) // (
|
|
|
|
|
|
|
|
/* Test some cross builds on mingw32 */
|
|
|
|
let
|
|
|
|
crossSystem = {
|
|
|
|
config = "i686-pc-mingw32";
|
|
|
|
arch = "x86";
|
|
|
|
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
|
|
|
|
platform = {};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
crossMingw32 = mapTestOnCross crossSystem {
|
2010-05-06 21:20:47 +02:00
|
|
|
windows.wxMSW.hostDrv = nativePlatforms;
|
2010-05-06 20:47:35 +02:00
|
|
|
gccCrossStageFinal = nativePlatforms;
|
|
|
|
};
|
2010-03-09 11:33:31 +01:00
|
|
|
})
|