x86/efi: Don't select EFI from certain special ACPI drivers

Commit 7ea6c6c1 ("Move cper.c from drivers/acpi/apei to
drivers/firmware/efi") results in CONFIG_EFI being enabled even
when the user doesn't want this. Since ACPI APEI used to build
fine without UEFI (and as far as I know also has no functional
depency on it), at least in that case using a reverse dependency
is wrong (and a straight one isn't needed).

Whether the same is true for ACPI_EXTLOG I don't know - if there
is a functional dependency, it should depend on EFI rather than
selecting it. It certainly has (currently) no build dependency.

Adjust Kconfig and build logic so that the bad dependency gets
avoided.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Link: http://lkml.kernel.org/r/52AF1EBC020000780010DBF9@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by Jan Beulich and committed by Ingo Molnar fce7d3bf 40e2d7f9

Changed files
+5 -6
drivers
acpi
firmware
-1
drivers/acpi/Kconfig
··· 348 348 config ACPI_EXTLOG 349 349 tristate "Extended Error Log support" 350 350 depends on X86_MCE && X86_LOCAL_APIC 351 - select EFI 352 351 select UEFI_CPER 353 352 default n 354 353 help
-1
drivers/acpi/apei/Kconfig
··· 2 2 bool "ACPI Platform Error Interface (APEI)" 3 3 select MISC_FILESYSTEMS 4 4 select PSTORE 5 - select EFI 6 5 select UEFI_CPER 7 6 depends on X86 8 7 help
+1
drivers/firmware/Makefile
··· 14 14 15 15 obj-$(CONFIG_GOOGLE_FIRMWARE) += google/ 16 16 obj-$(CONFIG_EFI) += efi/ 17 + obj-$(CONFIG_UEFI_CPER) += efi/
+3 -3
drivers/firmware/efi/Kconfig
··· 36 36 backend for pstore by default. This setting can be overridden 37 37 using the efivars module's pstore_disable parameter. 38 38 39 - config UEFI_CPER 40 - def_bool n 41 - 42 39 endmenu 40 + 41 + config UEFI_CPER 42 + bool
+1 -1
drivers/firmware/efi/Makefile
··· 1 1 # 2 2 # Makefile for linux kernel 3 3 # 4 - obj-y += efi.o vars.o 4 + obj-$(CONFIG_EFI) += efi.o vars.o 5 5 obj-$(CONFIG_EFI_VARS) += efivars.o 6 6 obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o 7 7 obj-$(CONFIG_UEFI_CPER) += cper.o