Commit 963fabf3 authored by Ard Biesheuvel's avatar Ard Biesheuvel

efi: efivars: limit availability to X86 builds

CONFIG_EFI_VARS controls the code that exposes EFI variables via
sysfs entries, which was deprecated before support for non-Intel
architectures was added to EFI. So let's limit its availability
to Intel architectures for the time being, and hopefully remove
it entirely in the not too distant future.

While at it, let's remove the module alias so that the module is
no longer loaded automatically.
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 5ee70cd6
...@@ -23,7 +23,7 @@ makes it possible for the kernel to support additional features: ...@@ -23,7 +23,7 @@ makes it possible for the kernel to support additional features:
For actually enabling [U]EFI support, enable: For actually enabling [U]EFI support, enable:
- CONFIG_EFI=y - CONFIG_EFI=y
- CONFIG_EFI_VARS=y or m - CONFIG_EFIVAR_FS=y or m
The implementation depends on receiving information about the UEFI environment The implementation depends on receiving information about the UEFI environment
in a Flattened Device Tree (FDT) - so is only available with CONFIG_OF. in a Flattened Device Tree (FDT) - so is only available with CONFIG_OF.
......
...@@ -4,20 +4,15 @@ menu "EFI (Extensible Firmware Interface) Support" ...@@ -4,20 +4,15 @@ menu "EFI (Extensible Firmware Interface) Support"
config EFI_VARS config EFI_VARS
tristate "EFI Variable Support via sysfs" tristate "EFI Variable Support via sysfs"
depends on EFI depends on EFI && (X86 || IA64)
default n default n
help help
If you say Y here, you are able to get EFI (Extensible Firmware If you say Y here, you are able to get EFI (Extensible Firmware
Interface) variable information via sysfs. You may read, Interface) variable information via sysfs. You may read,
write, create, and destroy EFI variables through this interface. write, create, and destroy EFI variables through this interface.
Note that this driver is only retained for compatibility with
Note that using this driver in concert with efibootmgr requires legacy users: new users should use the efivarfs filesystem
at least test release version 0.5.0-test3 or later, which is instead.
available from:
<http://linux.dell.com/efibootmgr/testing/efibootmgr-0.5.0-test3.tar.gz>
Subsequent efibootmgr releases may be found at:
<http://github.com/vathpela/efibootmgr>
config EFI_ESRT config EFI_ESRT
bool bool
......
...@@ -22,7 +22,6 @@ MODULE_AUTHOR("Matt Domsch <Matt_Domsch@Dell.com>"); ...@@ -22,7 +22,6 @@ MODULE_AUTHOR("Matt Domsch <Matt_Domsch@Dell.com>");
MODULE_DESCRIPTION("sysfs interface to EFI Variables"); MODULE_DESCRIPTION("sysfs interface to EFI Variables");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(EFIVARS_VERSION); MODULE_VERSION(EFIVARS_VERSION);
MODULE_ALIAS("platform:efivars");
static LIST_HEAD(efivar_sysfs_list); static LIST_HEAD(efivar_sysfs_list);
......
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