3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/kernel-headers/builder.sh
Eelco Dolstra 31f2316454 * "ppc" -> "powerpc", but do copy the "ppc" directory as well.
svn path=/nixpkgs/trunk/; revision=6844
2006-10-25 10:55:36 +00:00

27 lines
472 B
Bash

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