diff mbox series

[v4,03/30] arm/Makefile.common: Compile lib/acpi.c if CONFIG_EFI=y

Message ID 20230213101759.2577077-4-nikos.nikoleris@arm.com (mailing list archive)
State New, archived
Headers show
Series EFI and ACPI support for arm64 | expand

Commit Message

Nikos Nikoleris Feb. 13, 2023, 10:17 a.m. UTC
From: Alexandru Elisei <alexandru.elisei@arm.com>

For arm/arm64, ACPI is available only when UEFI is present. Compile
acpi.c if CONFIG_EFI is set to 'y'. For now, only x86 can configure the
tests with --enable-efi, but that will soon change.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
---
 arm/Makefile.common | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/arm/Makefile.common b/arm/Makefile.common
index 1bbec64f..3a726c20 100644
--- a/arm/Makefile.common
+++ b/arm/Makefile.common
@@ -54,6 +54,10 @@  cflatobjs += lib/arm/smp.o
 cflatobjs += lib/arm/delay.o
 cflatobjs += lib/arm/gic.o lib/arm/gic-v2.o lib/arm/gic-v3.o
 
+ifeq ($(CONFIG_EFI),y)
+cflatobjs += lib/acpi.o
+endif
+
 OBJDIRS += lib/arm
 
 libeabi = lib/arm/libeabi.a