mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
change kernel-headers. Now we can build this on powerpc-linux too...
svn path=/nixpkgs/trunk/; revision=6310
This commit is contained in:
parent
c2f5345172
commit
58f89a8877
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user