linux: fix loongarch64-linux build (#509871)

This commit is contained in:
Weijia Wang
2026-04-23 09:26:36 +00:00
committed by GitHub
@@ -1231,7 +1231,7 @@ let
EFI = lib.mkIf stdenv.hostPlatform.isEfi yes;
EFI_STUB = yes; # EFI bootloader in the bzImage itself
EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER = whenOlder "6.2" yes; # initrd kernel parameter for EFI
EFI_VARS_PSTORE = yes;
EFI_VARS_PSTORE = lib.mkIf (!stdenv.hostPlatform.isLoongArch64) yes;
# Generic compression support for EFI payloads
# Add new platforms only after they have been verified to build and boot.