add kernel headers for ARM

svn path=/nixpkgs/trunk/; revision=4316
This commit is contained in:
Armijn Hemel 2005-11-28 22:03:13 +00:00
parent 3f3636a403
commit 0cf7a93827
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,24 @@
. $stdenv/setup
buildPhase() {
make include/linux/version.h
}
buildPhase=buildPhase
installPhase() {
mkdir $out
mkdir $out/include
#cd $out/include
#ln -s asm-arm asm
make include/asm ARCH=arm
cp -prvd include/linux include/asm include/asm-arm include/asm-generic $out/include
echo -n > $out/include/linux/autoconf.h
}
installPhase=installPhase
genericBuild

View file

@ -0,0 +1,12 @@
{stdenv, fetchurl}:
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "linux-headers-2.6.13.4-arm";
builder = ./builder.sh;
src = fetchurl {
url = http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.4.tar.bz2;
md5 = "94768d7eef90a9d8174639b2a7d3f58d";
};
}