nixpkgs-suyu/pkgs/os-specific/linux/kernel-headers/builder.sh
Armijn Hemel 58f89a8877 change kernel-headers. Now we can build this on powerpc-linux too...
svn path=/nixpkgs/trunk/; revision=6310
2006-08-29 17:48:04 +00:00

29 lines
597 B
Bash

source $stdenv/setup
buildPhase() {
make include/linux/version.h
}
buildPhase=buildPhase
installPhase() {
mkdir $out
mkdir $out/include
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
}
installPhase=installPhase
genericBuild