uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
15
pkgs/build-support/kernel/modules-closure.nix
Normal file
15
pkgs/build-support/kernel/modules-closure.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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.
|
||||
|
||||
{ stdenvNoCC, kernel, firmware, nukeReferences, rootModules
|
||||
, kmod, allowMissing ? false }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = kernel.name + "-shrunk";
|
||||
builder = ./modules-closure.sh;
|
||||
nativeBuildInputs = [ nukeReferences kmod ];
|
||||
inherit kernel firmware rootModules allowMissing;
|
||||
allowedReferences = ["out"];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue