1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

* "ppc" -> "powerpc", but do copy the "ppc" directory as well.

svn path=/nixpkgs/trunk/; revision=6844
This commit is contained in:
Eelco Dolstra 2006-10-25 10:55:36 +00:00
parent 26a11fbf54
commit 31f2316454
2 changed files with 7 additions and 1 deletions

View file

@ -14,6 +14,9 @@ installPhase() {
cp -prvd include/linux include/asm-generic $out/include cp -prvd include/linux include/asm-generic $out/include
cp -prvd include/asm-$platform $out/include cp -prvd include/asm-$platform $out/include
ln -s asm-$platform $out/include/asm ln -s asm-$platform $out/include/asm
for i in $extraIncludeDirs; do
cp -prvd include/asm-$i $out/include
done
echo -n > $out/include/linux/autoconf.h echo -n > $out/include/linux/autoconf.h
} }

View file

@ -13,6 +13,9 @@ stdenv.mkDerivation {
platform = platform =
if stdenv.system == "i686-linux" then "i386" else if stdenv.system == "i686-linux" then "i386" else
if stdenv.system == "x86_64-linux" then "x86_64" else if stdenv.system == "x86_64-linux" then "x86_64" else
if stdenv.system == "powerpc-linux" then "ppc" else if stdenv.system == "powerpc-linux" then "powerpc" else
abort "don't know what the kernel include directory is called for this platform"; abort "don't know what the kernel include directory is called for this platform";
extraIncludeDirs =
if stdenv.system == "powerpc-linux" then ["ppc"] else [];
} }