* 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
@@ -3,11 +3,13 @@
# the modules identified by `rootModules', plus their dependencies.
# Also generate an appropriate modules.dep.
{stdenv, kernel, rootModules, module_init_tools, allowMissing ? false}:
{ stdenv, kernel, nukeReferences, rootModules
, module_init_tools, allowMissing ? false }:
stdenv.mkDerivation {
name = kernel.name + "-shrunk";
builder = ./modules-closure.sh;
buildInputs = [nukeReferences];
inherit kernel rootModules module_init_tools allowMissing;
allowedReferences = ["out"];
}