diff options
| -rw-r--r-- | drivers/firmware/efi/Kconfig | 5 | ||||
| -rw-r--r-- | drivers/firmware/efi/Makefile | 3 | ||||
| -rw-r--r-- | include/linux/efi.h | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig index 8de4da5c9ab6..54071c148340 100644 --- a/drivers/firmware/efi/Kconfig +++ b/drivers/firmware/efi/Kconfig | |||
| @@ -18,6 +18,11 @@ config EFI_VARS | |||
| 18 | Subsequent efibootmgr releases may be found at: | 18 | Subsequent efibootmgr releases may be found at: |
| 19 | <http://github.com/vathpela/efibootmgr> | 19 | <http://github.com/vathpela/efibootmgr> |
| 20 | 20 | ||
| 21 | config EFI_ESRT | ||
| 22 | bool | ||
| 23 | depends on EFI && !IA64 | ||
| 24 | default y | ||
| 25 | |||
| 21 | config EFI_VARS_PSTORE | 26 | config EFI_VARS_PSTORE |
| 22 | tristate "Register efivars backend for pstore" | 27 | tristate "Register efivars backend for pstore" |
| 23 | depends on EFI_VARS && PSTORE | 28 | depends on EFI_VARS && PSTORE |
diff --git a/drivers/firmware/efi/Makefile b/drivers/firmware/efi/Makefile index 26eabbc55341..6fd3da938717 100644 --- a/drivers/firmware/efi/Makefile +++ b/drivers/firmware/efi/Makefile | |||
| @@ -1,8 +1,9 @@ | |||
| 1 | # | 1 | # |
| 2 | # Makefile for linux kernel | 2 | # Makefile for linux kernel |
| 3 | # | 3 | # |
| 4 | obj-$(CONFIG_EFI) += efi.o esrt.o vars.o reboot.o | 4 | obj-$(CONFIG_EFI) += efi.o vars.o reboot.o |
| 5 | obj-$(CONFIG_EFI_VARS) += efivars.o | 5 | obj-$(CONFIG_EFI_VARS) += efivars.o |
| 6 | obj-$(CONFIG_EFI_ESRT) += esrt.o | ||
| 6 | obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o | 7 | obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o |
| 7 | obj-$(CONFIG_UEFI_CPER) += cper.o | 8 | obj-$(CONFIG_UEFI_CPER) += cper.o |
| 8 | obj-$(CONFIG_EFI_RUNTIME_MAP) += runtime-map.o | 9 | obj-$(CONFIG_EFI_RUNTIME_MAP) += runtime-map.o |
diff --git a/include/linux/efi.h b/include/linux/efi.h index 024c27e7c0fa..2092965afca3 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
| @@ -879,7 +879,11 @@ static inline efi_status_t efi_query_variable_store(u32 attributes, unsigned lon | |||
| 879 | #endif | 879 | #endif |
| 880 | extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr); | 880 | extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr); |
| 881 | extern int efi_config_init(efi_config_table_type_t *arch_tables); | 881 | extern int efi_config_init(efi_config_table_type_t *arch_tables); |
| 882 | #ifdef CONFIG_EFI_ESRT | ||
| 882 | extern void __init efi_esrt_init(void); | 883 | extern void __init efi_esrt_init(void); |
| 884 | #else | ||
| 885 | static inline void efi_esrt_init(void) { } | ||
| 886 | #endif | ||
| 883 | extern int efi_config_parse_tables(void *config_tables, int count, int sz, | 887 | extern int efi_config_parse_tables(void *config_tables, int count, int sz, |
| 884 | efi_config_table_type_t *arch_tables); | 888 | efi_config_table_type_t *arch_tables); |
| 885 | extern u64 efi_get_iobase (void); | 889 | extern u64 efi_get_iobase (void); |
