tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
makeInitrd: make uinitrd behaviour optional
Linus Heckemann
5 years ago
a343ff7e
b8e7a8d9
+2
-3
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
kernel
make-initrd.nix
+2
-3
pkgs/build-support/kernel/make-initrd.nix
···
17
17
, compressor ? "gzip -9n"
18
18
, prepend ? []
19
19
, lib
20
20
+
, makeUInitrd ? stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage"
20
21
}:
21
22
let
22
23
# !!! Move this into a public lib function, it is probably useful for others
···
24
25
lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x));
25
26
26
27
in stdenvNoCC.mkDerivation rec {
27
27
-
inherit name;
28
28
+
inherit name makeUInitrd;
28
29
29
30
builder = ./make-initrd.sh;
30
30
-
31
31
-
makeUInitrd = stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage";
32
31
33
32
nativeBuildInputs = [ perl cpio ]
34
33
++ stdenvNoCC.lib.optional makeUInitrd ubootTools;