From 6388a5b8921c3d8286bc45e169504fb50aa24e6e Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Tue, 26 Jul 2022 16:42:51 +0100 Subject: payloads/tianocore: Correct the multiplication of the SD/MMC timeout The `call int-multiply` couldn't handle the Kconfig option being a string so do the calculation in bash. Tested on: * Qemu * StarLite Mk III Signed-off-by: Sean Rhodes Change-Id: I1879d7efd504e2c42dadb12d2d8add4f69ca7b9c Reviewed-on: https://review.coreboot.org/c/coreboot/+/66161 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- payloads/external/tianocore/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/external') diff --git a/payloads/external/tianocore/Makefile b/payloads/external/tianocore/Makefile index f78e307565..9400f276a8 100644 --- a/payloads/external/tianocore/Makefile +++ b/payloads/external/tianocore/Makefile @@ -78,7 +78,7 @@ 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=$(call int-multiply, $(CONFIG_TIANOCORE_SD_MMC_TIMEOUT) 1000) +BUILD_STR += -D SD_MMC_TIMEOUT=$(shell echo $$(( $(CONFIG_TIANOCORE_SD_MMC_TIMEOUT) * 1000)) ) endif # # EDKII has the below PCDs that are relevant to coreboot: -- cgit v1.2.3