mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 10:04:08 +00:00
linux: disable KUnit (#247826)
This commit is contained in:
parent
0a139cd67d
commit
80be2b22b0
@ -1034,6 +1034,10 @@ let
|
|||||||
|
|
||||||
# Fresh toolchains frequently break -Werror build for minor issues.
|
# Fresh toolchains frequently break -Werror build for minor issues.
|
||||||
WERROR = whenAtLeast "5.15" no;
|
WERROR = whenAtLeast "5.15" no;
|
||||||
|
|
||||||
|
# > 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;
|
||||||
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
|
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
|
||||||
# Enable CPU/memory hotplug support
|
# Enable CPU/memory hotplug support
|
||||||
# Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot
|
# Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot
|
||||||
|
Loading…
Reference in New Issue
Block a user