gsmi: Remove autoselected dependency on EFI and EFI_VARS
authorDuncan Laurie <dlaurie@chromium.org>
Wed, 27 Jun 2012 22:00:25 +0000 (15:00 -0700)
committerGerrit <chrome-bot@google.com>
Fri, 29 Jun 2012 00:06:48 +0000 (17:06 -0700)
commit8f7e49cf326dbcc1a69f92fdb8546efd05873ffe
tree1f13908397bb0fcb658a8cc39349c705aee7e81e
parentbb9324f94dd512cfc8e56081eb7d932f6c111d7d
gsmi: Remove autoselected dependency on EFI and EFI_VARS

Instead of selecting EFI and EFI_VARS automatically when GSMI is
enabled let that portion of the driver be conditionally compiled
if EFI and EFI_VARS are enabled.

This allows the rest of the driver (specifically event log) to
be used if EFI_VARS is not enabled.

BUG=chromium-os:32188
TEST=manual: compile and run kernel on multiple devices

1) verify that EFI_VARS is not automatically selected when
CONFIG_GOOGLE_GSMI is enabled
2) verify that the kernel boots on Link and that GSMI event log
is still available and functional
3) specifically boot the kernel on Alex to ensure it does not
try to load efivars and that gsmi also does not load because it
is not in the supported DMI table

Change-Id: I6f9149b575976316dd1d4d8ac20f2688d2208767
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26273
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/firmware/google/Kconfig
drivers/firmware/google/gsmi.c