blob: 3098410abad80046ef66b76fed2091cdfb97a364 [file] [log] [blame]
Matt Fleming04851772013-02-08 15:48:51 +00001menu "EFI (Extensible Firmware Interface) Support"
2 depends on EFI
3
4config EFI_VARS
5 tristate "EFI Variable Support via sysfs"
6 depends on EFI
7 default n
8 help
9 If you say Y here, you are able to get EFI (Extensible Firmware
10 Interface) variable information via sysfs. You may read,
11 write, create, and destroy EFI variables through this interface.
12
13 Note that using this driver in concert with efibootmgr requires
14 at least test release version 0.5.0-test3 or later, which is
Peter Jones0e4ca022014-12-09 16:14:11 -050015 available from:
Matt Fleming04851772013-02-08 15:48:51 +000016 <http://linux.dell.com/efibootmgr/testing/efibootmgr-0.5.0-test3.tar.gz>
17
18 Subsequent efibootmgr releases may be found at:
Peter Jones0e4ca022014-12-09 16:14:11 -050019 <http://github.com/vathpela/efibootmgr>
Matt Fleming04851772013-02-08 15:48:51 +000020
Peter Jones3846c152015-06-05 15:14:54 -040021config EFI_ESRT
22 bool
23 depends on EFI && !IA64
24 default y
25
Matt Fleming04851772013-02-08 15:48:51 +000026config EFI_VARS_PSTORE
27 tristate "Register efivars backend for pstore"
28 depends on EFI_VARS && PSTORE
29 default y
30 help
31 Say Y here to enable use efivars as a backend to pstore. This
32 will allow writing console messages, crash dumps, or anything
33 else supported by pstore to EFI variables.
34
35config EFI_VARS_PSTORE_DEFAULT_DISABLE
36 bool "Disable using efivars as a pstore backend by default"
37 depends on EFI_VARS_PSTORE
38 default n
39 help
40 Saying Y here will disable the use of efivars as a storage
41 backend for pstore by default. This setting can be overridden
42 using the efivars module's pstore_disable parameter.
43
Dave Young926172d2013-12-20 18:02:18 +080044config EFI_RUNTIME_MAP
45 bool "Export efi runtime maps to sysfs"
Dave Young2965faa2015-09-09 15:38:55 -070046 depends on X86 && EFI && KEXEC_CORE
Dave Young926172d2013-12-20 18:02:18 +080047 default y
48 help
49 Export efi runtime memory maps to /sys/firmware/efi/runtime-map.
50 That memory map is used for example by kexec to set up efi virtual
51 mapping the 2nd kernel, but can also be used for debugging purposes.
52
53 See also Documentation/ABI/testing/sysfs-firmware-efi-runtime-map.
54
Taku Izumi0f96a992015-09-30 23:01:56 +090055config EFI_FAKE_MEMMAP
56 bool "Enable EFI fake memory map"
57 depends on EFI && X86
58 default n
59 help
60 Saying Y here will enable "efi_fake_mem" boot option.
61 By specifying this parameter, you can add arbitrary attribute
62 to specific memory range by updating original (firmware provided)
63 EFI memmap.
64 This is useful for debugging of EFI memmap related feature.
65 e.g. Address Range Mirroring feature.
66
67config EFI_MAX_FAKE_MEM
68 int "maximum allowable number of ranges in efi_fake_mem boot option"
69 depends on EFI_FAKE_MEMMAP
70 range 1 128
71 default 8
72 help
73 Maximum allowable number of ranges in efi_fake_mem boot option.
74 Ranges can be set up to this value using comma-separated list.
75 The default value is 8.
76
Mark Salter0302f712013-12-30 12:12:12 -050077config EFI_PARAMS_FROM_FDT
78 bool
79 help
80 Select this config option from the architecture Kconfig if
81 the EFI runtime support gets system table address, memory
82 map address, and other parameters from the device tree.
83
Ard Biesheuvel022ee6c2014-06-26 12:09:05 +020084config EFI_RUNTIME_WRAPPERS
85 bool
86
Ard Biesheuvelf4f75ad52014-07-02 14:54:43 +020087config EFI_ARMSTUB
88 bool
89
Compostella, Jeremy06f7d4a2016-04-25 21:06:57 +010090config EFI_BOOTLOADER_CONTROL
91 tristate "EFI Bootloader Control"
92 depends on EFI_VARS
93 default n
94 ---help---
95 This module installs a reboot hook, such that if reboot() is
96 invoked with a string argument NNN, "NNN" is copied to the
97 "LoaderEntryOneShot" EFI variable, to be read by the
98 bootloader. If the string matches one of the boot labels
99 defined in its configuration, the bootloader will boot once
100 to that label. The "LoaderEntryRebootReason" EFI variable is
101 set with the reboot reason: "reboot" or "shutdown". The
102 bootloader reads this reboot reason and takes particular
103 action according to its policy.
104
Kweh, Hock Leong65117f12016-04-25 21:07:01 +0100105config EFI_CAPSULE_LOADER
106 tristate "EFI capsule loader"
107 depends on EFI
108 help
109 This option exposes a loader interface "/dev/efi_capsule_loader" for
110 users to load EFI capsules. This driver requires working runtime
111 capsule support in the firmware, which many OEMs do not provide.
112
113 Most users should say N.
114
Jan Kiszka2959c952017-06-02 13:52:04 +0000115config EFI_CAPSULE_QUIRK_QUARK_CSH
Masahiro Yamada1ae83c52017-12-16 00:38:01 +0900116 bool "Add support for Quark capsules with non-standard headers"
Jan Kiszka2959c952017-06-02 13:52:04 +0000117 depends on X86 && !64BIT
118 select EFI_CAPSULE_LOADER
119 default y
120 help
121 Add support for processing Quark X1000 EFI capsules, whose header
122 layout deviates from the layout mandated by the UEFI specification.
123
Ivan Huff6301d2016-08-25 11:15:31 +0800124config EFI_TEST
125 tristate "EFI Runtime Service Tests Support"
126 depends on EFI
127 default n
128 help
129 This driver uses the efi.<service> function pointers directly instead
130 of going through the efivar API, because it is not trying to test the
131 kernel subsystem, just for testing the UEFI runtime service
132 interfaces which are provided by the firmware. This driver is used
133 by the Firmware Test Suite (FWTS) for testing the UEFI runtime
134 interfaces readiness of the firmware.
135 Details for FWTS are available from:
136 <https://wiki.ubuntu.com/FirmwareTestSuite>
137
138 Say Y here to enable the runtime services support via /dev/efi_test.
139 If unsure, say N.
140
Lukas Wunner58c54752016-11-12 21:32:36 +0000141config APPLE_PROPERTIES
142 bool "Apple Device Properties"
143 depends on EFI_STUB && X86
144 select EFI_DEV_PATH_PARSER
145 select UCS2_STRING
146 help
147 Retrieve properties from EFI on Apple Macs and assign them to
148 devices, allowing for improved support of Apple hardware.
149 Properties that would otherwise be missing include the
150 Thunderbolt Device ROM and GPU configuration data.
151
152 If unsure, say Y if you have a Mac. Otherwise N.
153
Matthew Garrettccc829b2017-08-25 16:50:15 +0100154config RESET_ATTACK_MITIGATION
155 bool "Reset memory attack mitigation"
156 depends on EFI_STUB
157 help
158 Request that the firmware clear the contents of RAM after a reboot
159 using the TCG Platform Reset Attack Mitigation specification. This
160 protects against an attacker forcibly rebooting the system while it
161 still contains secrets in RAM, booting another OS and extracting the
Matthew Garretta5c03c32018-01-16 09:10:02 +0000162 secrets. This should only be enabled when userland is configured to
163 clear the MemoryOverwriteRequest flag on clean shutdown after secrets
164 have been evicted, since otherwise it will trigger even on clean
165 reboots.
Matthew Garrettccc829b2017-08-25 16:50:15 +0100166
Matt Fleming04851772013-02-08 15:48:51 +0000167endmenu
Jan Beulichfce7d3b2013-12-16 14:39:40 +0000168
169config UEFI_CPER
170 bool
Lukas Wunner46cd4b72016-11-12 21:32:34 +0000171
Tyler Baicarc6d8c8e2018-01-02 18:10:41 +0000172config UEFI_CPER_ARM
173 bool
174 depends on UEFI_CPER && ( ARM || ARM64 )
175 default y
176
Lukas Wunner46cd4b72016-11-12 21:32:34 +0000177config EFI_DEV_PATH_PARSER
178 bool
179 depends on ACPI
180 default n