xen/arm: Kconfig: ACPI should depend on UEFI

On Arm, it is not possible to use ACPI without UEFI. In fact disabling
UEFI but not ACPI will lead to a compilation error:

ld: prelink.o: in function `acpi_os_get_root_pointer':
/builds/xen-project/people/andyhhp/xen/xen/drivers/acpi/osl.c:73:
undefined reference to `efi'
/builds/xen-project/people/andyhhp/xen/xen/drivers/acpi/osl.c:73:(.init.text+0x8ac0):
relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against
undefined symbol `efi'

So make the dependency clear in the Kconfig.

This was spotted by the randconfig build in gitlab CI.

Fixes: 12314be574 ("xen/arm: make ARM_EFI selectable for Arm64")
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
Julien Grall committed 2023-07-05 14:47:35 +01:00
1 parent c2ff2ca3a9
commit dc5e6082f5
1 file changed
+2 -2
+2 -2
View File
@@ -63,11 +63,11 @@ source "arch/Kconfig"
config ACPI
bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED
depends on ARM_64
depends on ARM_64 && ARM_EFI
---help---
Advanced Configuration and Power Interface (ACPI) support for Xen is
an alternative to device tree on ARM64.
an alternative to device tree on ARM64. This requires UEFI.
config ARM_EFI
bool "UEFI boot service support"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.