提交 7ce9573e 编写于 作者: R Randy Dunlap 提交者: Len Brown

ACPI: prevent randconfig build failure on empty ACPI_CUSTOM_DSDT_FILE

Make ACPI_CUSTOM_DSDT boolean config symbol a hidden and derived
value, based on the value of ACPI_CUSTOM_DSDT_FILE (string).
Only the latter is presented to the user as a config option.

This fixes problems with "make randconfig" setting ACPI_CUSTOM_DSDT
but leaving ACPI_CUSTOM_DSDT_FILE empty/blank.
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 39273b58
...@@ -283,24 +283,23 @@ config ACPI_TOSHIBA ...@@ -283,24 +283,23 @@ config ACPI_TOSHIBA
If you have a legacy free Toshiba laptop (such as the Libretto L1 If you have a legacy free Toshiba laptop (such as the Libretto L1
series), say Y. series), say Y.
config ACPI_CUSTOM_DSDT config ACPI_CUSTOM_DSDT_FILE
bool "Include Custom DSDT" string "Custom DSDT Table file to include"
default ""
depends on !STANDALONE depends on !STANDALONE
default n
help help
This option supports a custom DSDT by linking it into the kernel. This option supports a custom DSDT by linking it into the kernel.
See Documentation/acpi/dsdt-override.txt See Documentation/acpi/dsdt-override.txt
If unsure, say N.
config ACPI_CUSTOM_DSDT_FILE
string "Custom DSDT Table file to include"
depends on ACPI_CUSTOM_DSDT
default ""
help
Enter the full path name to the file which includes the AmlCode Enter the full path name to the file which includes the AmlCode
declaration. declaration.
If unsure, don't enter a file name.
config ACPI_CUSTOM_DSDT
bool
default ACPI_CUSTOM_DSDT_FILE != ""
config ACPI_CUSTOM_DSDT_INITRD config ACPI_CUSTOM_DSDT_INITRD
bool "Read Custom DSDT from initramfs" bool "Read Custom DSDT from initramfs"
depends on BLK_DEV_INITRD depends on BLK_DEV_INITRD
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册