* "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/asm-$platform $out/include
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
}

View File

@ -13,6 +13,9 @@ stdenv.mkDerivation {
platform =
if stdenv.system == "i686-linux" then "i386" 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";
extraIncludeDirs =
if stdenv.system == "powerpc-linux" then ["ppc"] else [];
}