u-boot/lib/acpi/Makefile
Tom Rini 302b41d539 Kbuild: Always use $(PHASE_)
It is confusing to have both "$(PHASE_)" and "$(XPL_)" be used in our
Makefiles as part of the macros to determine when to do something in our
Makefiles based on what phase of the build we are in. For consistency,
bring this down to a single macro and use "$(PHASE_)" only.

Signed-off-by: Tom Rini <trini@konsulko.com>
2025-04-11 12:16:44 -06:00

29 lines
588 B
Makefile

# SPDX-License-Identifier: GPL-2.0+
#
obj-y += acpi.o
ifdef CONFIG_$(PHASE_)GENERATE_ACPI_TABLE
obj-$(CONFIG_$(PHASE_)ACPIGEN) += acpigen.o
obj-$(CONFIG_$(PHASE_)ACPIGEN) += acpi_device.o
obj-$(CONFIG_$(PHASE_)ACPIGEN) += acpi_dp.o
obj-$(CONFIG_$(PHASE_)ACPIGEN) += acpi_table.o
obj-y += acpi_writer.o
# With QEMU the ACPI tables come from there, not from U-Boot
ifndef CONFIG_QFW_ACPI
obj-y += base.o
obj-y += csrt.o
obj-y += mcfg.o
# Sandbox does not build a .asl file
ifndef CONFIG_SANDBOX
obj-y += dsdt.o
endif
obj-y += facs.o
obj-y += ssdt.o
endif
endif # GENERATE_ACPI_TABLE