linux/common-config: fix for Linux 5.10.y on aarch64

Until 5.15, HYPERV only supports x86, so forcing module broke
configuration of 5.10 on aarch64.  Our kernel configuration script
sets every module it can to "m" anyway, so it was redundant and
breakage-prone to set any value here for pre-6.18.

I've confiremd that HYPERV is still set to "m" on 6.12 after this
change.

Fixes: e9b977bc41 ("linux/common-config: update for 6.18")
This commit is contained in:
Alyssa Ross
2025-12-17 19:18:15 +01:00
parent e63da883e5
commit 409317adb3
@@ -567,10 +567,7 @@ let
(stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux")
{
# Enable Hyper-V guest stuff
HYPERV = lib.mkMerge [
(whenOlder "6.18" module)
(whenAtLeast "6.18" yes)
];
HYPERV = whenAtLeast "6.18" yes;
# Enable Hyper-V Synthetic DRM Driver
DRM_HYPERV = whenAtLeast "5.14" module;
# And disable the legacy framebuffer driver when we have the new one