Fixed building and aggregating modules for not-installed kernel version

svn path=/nixpkgs/trunk/; revision=10226
This commit is contained in:
Michael Raskin 2008-01-19 11:00:09 +00:00
parent f22d19c128
commit 12ea9ddea2
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ let
cat config-host.mak
'') [minInit];
preConfigure = FullDepEntry (''
sed -e 's/`uname -r`/'"$(basename ${kernel}/lib/modules/*)"'/' -i install.sh
sed -e '/kernel_path=/akernel_path=$out$kernel_path' -i install.sh
sed -e '/depmod/d' -i install.sh
cat install.sh

View file

@ -18,7 +18,7 @@ done
rm -rf nix-support
cd lib/modules/
rm */modules.*
MODULE_DIR=$PWD/ depmod -a
MODULE_DIR=$PWD/ depmod -a *
cd $out/
'') [minInit addInputs defEnsureDir];
in