]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi: skip libefitest if 'bootloader' is explicitly set to false
authorLuca Boccassi <bluca@debian.org>
Sun, 9 Jul 2023 13:39:05 +0000 (14:39 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 9 Jul 2023 23:13:42 +0000 (00:13 +0100)
On x32 efi_arch will be set as the kernel architecture is just x86_64,
but there's no userland support to build the EFI ABI. When -Dbootloader=false
is set, skip libefitest too.

meson.build

index 661663f12f5e14a34cf149164e3c40dd2ca941f6..78d7c3dd5f37c997c34fba377bcf80135c63149e 100644 (file)
@@ -2124,6 +2124,9 @@ efi_arch = {
 
 if get_option('bootloader') != 'false' and efi_arch != ''
         conf.set_quoted('EFI_MACHINE_TYPE_NAME', efi_arch)
+elif get_option('bootloader') == 'false' and efi_arch != ''
+        # Ensure that if the option is explicitly set to false, then no EFI code is built, including tests
+        efi_arch = ''
 elif get_option('bootloader') == 'true' and efi_arch == ''
         error('EFI not supported for this arch.')
 endif