Some first changes to get some evaluation working on the fuloong2f

svn path=/nixpkgs/branches/stdenv-updates/; revision=22840
This commit is contained in:
Lluís Batlle i Rossell 2010-08-01 20:57:13 +00:00
parent ba58eb8e22
commit 937578d5ef
7 changed files with 63 additions and 7 deletions

View File

@ -61,6 +61,9 @@ stdenv.mkDerivation ({
/* Make sure `nscd' et al. are linked against `libssp'. */
./stack-protector-link.patch
/* Fix for the check of -fgnu89-inline compiler flag */
./gnu89-inline.patch
]
++ stdenv.lib.optional (fetchgit == null)
/* MOD_NANO definition, for ntp (taken from glibc upstream) */
@ -86,7 +89,7 @@ stdenv.mkDerivation ({
"--build=arm-linux-gnueabi"
"--without-fp"
];
buildInputs = stdenv.lib.optionals (cross != null) [ gccCross ]
++ stdenv.lib.optional (mig != null) mig;
@ -149,7 +152,7 @@ stdenv.mkDerivation ({
mkdir ../build
cd ../build
configureScript="../$sourceRoot/configure"
configureScript="`pwd`/../$sourceRoot/configure"
${preConfigure}
'';

View File

@ -20,6 +20,7 @@ stdenv.mkDerivation {
if stdenv.system == "x86_64-linux" then "x86_64" else
if stdenv.system == "powerpc-linux" then "powerpc" else
if stdenv.system == "armv5tel-linux" then "arm" else
if stdenv.system == "mips64-linux" then "mips" else
abort "don't know what the kernel include directory is called for this platform";
buildInputs = [perl];

View File

@ -26,6 +26,7 @@ stdenv.mkDerivation {
if stdenv.system == "x86_64-linux" then "x86_64" else
if stdenv.system == "powerpc-linux" then "powerpc" else
if stdenv.system == "armv5tel-linux" then "arm" else
if stdenv.platform ? kernelArch then stdenv.platform.kernelArch else
abort "don't know what the kernel include directory is called for this platform";
buildInputs = [perl];

View File

@ -94,7 +94,8 @@ let
isLinux = result.system == "i686-linux"
|| result.system == "x86_64-linux"
|| result.system == "powerpc-linux"
|| result.system == "armv5tel-linux";
|| result.system == "armv5tel-linux"
|| result.system == "ict_loongson-2_v0.3_fpu_v0.1-linux";
isSunOS = result.system == "i386-sunos";
isi686 = result.system == "i686-linux"
|| result.system == "i686-darwin"

View File

@ -80,7 +80,7 @@ rec {
cp ${bzip2}/bin/bzip2 $out/bin
cp -d ${gnumake}/bin/* $out/bin
cp -d ${patch}/bin/* $out/bin
cp ${patchelf05}/bin/* $out/bin
cp ${patchelf}/bin/* $out/bin
cp ${replace}/bin/* $out/bin
cp -d ${gnugrep.pcre}/lib/libpcre*.so* $out/lib # needed by grep

View File

@ -6258,7 +6258,7 @@ let
inherit fetchurl stdenv bison flex autoconf automake;
};
linuxHeaders = linuxHeaders_2_6_28;
linuxHeaders = linuxHeaders_2_6_32;
linuxHeaders26Cross = forceBuildDrv (import ../os-specific/linux/kernel-headers/2.6.32.nix {
inherit stdenv fetchurl perl;
@ -6849,11 +6849,9 @@ let
inherit fetchurl stdenv unzip;
};
/*
uclibc = import ../os-specific/linux/uclibc {
inherit fetchurl stdenv linuxHeaders;
};
*/
uclibcCross = import ../os-specific/linux/uclibc {
inherit fetchurl stdenv libiconv;

View File

@ -152,4 +152,56 @@ rec {
uboot = "upstream";
ubootConfig = "integratorcp_config";
};
fuloong2f_n32 = {
name = "fuloong2f_n32";
kernelMajor = "2.6";
kernelHeadersBaseConfig = "fuloong2e_defconfig";
kernelBaseConfig = "fuloong2e_defconfig";
kernelArch = "mips";
kernelAutoModules = false;
kernelExtraConfig =
''
BLK_DEV_RAM y
BLK_DEV_INITRD y
BLK_DEV_CRYPTOLOOP m
BLK_DEV_DM m
DM_CRYPT m
MD y
REISERFS_FS m
EXT4_FS m
USB_STORAGE_CYPRESS_ATACB m
IP_PNP y
NFS_FS y
ROOT_NFS y
TUN m
NFS_V4 y
NFS_V4_1 y
NFS_FSCACHE y
NFSD m
NFSD_V2_ACL y
NFSD_V3 y
NFSD_V3_ACL y
NFSD_V4 y
# Fail to build
DRM n
SCSI_ADVANSYS n
USB_ISP1362_HCD n
SND_SOC n
SND_ALI5451 n
FB_SAVAGE n
SCSI_NSP32 n
ATA_SFF n
SUNGEM n
IRDA n
ATM_HE n
SCSI_ACARD n
BLK_DEV_CMD640_ENHANCED n
FUSE_FS m
'';
kernelTarget = "vmlinux";
};
}