mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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
This commit is contained in:
parent
a4bd74abde
commit
8bedcacaf1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user