change kernel-headers. Now we can build this on powerpc-linux too...

svn path=/nixpkgs/trunk/; revision=6310
This commit is contained in:
Armijn Hemel 2006-08-29 17:48:04 +00:00
parent c2f5345172
commit 58f89a8877
3 changed files with 13 additions and 7 deletions

View File

@ -11,9 +11,15 @@ buildPhase=buildPhase
installPhase() {
mkdir $out
mkdir $out/include
cp -prvd include/linux include/asm-i386 include/asm-generic $out/include
cd $out/include
ln -s asm-i386 asm
if test $system = "i686-linux"; then
cp -prvd include/linux include/asm-i386 include/asm-generic $out/include
cd $out/include
ln -s asm-i386 asm
elif test $system = "powerpc-linux"; then
cp -prvd include/linux include/asm-ppc include/asm-generic $out/include
cd $out/include
ln -s asm-ppc asm
fi
echo -n > $out/include/linux/autoconf.h
}

View File

@ -1,9 +1,9 @@
{stdenv, fetchurl}:
assert stdenv.system == "i686-linux";
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "linux-headers-2.6.14.3-i386";
name = "linux-headers-2.6.14.3";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/linux-2.6.14.3.tar.bz2;

View File

@ -1,9 +1,9 @@
{stdenv, fetchurl}:
assert stdenv.system == "i686-linux";
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "linux-headers-2.6.17.6-i386";
name = "linux-headers-2.6.17.6";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/os/Linux/system/kernel/v2.6/linux-2.6.17.6.tar.bz2;