diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-05 01:54:57 +0300 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-05-11 05:25:29 +0300 |
commit | 0992a90daa80a17f9e7e33a56fd3f9660ee84c97 (patch) | |
tree | 0ab7deffbdd3c6b5c81eec013b6d0de47d8b5b00 /lib/Kconfig | |
parent | d8062e950367fab0f219a889e8f2fbfade90108c (diff) | |
download | u-boot-0992a90daa80a17f9e7e33a56fd3f9660ee84c97.tar.xz |
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/Kconfig')
-rw-r--r-- | lib/Kconfig | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index d8dac09ea8..c8b3ec1ec9 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -281,9 +281,17 @@ config SUPPORT_ACPI U-Boot can generate these tables and pass them to the Operating System. +config ACPI + bool "Enable support for ACPI libraries" + depends on SUPPORT_ACPI + help + Provides library functions for dealing with ACPI tables. This does + not necessarily include generation of tables + (see GENERATE_ACPI_TABLE), but allows for tables to be located. + config GENERATE_ACPI_TABLE bool "Generate an ACPI (Advanced Configuration and Power Interface) table" - depends on SUPPORT_ACPI + depends on ACPI select QFW if QEMU help The Advanced Configuration and Power Interface (ACPI) specification |