aboutsummaryrefslogtreecommitdiff
path: root/pkgs/build-support/kernel
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2019-04-13 22:29:47 +0200
committerLinus Heckemann <git@sphalerite.org>2019-04-13 23:20:58 +0200
commit3b16f345b5d82559b6a80256f6e72db01e9ffd06 (patch)
treecc1f213a662dd712fad453325f8fea8c48e579f7 /pkgs/build-support/kernel
parent8a0b2714fbe189ce81bc5127d82ba1c5b5dac0f3 (diff)
make-initrd: allow specifying name
Also moves the argument defaults out of all-packages.nix and into make-initrd itself.
Diffstat (limited to 'pkgs/build-support/kernel')
-rw-r--r--pkgs/build-support/kernel/make-initrd.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/build-support/kernel/make-initrd.nix b/pkgs/build-support/kernel/make-initrd.nix
index 22761af158af..7ad1affb65a3 100644
--- a/pkgs/build-support/kernel/make-initrd.nix
+++ b/pkgs/build-support/kernel/make-initrd.nix
@@ -12,11 +12,14 @@
# `contents = {object = ...; symlink = /init;}' is a typical
# argument.
-{ stdenv, perl, cpio, contents, compressor, prepend, ubootTools
+{ stdenv, perl, cpio, contents, ubootTools
+, name ? "initrd"
+, compressor ? "gzip -9n"
+, prepend ? []
}:
stdenv.mkDerivation rec {
- name = "initrd";
+ inherit name;
builder = ./make-initrd.sh;
makeUInitrd = stdenv.hostPlatform.platform.kernelTarget == "uImage";