mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
Some first changes to get some evaluation working on the fuloong2f
svn path=/nixpkgs/branches/stdenv-updates/; revision=22840
This commit is contained in:
parent
ba58eb8e22
commit
937578d5ef
|
@ -61,6 +61,9 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
/* Make sure `nscd' et al. are linked against `libssp'. */
|
/* Make sure `nscd' et al. are linked against `libssp'. */
|
||||||
./stack-protector-link.patch
|
./stack-protector-link.patch
|
||||||
|
|
||||||
|
/* Fix for the check of -fgnu89-inline compiler flag */
|
||||||
|
./gnu89-inline.patch
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional (fetchgit == null)
|
++ stdenv.lib.optional (fetchgit == null)
|
||||||
/* MOD_NANO definition, for ntp (taken from glibc upstream) */
|
/* MOD_NANO definition, for ntp (taken from glibc upstream) */
|
||||||
|
@ -86,7 +89,7 @@ stdenv.mkDerivation ({
|
||||||
"--build=arm-linux-gnueabi"
|
"--build=arm-linux-gnueabi"
|
||||||
"--without-fp"
|
"--without-fp"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals (cross != null) [ gccCross ]
|
buildInputs = stdenv.lib.optionals (cross != null) [ gccCross ]
|
||||||
++ stdenv.lib.optional (mig != null) mig;
|
++ stdenv.lib.optional (mig != null) mig;
|
||||||
|
|
||||||
|
@ -149,7 +152,7 @@ stdenv.mkDerivation ({
|
||||||
mkdir ../build
|
mkdir ../build
|
||||||
cd ../build
|
cd ../build
|
||||||
|
|
||||||
configureScript="../$sourceRoot/configure"
|
configureScript="`pwd`/../$sourceRoot/configure"
|
||||||
|
|
||||||
${preConfigure}
|
${preConfigure}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -20,6 +20,7 @@ stdenv.mkDerivation {
|
||||||
if stdenv.system == "x86_64-linux" then "x86_64" else
|
if stdenv.system == "x86_64-linux" then "x86_64" else
|
||||||
if stdenv.system == "powerpc-linux" then "powerpc" else
|
if stdenv.system == "powerpc-linux" then "powerpc" else
|
||||||
if stdenv.system == "armv5tel-linux" then "arm" 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";
|
abort "don't know what the kernel include directory is called for this platform";
|
||||||
|
|
||||||
buildInputs = [perl];
|
buildInputs = [perl];
|
||||||
|
|
|
@ -26,6 +26,7 @@ stdenv.mkDerivation {
|
||||||
if stdenv.system == "x86_64-linux" then "x86_64" else
|
if stdenv.system == "x86_64-linux" then "x86_64" else
|
||||||
if stdenv.system == "powerpc-linux" then "powerpc" else
|
if stdenv.system == "powerpc-linux" then "powerpc" else
|
||||||
if stdenv.system == "armv5tel-linux" then "arm" 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";
|
abort "don't know what the kernel include directory is called for this platform";
|
||||||
|
|
||||||
buildInputs = [perl];
|
buildInputs = [perl];
|
||||||
|
|
|
@ -94,7 +94,8 @@ let
|
||||||
isLinux = result.system == "i686-linux"
|
isLinux = result.system == "i686-linux"
|
||||||
|| result.system == "x86_64-linux"
|
|| result.system == "x86_64-linux"
|
||||||
|| result.system == "powerpc-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";
|
isSunOS = result.system == "i386-sunos";
|
||||||
isi686 = result.system == "i686-linux"
|
isi686 = result.system == "i686-linux"
|
||||||
|| result.system == "i686-darwin"
|
|| result.system == "i686-darwin"
|
||||||
|
|
|
@ -80,7 +80,7 @@ rec {
|
||||||
cp ${bzip2}/bin/bzip2 $out/bin
|
cp ${bzip2}/bin/bzip2 $out/bin
|
||||||
cp -d ${gnumake}/bin/* $out/bin
|
cp -d ${gnumake}/bin/* $out/bin
|
||||||
cp -d ${patch}/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 ${replace}/bin/* $out/bin
|
||||||
|
|
||||||
cp -d ${gnugrep.pcre}/lib/libpcre*.so* $out/lib # needed by grep
|
cp -d ${gnugrep.pcre}/lib/libpcre*.so* $out/lib # needed by grep
|
||||||
|
|
|
@ -6258,7 +6258,7 @@ let
|
||||||
inherit fetchurl stdenv bison flex autoconf automake;
|
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 {
|
linuxHeaders26Cross = forceBuildDrv (import ../os-specific/linux/kernel-headers/2.6.32.nix {
|
||||||
inherit stdenv fetchurl perl;
|
inherit stdenv fetchurl perl;
|
||||||
|
@ -6849,11 +6849,9 @@ let
|
||||||
inherit fetchurl stdenv unzip;
|
inherit fetchurl stdenv unzip;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
uclibc = import ../os-specific/linux/uclibc {
|
uclibc = import ../os-specific/linux/uclibc {
|
||||||
inherit fetchurl stdenv linuxHeaders;
|
inherit fetchurl stdenv linuxHeaders;
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
uclibcCross = import ../os-specific/linux/uclibc {
|
uclibcCross = import ../os-specific/linux/uclibc {
|
||||||
inherit fetchurl stdenv libiconv;
|
inherit fetchurl stdenv libiconv;
|
||||||
|
|
|
@ -152,4 +152,56 @@ rec {
|
||||||
uboot = "upstream";
|
uboot = "upstream";
|
||||||
ubootConfig = "integratorcp_config";
|
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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue