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
2 changed files with 11 additions and 4 deletions
|
@ -13,8 +13,14 @@ installPhase() {
|
|||
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
|
||||
if test $cross = "arm-linux"; then
|
||||
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
|
||||
}
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
{stdenv, fetchurl}:
|
||||
{stdenv, fetchurl, cross}:
|
||||
|
||||
assert stdenv.system == "i686-linux";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "linux-headers-2.6.13.4-arm";
|
||||
name = "linux-headers-2.6.13.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.4.tar.bz2;
|
||||
md5 = "94768d7eef90a9d8174639b2a7d3f58d";
|
||||
};
|
||||
inherit cross;
|
||||
}
|
Loading…
Reference in a new issue