nixpkgs/pkgs/build-support/kernel
Maximilian Bosch 378177d269
linux kernel: prefer zstd where possible
Closes #302291
Closes #301536

The following things have changed:

* For 5.7+: ZSWAP compressor uses zstd now.
* For 5.11+: ZRAM compressor uses zstd now.
* For 5.13+: kernel modules are compressed with zstd instead of xz.
* For 5.19+: support zstd-compressed firmware.

The modules-closure functionality needed explicit support for copying
over `.zst` files. Also, the VM image builder used busybox's `insmod`
before which doesn't support zstd. Switched to `kmod` and added xz/zstd
as dependencies for it, similar to how it's done for the actual stage1
in d33e52b253. The use of `kmod` here
doesn't seem to be such a big deal since it's only a build-time
dependency.
2024-04-19 16:45:35 +02:00
..
make-initrd-ng makeInitrdNGTool: 0.1.0 -> 0.1.0 2024-02-12 05:11:50 +00:00
compress-firmware-xz.nix compressFirmwareXz: don't allow references 2024-01-28 11:57:38 +01:00
initrd-compressor-meta.nix
make-initrd-ng-tool.nix treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
make-initrd-ng.nix make-initrd-ng: fix reproducibility problems 2023-12-04 19:23:06 +01:00
make-initrd.nix
make-initrd.sh
modules-closure.nix
modules-closure.sh linux kernel: prefer zstd where possible 2024-04-19 16:45:35 +02:00
paths-from-graph.pl