Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 1 | if PAYLOAD_EDK2 |
Stefan Reinauer | 1a8b7bf | 2015-06-30 15:58:56 -0700 | [diff] [blame] | 2 | |
| 3 | config PAYLOAD_FILE |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 4 | string "edk2 binary" |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 5 | default "$(obj)/UEFIPAYLOAD.fd" if EDK2_UEFIPAYLOAD |
Sean Rhodes | 8da40ef | 2022-07-17 20:51:16 +0100 | [diff] [blame] | 6 | default "$(obj)/ShimmedUniversalPayload.elf" if EDK2_UNIVERSAL_PAYLOAD |
Stefan Reinauer | 1a8b7bf | 2015-06-30 15:58:56 -0700 | [diff] [blame] | 7 | help |
Matt DeVillier | d3b49b4 | 2021-05-10 11:02:13 -0500 | [diff] [blame] | 8 | The result of a UefiPayloadPkg build |
Stefan Reinauer | 1a8b7bf | 2015-06-30 15:58:56 -0700 | [diff] [blame] | 9 | |
Sean Rhodes | 8da40ef | 2022-07-17 20:51:16 +0100 | [diff] [blame] | 10 | choice |
| 11 | prompt "EDK II build type" |
| 12 | default EDK2_UEFIPAYLOAD |
| 13 | help |
| 14 | Select the build type for edk2. UniversalPayload is recommended, as it is |
| 15 | replacing UefiPayloadPkg. Whilst in the transition phase between the two, |
| 16 | both options exist. |
| 17 | |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 18 | config EDK2_UEFIPAYLOAD |
| 19 | bool "Build UefiPayloadPkg" |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 20 | help |
| 21 | Build the standard UefiPayloadPkg |
| 22 | |
Sean Rhodes | 8da40ef | 2022-07-17 20:51:16 +0100 | [diff] [blame] | 23 | config EDK2_UNIVERSAL_PAYLOAD |
| 24 | bool "Build Universal Payload" |
| 25 | help |
| 26 | Select this option if you want to build a coreboot image |
| 27 | with EDK2s Universal Payload. If you don't know what this is |
| 28 | about, just leave it enabled. |
| 29 | |
| 30 | Universal Payload should ideally only be built from upstream EDK2, |
| 31 | https://github.com/tianocore/edk2, as this is regularly build tested |
| 32 | and it encourages patches to be merged upstream. |
| 33 | |
| 34 | Whilst the required patches are being merged, this is pointed to |
| 35 | Star Labs GitHub repository which contains these patches and is based |
| 36 | on a known working commit. |
| 37 | |
| 38 | See https://universalscalablefirmware.github.io/documentation/ for more information. |
| 39 | |
| 40 | endchoice |
| 41 | |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 42 | choice |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 43 | prompt "Tianocore's EDK II payload" |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 44 | default EDK2_REPO_MRCHROMEBOX |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 45 | help |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 46 | Select which type of payload edk2 will build (default is UefiPayload) |
| 47 | UefiPayload: MrChromebox's customized fork of edk2 which works on most |
Matt DeVillier | d3b49b4 | 2021-05-10 11:02:13 -0500 | [diff] [blame] | 48 | x86_64 devices |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 49 | Upstream: Use upstream edk2 payload from https://github.com/tianocore/edk2 |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 50 | |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 51 | config EDK2_REPO_MRCHROMEBOX |
| 52 | bool "MrChromebox' edk2 fork" |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 53 | help |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 54 | Select this option to build using MrChromebox's custom edk2 fork, |
Matt DeVillier | d3b49b4 | 2021-05-10 11:02:13 -0500 | [diff] [blame] | 55 | which incorporates fixes/improvements from System 76's and 9elements' trees. |
| 56 | |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 57 | config EDK2_REPO_OFFICIAL |
| 58 | bool "Official edk2 repository" |
Matt DeVillier | d3b49b4 | 2021-05-10 11:02:13 -0500 | [diff] [blame] | 59 | help |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 60 | Select this option if you want to use the official edk2 repository to build |
| 61 | edk2. |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 62 | |
Sean Rhodes | d750875 | 2022-09-22 21:40:08 +0100 | [diff] [blame] | 63 | Please note, this option will not work on any SOC without modification. |
| 64 | |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 65 | config EDK2_REPO_CUSTOM |
| 66 | bool "Specify your own repository" |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 67 | help |
| 68 | Specify your own edk2 repository and branch to use. |
| 69 | |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 70 | endchoice |
| 71 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 72 | config EDK2_REPOSITORY |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 73 | string "URL to git repository for edk2" |
Sean Rhodes | 8da40ef | 2022-07-17 20:51:16 +0100 | [diff] [blame] | 74 | default "https://github.com/starlabsltd/edk2" if EDK2_UNIVERSAL_PAYLOAD |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 75 | default "https://github.com/mrchromebox/edk2" if EDK2_REPO_MRCHROMEBOX |
| 76 | default "https://github.com/tianocore/edk2" if EDK2_REPO_OFFICIAL |
| 77 | default "" if EDK2_REPO_CUSTOM |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 78 | help |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 79 | coreboot supports an array of build options which can be found below. These options |
| 80 | will only have an effect if the relevant options exist in the target repository. |
| 81 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 82 | config EDK2_TAG_OR_REV |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 83 | string "Insert a commit's SHA-1 or a branch name" |
Matt DeVillier | 889cb1f | 2023-07-28 10:21:07 -0500 | [diff] [blame] | 84 | default "origin/uefipayload_202306" if EDK2_REPO_MRCHROMEBOX |
Sean Rhodes | 8da40ef | 2022-07-17 20:51:16 +0100 | [diff] [blame] | 85 | default "origin/universalpayload" if EDK2_UNIVERSAL_PAYLOAD |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 86 | default "origin/master" if EDK2_REPO_OFFICIAL |
| 87 | default "" if EDK2_REPO_CUSTOM |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 88 | help |
| 89 | The commit's SHA-1 or branch name of the revision to use. This must exist in |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 90 | EDK2_REPOSITORY, and in the case of a branch name, prefixed with origin i.e. |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 91 | "origin/uefipayload_202202" |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 92 | |
Michał Żygowski | 82d814a | 2022-10-26 11:32:54 +0200 | [diff] [blame] | 93 | config EDK2_USE_EDK2_PLATFORMS |
| 94 | bool "Use edk2-platforms repository" |
| 95 | default n |
| 96 | help |
| 97 | Clone edk2-platforms repository to the edk2 workspace for additional modules. |
| 98 | |
| 99 | if EDK2_USE_EDK2_PLATFORMS |
| 100 | |
| 101 | config EDK2_PLATFORMS_REPOSITORY |
| 102 | string "URL to git repository for edk2-platforms" |
| 103 | default "https://github.com/tianocore/edk2-platforms" |
| 104 | help |
| 105 | URL to the edk2-platfors repository to clone. |
| 106 | |
| 107 | config EDK2_PLATFORMS_TAG_OR_REV |
| 108 | string "Insert a commit's SHA-1 or a branch name" |
| 109 | default "origin/master" |
| 110 | help |
| 111 | The commit's SHA-1 or branch name of the revision to use. This must exist in |
| 112 | EDK2_PLATFORMS_REPOSITORY, and in the case of a branch name, prefixed with |
| 113 | origin i.e. "origin/master" |
| 114 | |
| 115 | endif |
| 116 | |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 117 | choice |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 118 | prompt "edk2 build" |
| 119 | default EDK2_RELEASE |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 120 | help |
| 121 | Select whether to generate a debug or release build for |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 122 | edk2; default is to generate a release build. |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 123 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 124 | config EDK2_DEBUG |
| 125 | bool "Generate edk2 debug build" |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 126 | help |
| 127 | Generate a debug build. |
| 128 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 129 | config EDK2_RELEASE |
| 130 | bool "Generate edk2 release build" |
Martin Roth | 4769cc3 | 2016-06-02 16:42:29 -0600 | [diff] [blame] | 131 | help |
| 132 | Generate a release build. |
| 133 | |
| 134 | endchoice |
| 135 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 136 | config EDK2_BOOTSPLASH_FILE |
| 137 | string "edk2 Bootsplash path and filename" |
Matt DeVillier | 7b087c0 | 2022-07-25 23:27:19 -0500 | [diff] [blame] | 138 | default "Documentation/coreboot_logo.bmp" |
Matt DeVillier | ff79341 | 2019-02-21 22:41:59 -0600 | [diff] [blame] | 139 | help |
Sean Rhodes | 108e537 | 2022-07-15 13:58:52 +0100 | [diff] [blame] | 140 | The path and filename of the file to use as graphical bootsplash |
| 141 | image. If this option is not configured, the default |
Matt DeVillier | ff79341 | 2019-02-21 22:41:59 -0600 | [diff] [blame] | 142 | coreboot logo (European Brown Hare) will used. |
| 143 | |
Sean Rhodes | 108e537 | 2022-07-15 13:58:52 +0100 | [diff] [blame] | 144 | You can use any image format supported by imagemagick, a list of which |
| 145 | can be found [here](https://imagemagick.org/script/formats.php). |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 146 | |
Sean Rhodes | 108e537 | 2022-07-15 13:58:52 +0100 | [diff] [blame] | 147 | The build process will automatically convert this to the format that |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 148 | edk2 requires, which is an uncompressed BMP, in BMP3 format. It does |
Sean Rhodes | 108e537 | 2022-07-15 13:58:52 +0100 | [diff] [blame] | 149 | this using imagemagick (`convert splosh.bmp BMP3:splash.bmp`). |
| 150 | |
| 151 | The newly formatted file will be the dimensions size as the original |
| 152 | one. |
| 153 | |
| 154 | The build process will automatically do this conversion, so it can |
| 155 | be supplied with any format that imagemagick can process (which is |
| 156 | pretty much any!). |
Felix Friedlander | 45ce841 | 2021-01-08 16:37:40 +1100 | [diff] [blame] | 157 | |
| 158 | This image will also be used as the BGRT boot image, which may |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 159 | persist through your OS boot process. |
Felix Friedlander | 45ce841 | 2021-01-08 16:37:40 +1100 | [diff] [blame] | 160 | |
| 161 | See ACPI spec 6.3, 5.2.22 Boot Graphics Resource Table (BGRT), and |
| 162 | Microsoft's documentation on BGRT positioning: |
| 163 | Docs/Windows/Windows Drivers/Bring up guide/Boot screen components |
| 164 | |
| 165 | Accordingly, the image used should be no taller/wider than 40% of |
| 166 | the display panel's native pixel height/width (or resolution set). |
Matt DeVillier | ff79341 | 2019-02-21 22:41:59 -0600 | [diff] [blame] | 167 | |
| 168 | If an absolute path is not given, the path will assumed to be |
| 169 | relative to the coreboot root directory. |
| 170 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 171 | config EDK2_BOOT_MANAGER_ESCAPE |
Sean Rhodes | c8decce | 2022-02-09 08:25:39 +0000 | [diff] [blame] | 172 | bool "Use Escape key for Boot Manager" |
| 173 | default n |
| 174 | help |
| 175 | Use Escape as the hot-key to access the Boot Manager. This replaces |
| 176 | the default key of F2. |
| 177 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 178 | config EDK2_BOOT_TIMEOUT |
Sean Rhodes | 63c6d81 | 2022-03-03 08:05:12 +0000 | [diff] [blame] | 179 | int "Set the timeout for boot menu prompt" |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 180 | default 2 |
Sean Rhodes | 766e481 | 2021-07-12 19:35:51 +0100 | [diff] [blame] | 181 | help |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 182 | The length of time in seconds for which the boot splash/menu prompt will be displayed. |
| 183 | For boards with an internal display, the default value of 2s is generally sufficient. |
| 184 | For boards with an external display, a value of 5s is generally sufficient. |
Sean Rhodes | 766e481 | 2021-07-12 19:35:51 +0100 | [diff] [blame] | 185 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 186 | config EDK2_CBMEM_LOGGING |
| 187 | bool "Enable edk2 logging to CBMEM" |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 188 | help |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 189 | Select this option if you want to enable edk2 logging to CBMEM. |
Sean Rhodes | 0884f210 | 2022-02-04 07:41:16 +0000 | [diff] [blame] | 190 | You may want to increase the default cbmem buffer size when selecting |
| 191 | this option, especially if using a debug (vs release) build. |
| 192 | Selecting this option will increase the payload size in CBFS by 0x10000. |
Sean Rhodes | 766e481 | 2021-07-12 19:35:51 +0100 | [diff] [blame] | 193 | |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 194 | config EDK2_CPU_TIMER_LIB |
| 195 | bool |
| 196 | default n |
| 197 | help |
| 198 | For recent Intel and AMD CPUs, the 0x15 CPUID instruction will return Time |
| 199 | Stamp Counter Frequence. For CPUs that do not support this instruction, |
| 200 | EDK2 must include a different library which is the reason why this must be |
| 201 | configured at build time. |
| 202 | |
| 203 | If this is enabled, and the CPU doesn't support 0x15, it will fail to |
| 204 | boot. If it is not enabled, and the CPU does support 0x15, it will still |
| 205 | boot but without support for the leaf. Consequently, it is disabled by |
| 206 | default. |
| 207 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 208 | config EDK2_FOLLOW_BGRT_SPEC |
Sean Rhodes | 14d67b3 | 2022-02-09 08:27:29 +0000 | [diff] [blame] | 209 | bool "Center logo 38.2% from the top of screen" |
Sean Rhodes | 9031877 | 2023-09-20 21:24:24 +0100 | [diff] [blame] | 210 | depends on EDK2_REPO_MRCHROMEBOX |
Sean Rhodes | 14d67b3 | 2022-02-09 08:27:29 +0000 | [diff] [blame] | 211 | default n |
| 212 | help |
| 213 | Follow the BGRT Specification implemented by Microsoft and |
Sean Rhodes | f33ddb3 | 2022-02-09 08:30:07 +0000 | [diff] [blame] | 214 | the Boot Logo 38.2% will be vertically centered 38.2% from |
| 215 | the top of the display. |
| 216 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 217 | config EDK2_FULL_SCREEN_SETUP |
Sean Rhodes | c14bbbc | 2022-07-26 16:50:00 +0100 | [diff] [blame] | 218 | bool "Use the full screen for the edk2 frontpage" |
| 219 | default y |
| 220 | help |
| 221 | Allow edk2 to use the full screen to display the frontpage |
| 222 | (aka "Boot Menu"). With this option disable, it will be |
| 223 | limited to 640x480. |
| 224 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 225 | config EDK2_HAVE_EFI_SHELL |
Sean Rhodes | f33ddb3 | 2022-02-09 08:30:07 +0000 | [diff] [blame] | 226 | bool "Include EFI Shell" |
| 227 | default y |
| 228 | help |
| 229 | Include the EFI shell Binary |
Sean Rhodes | 14d67b3 | 2022-02-09 08:27:29 +0000 | [diff] [blame] | 230 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 231 | config EDK2_PRIORITIZE_INTERNAL |
Sean Rhodes | 3f3a3ee | 2022-02-10 09:21:50 +0000 | [diff] [blame] | 232 | bool "Prioritize internal boot devices" |
Sean Rhodes | 9031877 | 2023-09-20 21:24:24 +0100 | [diff] [blame] | 233 | depends on EDK2_REPO_MRCHROMEBOX |
Sean Rhodes | 3f3a3ee | 2022-02-10 09:21:50 +0000 | [diff] [blame] | 234 | default y |
| 235 | help |
| 236 | Prioritize internal boot devices over external devices |
| 237 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 238 | config EDK2_PS2_SUPPORT |
Sean Rhodes | 4600c25 | 2022-02-09 08:31:24 +0000 | [diff] [blame] | 239 | bool "Support PS/2 Keyboards" |
| 240 | default y |
| 241 | help |
| 242 | Include support for PS/2 keyboards |
| 243 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 244 | config EDK2_SD_MMC_TIMEOUT |
Sean Rhodes | 8f29603 | 2022-07-13 08:09:59 +0100 | [diff] [blame] | 245 | int "Timeout in ms for initializing SD and eMMC devices" |
| 246 | default 10 |
Sean Rhodes | 4a9be9f | 2022-02-13 21:19:19 +0000 | [diff] [blame] | 247 | help |
| 248 | The amount of time allowed to initialize the SD Card reader and/or eMMC drive. |
Sean Rhodes | 8f29603 | 2022-07-13 08:09:59 +0100 | [diff] [blame] | 249 | Most only require 10ms, but certain readers can take 1s. |
Sean Rhodes | 4a9be9f | 2022-02-13 21:19:19 +0000 | [diff] [blame] | 250 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 251 | config EDK2_SERIAL_SUPPORT |
Sean Rhodes | 8e10a48 | 2022-07-04 17:01:09 +0100 | [diff] [blame] | 252 | bool "Support serial output" |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 253 | default y if EDK2_DEBUG |
Sean Rhodes | 8e10a48 | 2022-07-04 17:01:09 +0100 | [diff] [blame] | 254 | default n |
| 255 | help |
| 256 | Enable serial port output in edk2. Serial output limits the performance of edk2's |
| 257 | FrontPage. |
| 258 | |
Matt DeVillier | a38e248 | 2023-04-30 15:10:57 -0500 | [diff] [blame] | 259 | config EDK2_SECURE_BOOT_SUPPORT |
| 260 | bool "Enable UEFI Secure Boot support" |
| 261 | depends on EDK2_REPO_MRCHROMEBOX && SMMSTORE_V2 |
| 262 | default y if EDK2_REPO_MRCHROMEBOX && SMMSTORE_V2 |
| 263 | help |
| 264 | Select this option to enable UEFI SecureBoot support in edk2. |
| 265 | UEFI SecureBoot will be disabled by default and can be enabled from the menu option. |
| 266 | |
Matt DeVillier | 64262a6 | 2022-08-18 18:05:54 -0500 | [diff] [blame] | 267 | config EDK2_GOP_DRIVER |
| 268 | bool "Add a GOP driver to the Tianocore build" |
Sean Rhodes | 9031877 | 2023-09-20 21:24:24 +0100 | [diff] [blame] | 269 | depends on INTEL_GMA_ADD_VBT && NO_GFX_INIT && EDK2_REPO_MRCHROMEBOX |
Matt DeVillier | 64262a6 | 2022-08-18 18:05:54 -0500 | [diff] [blame] | 270 | default y if INTEL_GMA_ADD_VBT && NO_GFX_INIT && EDK2_REPO_MRCHROMEBOX |
| 271 | help |
| 272 | Select this option to have edk2 use an external GOP driver for display init. |
| 273 | |
| 274 | config EDK2_GOP_FILE |
| 275 | string "GOP driver file" |
| 276 | depends on EDK2_GOP_DRIVER |
| 277 | default "IntelGopDriver.efi" |
| 278 | help |
| 279 | The name of the GOP driver file passed to edk2. |
| 280 | |
Matt DeVillier | fd42148 | 2023-09-20 11:27:20 -0500 | [diff] [blame^] | 281 | config EDK2_DISABLE_TPM |
| 282 | bool "Disable TPM support in edk2" |
| 283 | default y if EDK2_REPO_MRCHROMEBOX && TPM_GOOGLE_CR50 && SOC_AMD_COMMON |
| 284 | help |
| 285 | Select this option to disable TPM support in edk2. This is necessary to avoid boot |
| 286 | hangs on some boards with a CR50 TPM, particularly those with an AMD Zen SoC. |
| 287 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 288 | config EDK2_CUSTOM_BUILD_PARAMS |
| 289 | string "edk2 additional custom build parameters" |
Sean Rhodes | 91564fc | 2022-07-22 10:10:38 +0100 | [diff] [blame] | 290 | default "-D VARIABLE_SUPPORT=SMMSTORE" if EDK2_REPO_MRCHROMEBOX && SMMSTORE_V2 |
Michał Żygowski | ba08c49 | 2022-02-23 16:55:24 +0100 | [diff] [blame] | 291 | help |
Sean Rhodes | c505588 | 2022-07-27 21:41:54 +0100 | [diff] [blame] | 292 | edk2 has build options that are not modified by coreboot, and these can be |
| 293 | found in `UefiPayloadPkg/UefiPayloadPkg.dsc`. Forks may also support |
| 294 | additional build options that should have been upstreamed but have not. |
Michał Żygowski | ba08c49 | 2022-02-23 16:55:24 +0100 | [diff] [blame] | 295 | |
Sean Rhodes | c505588 | 2022-07-27 21:41:54 +0100 | [diff] [blame] | 296 | This option can support both macros `-D` and Pcds `--pcd`. |
Michał Żygowski | ba08c49 | 2022-02-23 16:55:24 +0100 | [diff] [blame] | 297 | |
Stefan Reinauer | 1a8b7bf | 2015-06-30 15:58:56 -0700 | [diff] [blame] | 298 | endif |