Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. config EFI_LOADER
  2. bool "Support running UEFI applications"
  3. depends on OF_LIBFDT && ( \
  4. ARM && (SYS_CPU = arm1136 || \
  5. SYS_CPU = arm1176 || \
  6. SYS_CPU = armv7 || \
  7. SYS_CPU = armv8) || \
  8. X86 || RISCV || SANDBOX)
  9. # We need EFI_STUB_64BIT to be set on x86_64 with EFI_STUB
  10. depends on !EFI_STUB || !X86_64 || EFI_STUB_64BIT
  11. # We need EFI_STUB_32BIT to be set on x86_32 with EFI_STUB
  12. depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
  13. depends on BLK
  14. default y if !ARM || SYS_CPU = armv7 || SYS_CPU = armv8
  15. select LIB_UUID
  16. select PARTITION_UUIDS
  17. select HAVE_BLOCK_DEVICE
  18. select REGEX
  19. imply CFB_CONSOLE_ANSI
  20. imply FAT
  21. imply FAT_WRITE
  22. imply USB_KEYBOARD_FN_KEYS
  23. imply VIDEO_ANSI
  24. help
  25. Select this option if you want to run UEFI applications (like GNU
  26. GRUB or iPXE) on top of U-Boot. If this option is enabled, U-Boot
  27. will expose the UEFI API to a loaded application, enabling it to
  28. reuse U-Boot's device drivers.
  29. if EFI_LOADER
  30. config CMD_BOOTEFI_BOOTMGR
  31. bool "UEFI Boot Manager"
  32. default y
  33. help
  34. Select this option if you want to select the UEFI binary to be booted
  35. via UEFI variables Boot####, BootOrder, and BootNext. This enables the
  36. 'bootefi bootmgr' command.
  37. config EFI_SETUP_EARLY
  38. bool
  39. default n
  40. choice
  41. prompt "Store for non-volatile UEFI variables"
  42. default EFI_VARIABLE_FILE_STORE
  43. help
  44. Select where non-volatile UEFI variables shall be stored.
  45. config EFI_VARIABLE_FILE_STORE
  46. bool "Store non-volatile UEFI variables as file"
  47. depends on FAT_WRITE
  48. help
  49. Select this option if you want non-volatile UEFI variables to be
  50. stored as file /ubootefi.var on the EFI system partition.
  51. config EFI_MM_COMM_TEE
  52. bool "UEFI variables storage service via OP-TEE"
  53. depends on OPTEE
  54. help
  55. If OP-TEE is present and running StandAloneMM, dispatch all UEFI
  56. variable related operations to that. The application will verify,
  57. authenticate and store the variables on an RPMB.
  58. endchoice
  59. config EFI_VARIABLES_PRESEED
  60. bool "Initial values for UEFI variables"
  61. depends on EFI_VARIABLE_FILE_STORE
  62. help
  63. Include a file with the initial values for non-volatile UEFI variables
  64. into the U-Boot binary. If this configuration option is set, changes
  65. to authentication related variables (PK, KEK, db, dbx) are not
  66. allowed.
  67. if EFI_VARIABLES_PRESEED
  68. config EFI_VAR_SEED_FILE
  69. string "File with initial values of non-volatile UEFI variables"
  70. default ubootefi.var
  71. help
  72. File with initial values of non-volatile UEFI variables. The file must
  73. be in the same format as the storage in the EFI system partition. The
  74. easiest way to create it is by setting the non-volatile variables in
  75. U-Boot. If a relative file path is used, it is relative to the source
  76. directory.
  77. endif
  78. config EFI_VAR_BUF_SIZE
  79. int "Memory size of the UEFI variable store"
  80. default 16384
  81. range 4096 2147483647
  82. help
  83. This defines the size in bytes of the memory area reserved for keeping
  84. UEFI variables.
  85. When using StandAloneMM (CONFIG_EFI_MM_COMM_TEE=y) this value should
  86. match the value of PcdFlashNvStorageVariableSize used to compile the
  87. StandAloneMM module.
  88. Minimum 4096, default 16384.
  89. config EFI_GET_TIME
  90. bool "GetTime() runtime service"
  91. depends on DM_RTC
  92. default y
  93. help
  94. Provide the GetTime() runtime service at boottime. This service
  95. can be used by an EFI application to read the real time clock.
  96. config EFI_SET_TIME
  97. bool "SetTime() runtime service"
  98. depends on EFI_GET_TIME
  99. default y if ARCH_QEMU || SANDBOX
  100. default n
  101. help
  102. Provide the SetTime() runtime service at boottime. This service
  103. can be used by an EFI application to adjust the real time clock.
  104. config EFI_HAVE_CAPSULE_SUPPORT
  105. bool
  106. config EFI_RUNTIME_UPDATE_CAPSULE
  107. bool "UpdateCapsule() runtime service"
  108. default n
  109. select EFI_HAVE_CAPSULE_SUPPORT
  110. help
  111. Select this option if you want to use UpdateCapsule and
  112. QueryCapsuleCapabilities API's.
  113. config EFI_CAPSULE_ON_DISK
  114. bool "Enable capsule-on-disk support"
  115. select EFI_HAVE_CAPSULE_SUPPORT
  116. default n
  117. help
  118. Select this option if you want to use capsule-on-disk feature,
  119. that is, capsules can be fetched and executed from files
  120. under a specific directory on UEFI system partition instead of
  121. via UpdateCapsule API.
  122. config EFI_IGNORE_OSINDICATIONS
  123. bool "Ignore OsIndications for CapsuleUpdate on-disk"
  124. depends on EFI_CAPSULE_ON_DISK
  125. default n
  126. help
  127. There are boards where U-Boot does not support SetVariable at runtime.
  128. Select this option if you want to use the capsule-on-disk feature
  129. without setting the EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED
  130. flag in variable OsIndications.
  131. config EFI_CAPSULE_ON_DISK_EARLY
  132. bool "Initiate capsule-on-disk at U-Boot boottime"
  133. depends on EFI_CAPSULE_ON_DISK
  134. default n
  135. select EFI_SETUP_EARLY
  136. help
  137. Normally, without this option enabled, capsules will be
  138. executed only at the first time of invoking one of efi command.
  139. If this option is enabled, capsules will be enforced to be
  140. executed as part of U-Boot initialisation so that they will
  141. surely take place whatever is set to distro_bootcmd.
  142. config EFI_CAPSULE_FIRMWARE
  143. bool
  144. default n
  145. config EFI_CAPSULE_FIRMWARE_MANAGEMENT
  146. bool "Capsule: Firmware Management Protocol"
  147. depends on EFI_HAVE_CAPSULE_SUPPORT
  148. default y
  149. help
  150. Select this option if you want to enable capsule-based
  151. firmware update using Firmware Management Protocol.
  152. config EFI_CAPSULE_FIRMWARE_FIT
  153. bool "FMP driver for FIT images"
  154. depends on FIT
  155. depends on EFI_CAPSULE_FIRMWARE_MANAGEMENT
  156. select UPDATE_FIT
  157. select DFU
  158. select EFI_CAPSULE_FIRMWARE
  159. help
  160. Select this option if you want to enable firmware management protocol
  161. driver for FIT image
  162. config EFI_CAPSULE_FIRMWARE_RAW
  163. bool "FMP driver for raw images"
  164. depends on EFI_CAPSULE_FIRMWARE_MANAGEMENT
  165. depends on SANDBOX || (!SANDBOX && !EFI_CAPSULE_FIRMWARE_FIT)
  166. select DFU_WRITE_ALT
  167. select DFU
  168. select EFI_CAPSULE_FIRMWARE
  169. help
  170. Select this option if you want to enable firmware management protocol
  171. driver for raw image
  172. config EFI_CAPSULE_AUTHENTICATE
  173. bool "Update Capsule authentication"
  174. depends on EFI_CAPSULE_FIRMWARE
  175. depends on EFI_CAPSULE_ON_DISK
  176. depends on EFI_CAPSULE_FIRMWARE_MANAGEMENT
  177. select HASH
  178. select SHA256
  179. select RSA
  180. select RSA_VERIFY
  181. select RSA_VERIFY_WITH_PKEY
  182. select X509_CERTIFICATE_PARSER
  183. select PKCS7_MESSAGE_PARSER
  184. select PKCS7_VERIFY
  185. select IMAGE_SIGN_INFO
  186. select EFI_SIGNATURE_SUPPORT
  187. default n
  188. help
  189. Select this option if you want to enable capsule
  190. authentication
  191. config EFI_DEVICE_PATH_TO_TEXT
  192. bool "Device path to text protocol"
  193. default y
  194. help
  195. The device path to text protocol converts device nodes and paths to
  196. human readable strings.
  197. config EFI_DEVICE_PATH_UTIL
  198. bool "Device path utilities protocol"
  199. default y
  200. help
  201. The device path utilities protocol creates and manipulates device
  202. paths and device nodes. It is required to run the EFI Shell.
  203. config EFI_DT_FIXUP
  204. bool "Device tree fixup protocol"
  205. depends on !GENERATE_ACPI_TABLE
  206. default y
  207. help
  208. The EFI device-tree fix-up protocol provides a function to let the
  209. firmware apply fix-ups. This may be used by boot loaders.
  210. config EFI_LOADER_HII
  211. bool "HII protocols"
  212. default y
  213. help
  214. The Human Interface Infrastructure is a complicated framework that
  215. allows UEFI applications to draw fancy menus and hook strings using
  216. a translation framework.
  217. U-Boot implements enough of its features to be able to run the UEFI
  218. Shell, but not more than that.
  219. config EFI_UNICODE_COLLATION_PROTOCOL2
  220. bool "Unicode collation protocol"
  221. default y
  222. help
  223. The Unicode collation protocol is used for lexical comparisons. It is
  224. required to run the UEFI shell.
  225. if EFI_UNICODE_COLLATION_PROTOCOL2
  226. config EFI_UNICODE_CAPITALIZATION
  227. bool "Support Unicode capitalization"
  228. default y
  229. help
  230. Select this option to enable correct handling of the capitalization of
  231. Unicode codepoints in the range 0x0000-0xffff. If this option is not
  232. set, only the the correct handling of the letters of the codepage
  233. used by the FAT file system is ensured.
  234. endif
  235. config EFI_LOADER_BOUNCE_BUFFER
  236. bool "EFI Applications use bounce buffers for DMA operations"
  237. depends on ARM64
  238. default n
  239. help
  240. Some hardware does not support DMA to full 64bit addresses. For this
  241. hardware we can create a bounce buffer so that payloads don't have to
  242. worry about platform details.
  243. config EFI_PLATFORM_LANG_CODES
  244. string "Language codes supported by firmware"
  245. default "en-US"
  246. help
  247. This value is used to initialize the PlatformLangCodes variable. Its
  248. value is a semicolon (;) separated list of language codes in native
  249. RFC 4646 format, e.g. "en-US;de-DE". The first language code is used
  250. to initialize the PlatformLang variable.
  251. config EFI_HAVE_RUNTIME_RESET
  252. # bool "Reset runtime service is available"
  253. bool
  254. default y
  255. depends on ARCH_BCM283X || FSL_LAYERSCAPE || PSCI_RESET || \
  256. SANDBOX || SYSRESET_X86
  257. config EFI_GRUB_ARM32_WORKAROUND
  258. bool "Workaround for GRUB on 32bit ARM"
  259. default n if ARCH_BCM283X || ARCH_SUNXI || ARCH_QEMU
  260. default y
  261. depends on ARM && !ARM64
  262. help
  263. GRUB prior to version 2.04 requires U-Boot to disable caches. This
  264. workaround currently is also needed on systems with caches that
  265. cannot be managed via CP15.
  266. config EFI_RNG_PROTOCOL
  267. bool "EFI_RNG_PROTOCOL support"
  268. depends on DM_RNG
  269. default y
  270. help
  271. Provide a EFI_RNG_PROTOCOL implementation using the hardware random
  272. number generator of the platform.
  273. config EFI_TCG2_PROTOCOL
  274. bool "EFI_TCG2_PROTOCOL support"
  275. default y
  276. depends on TPM_V2
  277. select SHA1
  278. select SHA256
  279. select SHA384
  280. select SHA512
  281. select HASH
  282. help
  283. Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware
  284. of the platform.
  285. config EFI_TCG2_PROTOCOL_EVENTLOG_SIZE
  286. int "EFI_TCG2_PROTOCOL EventLog size"
  287. depends on EFI_TCG2_PROTOCOL
  288. default 65536
  289. help
  290. Define the size of the EventLog for EFI_TCG2_PROTOCOL. Note that
  291. this is going to be allocated twice. One for the eventlog it self
  292. and one for the configuration table that is required from the spec
  293. config EFI_LOAD_FILE2_INITRD
  294. bool "EFI_FILE_LOAD2_PROTOCOL for Linux initial ramdisk"
  295. default y
  296. help
  297. Linux v5.7 and later can make use of this option. If the boot option
  298. selected by the UEFI boot manager specifies an existing file to be used
  299. as initial RAM disk, a Linux specific Load File2 protocol will be
  300. installed and Linux 5.7+ will ignore any initrd=<ramdisk> command line
  301. argument.
  302. config EFI_SECURE_BOOT
  303. bool "Enable EFI secure boot support"
  304. depends on EFI_LOADER
  305. select HASH
  306. select SHA256
  307. select RSA
  308. select RSA_VERIFY_WITH_PKEY
  309. select IMAGE_SIGN_INFO
  310. select ASYMMETRIC_KEY_TYPE
  311. select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  312. select X509_CERTIFICATE_PARSER
  313. select PKCS7_MESSAGE_PARSER
  314. select PKCS7_VERIFY
  315. select EFI_SIGNATURE_SUPPORT
  316. default n
  317. help
  318. Select this option to enable EFI secure boot support.
  319. Once SecureBoot mode is enforced, any EFI binary can run only if
  320. it is signed with a trusted key. To do that, you need to install,
  321. at least, PK, KEK and db.
  322. config EFI_SIGNATURE_SUPPORT
  323. bool
  324. config EFI_ESRT
  325. bool "Enable the UEFI ESRT generation"
  326. depends on EFI_CAPSULE_FIRMWARE_MANAGEMENT
  327. default y
  328. help
  329. Enabling this option creates the ESRT UEFI system table.
  330. config EFI_RISCV_BOOT_PROTOCOL
  331. bool "RISCV_EFI_BOOT_PROTOCOL support"
  332. default y
  333. depends on RISCV
  334. help
  335. The EFI_RISCV_BOOT_PROTOCOL is used to transfer the boot hart ID
  336. to the next boot stage. It should be enabled as it is meant to
  337. replace the transfer via the device-tree. The latter is not
  338. possible on systems using ACPI.
  339. endif