You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
573 B
16 lines
573 B
16 years ago
|
# Given a kernel build (with modules in $kernel/lib/modules/VERSION),
|
||
|
# produce a module tree in $out/lib/modules/VERSION that contains only
|
||
|
# the modules identified by `rootModules', plus their dependencies.
|
||
|
# Also generate an appropriate modules.dep.
|
||
|
|
||
7 years ago
|
{ stdenvNoCC, kernel, firmware, nukeReferences, rootModules
|
||
11 years ago
|
, kmod, allowMissing ? false }:
|
||
16 years ago
|
|
||
8 years ago
|
stdenvNoCC.mkDerivation {
|
||
16 years ago
|
name = kernel.name + "-shrunk";
|
||
|
builder = ./modules-closure.sh;
|
||
6 years ago
|
nativeBuildInputs = [ nukeReferences kmod ];
|
||
7 years ago
|
inherit kernel firmware rootModules allowMissing;
|
||
16 years ago
|
allowedReferences = ["out"];
|
||
|
}
|