mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 07:48:58 +00:00
Adding more platforms to crossbuild to (nanonote and the fuloong minipc)
svn path=/nixpkgs/branches/stdenv-updates/; revision=23601
This commit is contained in:
parent
a7791cfd1b
commit
6013c0cf8b
|
@ -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;
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue