mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00

We have several Kconfig options for ACPI, but all relate to specific functions, such as generating tables and AML code. Add a new option which controls including basic ACPI library code, including the lib/acpi directory. This will allow us to add functions which are available even if table generation is not supported. Adjust the command to avoid a build error when ACPIGEN is not enabled. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
27 lines
561 B
Makefile
27 lines
561 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
ifdef CONFIG_$(SPL_TPL_)GENERATE_ACPI_TABLE
|
|
|
|
obj-$(CONFIG_$(SPL_)ACPIGEN) += acpigen.o
|
|
obj-$(CONFIG_$(SPL_)ACPIGEN) += acpi_device.o
|
|
obj-$(CONFIG_$(SPL_)ACPIGEN) += acpi_dp.o
|
|
obj-$(CONFIG_$(SPL_)ACPIGEN) += acpi_table.o
|
|
obj-y += acpi_writer.o
|
|
|
|
# With QEMU the ACPI tables come from there, not from U-Boot
|
|
ifndef CONFIG_QEMU
|
|
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
|