mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
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>
This commit is contained in:
@@ -162,6 +162,10 @@ static int do_acpi_items(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
bool dump_contents;
|
||||
|
||||
dump_contents = argc >= 2 && !strcmp("-d", argv[1]);
|
||||
if (!IS_ENABLED(CONFIG_ACPIGEN)) {
|
||||
printf("Not supported (enable ACPIGEN)\n");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
acpi_dump_items(dump_contents ? ACPI_DUMP_CONTENTS : ACPI_DUMP_LIST);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user