makeInitrd: make uinitrd behaviour optional

+2 -3
+2 -3
pkgs/build-support/kernel/make-initrd.nix
··· 17 , compressor ? "gzip -9n" 18 , prepend ? [] 19 , lib 20 }: 21 let 22 # !!! Move this into a public lib function, it is probably useful for others ··· 24 lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x)); 25 26 in stdenvNoCC.mkDerivation rec { 27 - inherit name; 28 29 builder = ./make-initrd.sh; 30 - 31 - makeUInitrd = stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage"; 32 33 nativeBuildInputs = [ perl cpio ] 34 ++ stdenvNoCC.lib.optional makeUInitrd ubootTools;
··· 17 , compressor ? "gzip -9n" 18 , prepend ? [] 19 , lib 20 + , makeUInitrd ? stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage" 21 }: 22 let 23 # !!! Move this into a public lib function, it is probably useful for others ··· 25 lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x)); 26 27 in stdenvNoCC.mkDerivation rec { 28 + inherit name makeUInitrd; 29 30 builder = ./make-initrd.sh; 31 32 nativeBuildInputs = [ perl cpio ] 33 ++ stdenvNoCC.lib.optional makeUInitrd ubootTools;