From 899a314271b7f03af109427c2438eee048a4ad96 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 7 Oct 2026 13:35:37 +0200 Subject: [PATCH] meson: define EFI_MACHINE_TYPE_NAME when the bootloader is disabled EFI_MACHINE_TYPE_NAME is empty when systemd-boot is not built. Then get_efi_arch() returns an empty string, and "bootctl --print-efi-architecture" prints an empty line. The architecture does not depend on whether systemd-boot is built, so always set the macro from efi_arch. (cherry picked from commit 7d3ca0a8c530ebb71a40298df6c5d4f88b37d7e9) --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 02fe41b32b..25276e494e 100644 --- a/meson.build +++ b/meson.build @@ -1759,7 +1759,7 @@ have = get_option('bootloader').require( pyelftools.found() and get_option('efi') and efi_arch != '', error_message : 'unsupported EFI arch or EFI support is disabled').allowed() conf.set10('ENABLE_BOOTLOADER', have) -conf.set_quoted('EFI_MACHINE_TYPE_NAME', have ? efi_arch : '') +conf.set_quoted('EFI_MACHINE_TYPE_NAME', efi_arch) efi_arch_alt = '' efi_cpu_family_alt = ''