linux: disable KUNIT only at 5.5 and later

`KUNIT` knob was added around 5.5 release:
    914cc63eea
This commit is contained in:
Sergei Trofimovich 2023-08-12 08:10:06 +01:00
parent 7ad1b2d4e1
commit b93d18275c

View file

@ -1037,7 +1037,7 @@ let
# > CONFIG_KUNIT should not be enabled in a production environment. Enabling KUnit disables Kernel Address-Space Layout Randomization (KASLR), and tests may affect the state of the kernel in ways not suitable for production.
# https://www.kernel.org/doc/html/latest/dev-tools/kunit/start.html
KUNIT = no;
KUNIT = whenAtLeast "5.5" no;
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
# Enable CPU/memory hotplug support
# Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot