Fixing the evaluation of cross built uclibc in the case of lacking extraConfig

svn path=/nixpkgs/branches/stdenv-updates/; revision=23602
This commit is contained in:
Lluís Batlle i Rossell 2010-09-02 19:18:04 +00:00
parent 6013c0cf8b
commit 14a20b7179
2 changed files with 12 additions and 6 deletions

View File

@ -64,7 +64,7 @@ stdenv.mkDerivation {
cat << EOF | parseconfig
${nixConfig}
${extraConfig}
${if cross != null then cross.uclibc.extraConfig else ""}
${if cross != null then stdenv.lib.attrByPath [ "uclibc" "extraConfig" ] "" cross else ""}
$extraCrossConfig
EOF
make oldconfig

View File

@ -4,9 +4,10 @@ let
/* Basic list of packages to cross-build */
basicHostDrv = {
gccCrossStageFinal = nativePlatforms;
bison.hostDrv = nativePlatforms;
busybox.hostDrv = nativePlatforms;
coreutils_real.hostDrv = nativePlatforms;
coreutils.hostDrv = nativePlatforms;
dropbear.hostDrv = nativePlatforms;
tightvnc.hostDrv = nativePlatforms;
#openoffice.hostDrv = nativePlatforms;
@ -18,6 +19,8 @@ let
nixUnstable.hostDrv = nativePlatforms;
linuxPackages_2_6_32.kernel.hostDrv = linux;
linuxPackages_2_6_33.kernel.hostDrv = linux;
linuxPackages_2_6_34.kernel.hostDrv = linux;
linuxPackages_2_6_35.kernel.hostDrv = linux;
};
/* Basic list of packages to be natively built,
@ -63,6 +66,13 @@ let
platform = pkgs.platforms.sheevaplug;
libc = "uclibc";
openssl.system = "linux-generic32";
uclibc.extraConfig = ''
CONFIG_ARM_OABI n
CONFIG_ARM_EABI y
ARCH_BIG_ENDIAN n
ARCH_WANTS_BIG_ENDIAN n
ARCH_WANTS_LITTLE_ENDIAN y
'';
};
in {
@ -135,7 +145,6 @@ let
in {
crossMingw32 = mapTestOnCross crossSystem {
windows.wxMSW.hostDrv = nativePlatforms;
gccCrossStageFinal = nativePlatforms;
};
}) // (
@ -153,7 +162,6 @@ let
};
in {
crossGNU = mapTestOnCross crossSystem {
gccCrossStageFinal = nativePlatforms;
hurdCross = nativePlatforms;
mach.hostDrv = nativePlatforms;
@ -194,7 +202,6 @@ let
};
in {
fuloongminipc = mapTestOnCross crossSystem {
gccCrossStageFinal = nativePlatforms;
coreutils_real.hostDrv = nativePlatforms;
ed.hostDrv = nativePlatforms;
@ -255,7 +262,6 @@ let
};
in {
nanonote = mapTestOnCross crossSystem {
gccCrossStageFinal = nativePlatforms;
coreutils_real.hostDrv = nativePlatforms;
ed.hostDrv = nativePlatforms;