forked from mirrors/nixpkgs
31f2316454
svn path=/nixpkgs/trunk/; revision=6844
27 lines
472 B
Bash
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
|