* addCoverageInstrumentation: factor out the code that keeps the build

tree under $out into a separate stdenv adapter named keepBuildTree.
* makeModulesClosure: support building an initrd for a kernel that has
  been compiled with coverage instrumentation.

svn path=/nixpkgs/trunk/; revision=16916
This commit is contained in:
Eelco Dolstra
2009-09-01 21:56:46 +00:00
parent 043fe38f80
commit 58e6161768
4 changed files with 47 additions and 30 deletions
@@ -29,6 +29,11 @@ for module in $closure; do
mkdir -p $(dirname $target)
echo $module
cp $module $target
# If the kernel is compiled with coverage instrumentation, it
# contains the paths of the *.gcda coverage data output files
# (which it doesn't actually use...). Get rid of them to prevent
# the whole kernel from being included in the initrd.
nuke-refs $target
echo $target >> $out/insmod-list
done