Installing kernel headers using make headers_install
svn path=/nixpkgs/branches/stdenv-updates/; revision=9815
This commit is contained in:
parent
29ef9c473a
commit
e1d5804f30
@ -1,26 +1,9 @@
|
|||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
|
patchPhase="sed -i '/scsi/d' include/Kbuild"
|
||||||
|
|
||||||
buildPhase() {
|
buildPhase="make mrproper headers_check";
|
||||||
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
|
|
||||||
|
|
||||||
|
installPhase="make INSTALL_HDR_PATH=$out headers_install"
|
||||||
|
|
||||||
genericBuild
|
genericBuild
|
||||||
|
Loading…
x
Reference in New Issue
Block a user