From 8bedcacaf137c71bbc7096c88d37229e73c8e48c Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Wed, 5 Jan 2022 00:19:09 +0100 Subject: [PATCH] linux: enable X86_SGX{_KVM} on x86_64 only The config option X86_SGX is available on x86_64-linux only; i686-linux is not supported. https://github.com/torvalds/linux/blob/55a677b/arch/x86/Kconfig#L1914 --- pkgs/os-specific/linux/kernel/common-config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index b127ec9197cb..82de6a96e745 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -473,7 +473,7 @@ let # Detect buffer overflows on the stack CC_STACKPROTECTOR_REGULAR = {optional = true; tristate = whenOlder "4.18" "y";}; - } // optionalAttrs stdenv.hostPlatform.isx86 { + } // optionalAttrs stdenv.hostPlatform.isx86_64 { # Enable Intel SGX X86_SGX = whenAtLeast "5.11" yes; # Allow KVM guests to load SGX enclaves