make the headers more generic, so we can also do things like MIPS.
svn path=/nixpkgs/trunk/; revision=4466
This commit is contained in:
parent
bfcb644bb4
commit
bcfef16b46
@ -13,8 +13,14 @@ installPhase() {
|
|||||||
mkdir $out/include
|
mkdir $out/include
|
||||||
#cd $out/include
|
#cd $out/include
|
||||||
#ln -s asm-arm asm
|
#ln -s asm-arm asm
|
||||||
make include/asm ARCH=arm
|
if test $cross = "arm-linux"; then
|
||||||
cp -prvd include/linux include/asm include/asm-arm include/asm-generic $out/include
|
arch=arm
|
||||||
|
else if test $cross = "mips-linux"; then
|
||||||
|
arch=mips
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
make include/asm ARCH=$arch
|
||||||
|
cp -prvd include/linux include/asm include/asm-$arch include/asm-generic $out/include
|
||||||
echo -n > $out/include/linux/autoconf.h
|
echo -n > $out/include/linux/autoconf.h
|
||||||
}
|
}
|
||||||
|
|
@ -1,12 +1,13 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl, cross}:
|
||||||
|
|
||||||
assert stdenv.system == "i686-linux";
|
assert stdenv.system == "i686-linux";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "linux-headers-2.6.13.4-arm";
|
name = "linux-headers-2.6.13.4";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.4.tar.bz2;
|
url = http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.4.tar.bz2;
|
||||||
md5 = "94768d7eef90a9d8174639b2a7d3f58d";
|
md5 = "94768d7eef90a9d8174639b2a7d3f58d";
|
||||||
};
|
};
|
||||||
|
inherit cross;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user