Commit 7fae3db3 authored by Andy Grover's avatar Andy Grover

ACPI Config.in update by Christoph Hellwig

- 3 space indents
- one menu for all arches instead of duplicating
- define_*s moved below the real questions
parent d15fbf71
...@@ -2,29 +2,19 @@ ...@@ -2,29 +2,19 @@
# ACPI Configuration # ACPI Configuration
# #
if [ "$CONFIG_X86" = "y" ]; then mainmenu_option next_comment
comment 'ACPI Support'
mainmenu_option next_comment if [ "$CONFIG_X86" = "y" ]; then
comment 'ACPI Support'
bool 'ACPI Support' CONFIG_ACPI bool 'ACPI Support' CONFIG_ACPI
if [ "$CONFIG_ACPI" = "y" ]; then if [ "$CONFIG_ACPI" = "y" ]; then
if [ "$CONFIG_X86_LOCAL_APIC" = "y" ]; then if [ "$CONFIG_X86_LOCAL_APIC" = "y" ]; then
bool 'CPU Enumeration Only' CONFIG_ACPI_HT_ONLY bool 'CPU Enumeration Only' CONFIG_ACPI_HT_ONLY
fi fi
if [ "$CONFIG_ACPI_HT_ONLY" = "y" ]; then
define_bool CONFIG_ACPI_BOOT y
else
define_bool CONFIG_ACPI_BOOT y define_bool CONFIG_ACPI_BOOT y
define_bool CONFIG_ACPI_BUS y
define_bool CONFIG_ACPI_INTERPRETER y if [ "$CONFIG_ACPI_HT_ONLY" != "y" ]; then
define_bool CONFIG_ACPI_EC y
define_bool CONFIG_ACPI_POWER y
if [ "$CONFIG_PCI" = "y" ]; then
define_bool CONFIG_ACPI_PCI y
fi
define_bool CONFIG_ACPI_SLEEP $CONFIG_SOFTWARE_SUSPEND
define_bool CONFIG_ACPI_SYSTEM y
tristate ' AC Adapter' CONFIG_ACPI_AC tristate ' AC Adapter' CONFIG_ACPI_AC
tristate ' Battery' CONFIG_ACPI_BATTERY tristate ' Battery' CONFIG_ACPI_BATTERY
tristate ' Button' CONFIG_ACPI_BUTTON tristate ' Button' CONFIG_ACPI_BUTTON
...@@ -36,19 +26,21 @@ if [ "$CONFIG_X86" = "y" ]; then ...@@ -36,19 +26,21 @@ if [ "$CONFIG_X86" = "y" ]; then
fi fi
tristate ' Toshiba Laptop Extras' CONFIG_ACPI_TOSHIBA tristate ' Toshiba Laptop Extras' CONFIG_ACPI_TOSHIBA
bool ' Debug Statements' CONFIG_ACPI_DEBUG bool ' Debug Statements' CONFIG_ACPI_DEBUG
define_bool CONFIG_ACPI_BOOT y
define_bool CONFIG_ACPI_BUS y
define_bool CONFIG_ACPI_INTERPRETER y
define_bool CONFIG_ACPI_EC y
define_bool CONFIG_ACPI_POWER y
define_bool CONFIG_ACPI_PCI $CONFIG_PCI
define_bool CONFIG_ACPI_SLEEP $CONFIG_SOFTWARE_SUSPEND
define_bool CONFIG_ACPI_SYSTEM y
fi fi
fi fi
endmenu
fi fi
if [ "$CONFIG_IA64" = "y" ]; then if [ "$CONFIG_IA64" = "y" ]; then
if [ "$CONFIG_IA64_SGI_SN" = "y" ]; then if [ "$CONFIG_IA64_SGI_SN" = "y" ]; then
mainmenu_option next_comment
comment 'ACPI Support'
define_bool CONFIG_ACPI y define_bool CONFIG_ACPI y
define_bool CONFIG_ACPI_EFI y define_bool CONFIG_ACPI_EFI y
define_bool CONFIG_ACPI_BOOT y define_bool CONFIG_ACPI_BOOT y
...@@ -62,22 +54,9 @@ if [ "$CONFIG_IA64" = "y" ]; then ...@@ -62,22 +54,9 @@ if [ "$CONFIG_IA64" = "y" ]; then
define_bool CONFIG_ACPI_PROCESSOR n define_bool CONFIG_ACPI_PROCESSOR n
define_bool CONFIG_ACPI_THERMAL n define_bool CONFIG_ACPI_THERMAL n
define_bool CONFIG_ACPI_NUMA y define_bool CONFIG_ACPI_NUMA y
endmenu
fi fi
if [ "$CONFIG_IA64_HP_SIM" = "n" ]; then if [ "$CONFIG_IA64_HP_SIM" = "n" ]; then
mainmenu_option next_comment
comment 'ACPI Support'
if [ "$CONFIG_PCI" = "y" ]; then
define_bool CONFIG_ACPI_PCI y
fi
define_bool CONFIG_ACPI y
define_bool CONFIG_ACPI_EFI y
define_bool CONFIG_ACPI_BOOT y
define_bool CONFIG_ACPI_BUS y
define_bool CONFIG_ACPI_INTERPRETER y
define_bool CONFIG_ACPI_POWER y
define_bool CONFIG_ACPI_SYSTEM y
tristate ' Button' CONFIG_ACPI_BUTTON tristate ' Button' CONFIG_ACPI_BUTTON
tristate ' Fan' CONFIG_ACPI_FAN tristate ' Fan' CONFIG_ACPI_FAN
tristate ' Processor' CONFIG_ACPI_PROCESSOR tristate ' Processor' CONFIG_ACPI_PROCESSOR
...@@ -86,7 +65,15 @@ if [ "$CONFIG_IA64" = "y" ]; then ...@@ -86,7 +65,15 @@ if [ "$CONFIG_IA64" = "y" ]; then
dep_bool ' NUMA support' CONFIG_ACPI_NUMA $CONFIG_NUMA dep_bool ' NUMA support' CONFIG_ACPI_NUMA $CONFIG_NUMA
fi fi
bool ' Debug Statements' CONFIG_ACPI_DEBUG bool ' Debug Statements' CONFIG_ACPI_DEBUG
endmenu define_bool CONFIG_ACPI_PCI $CONFIG_PCI
define_bool CONFIG_ACPI y
define_bool CONFIG_ACPI_EFI y
define_bool CONFIG_ACPI_BOOT y
define_bool CONFIG_ACPI_BUS y
define_bool CONFIG_ACPI_INTERPRETER y
define_bool CONFIG_ACPI_POWER y
define_bool CONFIG_ACPI_SYSTEM y
fi fi
fi fi
endmenu
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment