Making busybox cross build with kernel 2.4 for mipsel (I had to disable 'ionice', which

requires some headers >= 2.6.12).

I also add the kernel 2.4 headers expression I forgot in my last commit.

svn path=/nixpkgs/trunk/; revision=20540
This commit is contained in:
Lluís Batlle i Rossell
2010-03-10 21:32:35 +00:00
parent 648b17197f
commit 5b7f1ef09a
2 changed files with 58 additions and 1 deletions
+4 -1
View File
@@ -25,6 +25,9 @@ stdenv.mkDerivation {
crossAttrs = {
configurePhase = basicConfigure + ''
sed -i 's,.*CONFIG_CROSS_COMPILER_PREFIX.*,CONFIG_CROSS_COMPILER_PREFIX="'$crossConfig-'",' .config
'';
'' +
(if (stdenv.cross.platform.kernelMajor == "2.4") then ''
sed -i 's,.*CONFIG_IONICE.*,CONFIG_IONICE=n,' .config
'' else "");
};
}