summaryrefslogtreecommitdiffstats
path: root/payloads/external/tianocore/Makefile
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-02-13 21:19:19 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-02-25 20:44:42 +0000
commit4a9be9f32120794e7ea16d7dd5f4490f17dad623 (patch)
treee538327c7802d4e76a86980423743f88731209c4 /payloads/external/tianocore/Makefile
parent3ecee3cdd92e799072eb47262a1be29d62de927b (diff)
downloadcoreboot-4a9be9f32120794e7ea16d7dd5f4490f17dad623.tar.gz
coreboot-4a9be9f32120794e7ea16d7dd5f4490f17dad623.tar.bz2
coreboot-4a9be9f32120794e7ea16d7dd5f4490f17dad623.zip
payloads/tianocore: Pass SD_MMC_TIMEOUT build option
By default, edk2 allows 1000000μs for SD Card Readers and eMMC to initialize which is excessive and causes a boot delay. This makes the value configurable and uses a default of 1000μs which is sufficient for the majority of readers. The value of 1000μs was hardcoded in MrChromeBox's fork for around 2 years with no reported issues. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I873bcddf6f37a9eaae5c84991b3996d51fb460d3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61902 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/external/tianocore/Makefile')
-rw-r--r--payloads/external/tianocore/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/payloads/external/tianocore/Makefile b/payloads/external/tianocore/Makefile
index c6247cdefc22..437e706d5587 100644
--- a/payloads/external/tianocore/Makefile
+++ b/payloads/external/tianocore/Makefile
@@ -64,6 +64,10 @@ endif
ifeq ($(CONFIG_TIANOCORE_CBMEM_LOGGING),y)
BUILD_STR += -D USE_CBMEM_FOR_CONSOLE=TRUE
endif
+# SD_MMC_TIMEOUT = 1000000
+ifneq ($(CONFIG_TIANOCORE_SD_MMC_TIMEOUT),)
+BUILD_STR += -D SD_MMC_TIMEOUT=$(CONFIG_TIANOCORE_SD_MMC_TIMEOUT)
+endif
#
# The below are legacy options only available in CorebootPayloadPkg:
#