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