makeInitrd: make uinitrd behaviour optional
This commit is contained in:
parent
b8e7a8d923
commit
a343ff7e14
@ -17,6 +17,7 @@
|
||||
, compressor ? "gzip -9n"
|
||||
, prepend ? []
|
||||
, lib
|
||||
, makeUInitrd ? stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage"
|
||||
}:
|
||||
let
|
||||
# !!! Move this into a public lib function, it is probably useful for others
|
||||
@ -24,12 +25,10 @@ let
|
||||
lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x));
|
||||
|
||||
in stdenvNoCC.mkDerivation rec {
|
||||
inherit name;
|
||||
inherit name makeUInitrd;
|
||||
|
||||
builder = ./make-initrd.sh;
|
||||
|
||||
makeUInitrd = stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage";
|
||||
|
||||
nativeBuildInputs = [ perl cpio ]
|
||||
++ stdenvNoCC.lib.optional makeUInitrd ubootTools;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user