diff options
author | Simon Glass | 2023-05-04 16:54:57 -0600 |
---|---|---|
committer | Bin Meng | 2023-05-11 10:25:29 +0800 |
commit | 0992a90daa80a17f9e7e33a56fd3f9660ee84c97 (patch) | |
tree | 0ab7deffbdd3c6b5c81eec013b6d0de47d8b5b00 /lib/acpi/Makefile | |
parent | d8062e950367fab0f219a889e8f2fbfade90108c (diff) |
acpi: Create a new Kconfig for ACPI
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>
Diffstat (limited to 'lib/acpi/Makefile')
-rw-r--r-- | lib/acpi/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/acpi/Makefile b/lib/acpi/Makefile index 956b5a0d726..12337abaecf 100644 --- a/lib/acpi/Makefile +++ b/lib/acpi/Makefile @@ -1,6 +1,8 @@ # 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 @@ -21,3 +23,5 @@ endif obj-y += facs.o obj-y += ssdt.o endif + +endif # GENERATE_ACPI_TABLE |