Make kernel builder compatible with 2.6.24-rc2

svn path=/nixpkgs/branches/stdenv-updates/; revision=9732
This commit is contained in:
Yury G. Kudryashov 2007-11-17 14:05:32 +00:00
parent c42b3b374e
commit 07091eed11
1 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ installPhase() {
cp arch/$arch/boot/bzImage $out/vmlinuz
fi
sed -e '/-b $(INSTALL_MOD_PATH)/d' -i Makefile
# Install the modules in $out/lib/modules with matching paths
# in modules.dep (i.e., refererring to $out/lib/modules, not
# /lib/modules). The depmod_opts= is to prevent the kernel
@ -95,7 +96,7 @@ installPhase() {
if test "$arch" != um; then
# copy all Makefiles and Kconfig files
ln -s $out/lib/modules/$version/build $out/lib/modules/$version/source
cp --parents `find -type f -name Makefile -o -name "Kconfig*"` $out/lib/modules/$version/build
cp --parents `find -type f -name Makefile-\* -o -name "Kconfig*"` $out/lib/modules/$version/build
cp Module.symvers $out/lib/modules/$version/build
# weed out unneeded stuff