
On Mon, Mar 27, 2023 at 12:16 PM Simon Glass sjg@chromium.org wrote:
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
Changes in v3:
- Don't enable ACPI by default except on x86 and sandbox
Changes in v2:
- Add new patch to create a new Kconfig for ACPI
arch/Kconfig | 2 ++ cmd/Kconfig | 2 +- cmd/acpi.c | 4 ++++ drivers/core/Kconfig | 1 + lib/Kconfig | 10 +++++++++- lib/Makefile | 2 +- lib/acpi/Makefile | 4 ++++ 7 files changed, 22 insertions(+), 3 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com