From 46383fc82bb6c7b2442889422ed62e3cafdb0161 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 14 Jun 2023 14:38:09 +0000 Subject: [PATCH] linuxManualConfig: set badPlatforms Older kernels shouldn't be marked as supporting architectures that were only added to the kernel later. --- pkgs/os-specific/linux/kernel/manual-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index 61013ef090af0..8dd92c99db4a8 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -352,6 +352,9 @@ let maintainers.thoughtpolice ]; platforms = platforms.linux; + badPlatforms = + lib.optionals (lib.versionOlder version "4.15") [ "riscv32-linux" "riscv64-linux" ] ++ + lib.optional (lib.versionOlder version "5.19") "loongarch64-linux"; timeout = 14400; # 4 hours } // extraMeta; };