meson: relax ukify requirements

Installing ukify.py doesn't require a working UEFI architecture, but
only that the bootloader option is enabled (and python3). On Debian
Arch: all packages (like python scripts) can theorethically be built
on any builder with any architecture, so there's no guarantee that
it will actually be an EFI-enabled architecture to do that package build.

Relax the requirement to check only for the ukify config option.
This commit is contained in:
Luca Boccassi 2023-09-20 20:58:47 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 67bc612cbc
commit 8ae3c292e3

View file

@ -1783,9 +1783,7 @@ if have and efi_arch == 'x64' and cc.links('''
efi_cpu_family_alt = 'x86'
endif
want_ukify = get_option('ukify').require(
python_39 and conf.get('ENABLE_BOOTLOADER') == 1,
error_message : 'Python >= 3.9 and -Dbootloader=true required').allowed()
want_ukify = get_option('ukify').require(python_39, error_message : 'Python >= 3.9 required').allowed()
conf.set10('ENABLE_UKIFY', want_ukify)
############################################################