linux: restrict zboot to aarch64

Enabling EFI_ZBOOT fails at least the x86 builds. More compatible
platforms can be added after testing.
This commit is contained in:
Franz Pletz 2024-07-03 20:09:08 +02:00
parent 2082109d30
commit d5c83b4a42
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1051,7 +1051,12 @@ let
EFI_STUB = yes; # EFI bootloader in the bzImage itself
EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER =
whenOlder "6.2" (whenAtLeast "5.8" yes); # initrd kernel parameter for EFI
EFI_ZBOOT = whenAtLeast "6.1" yes; # Generic compression support for EFI payloads
# Generic compression support for EFI payloads
# Add new platforms only after they have been verified to build and boot.
# This is unsupported on x86 due to a custom decompression mechanism.
EFI_ZBOOT = mkIf stdenv.hostPlatform.isAarch64 (whenAtLeast "6.1" yes);
CGROUPS = yes; # used by systemd
FHANDLE = yes; # used by systemd
SECCOMP = yes; # used by systemd >= 231