cmd: CMD_ACPI depends on ACPIGEN
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 20 Jan 2021 20:37:56 +0000 (21:37 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 1 Feb 2021 07:11:40 +0000 (15:11 +0800)
Trying to compile qemu-x86_64_defconfig with CONFIG_CMD_ACPI=y and
CONFIG_ACPIGEN=n fails with

ld.bfd: cmd/built-in.o: in function `do_acpi_items':
cmd/acpi.c:162: undefined reference to `acpi_dump_items'

Add the missing configuration dependency.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
cmd/Kconfig

index 0625ee4..928a2a0 100644 (file)
@@ -84,7 +84,8 @@ menu "Info commands"
 
 config CMD_ACPI
        bool "acpi"
-       default y if ACPIGEN
+       depends on ACPIGEN
+       default y
        help
          List and dump ACPI tables. ACPI (Advanced Configuration and Power
          Interface) is used mostly on x86 for providing information to the