From a775bfc2b2320fe062cf9a561806fe4af8b04073 Mon Sep 17 00:00:00 2001 From: Gavin Liu Date: Fri, 25 Apr 2025 16:24:41 +0800 Subject: [PATCH] soc/mediatek/mt8189: Specify MTKLIB_PATH for building BL31 Add BL31 static library path to BL31 build argument. BUG=b:379008996 BRANCH=none TEST=build passed Signed-off-by: Gavin Liu Change-Id: I718be15e1a9b6942558ce929baedec18bdcd3309 Reviewed-on: https://review.coreboot.org/c/coreboot/+/88448 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/soc/mediatek/mt8189/Makefile.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/soc/mediatek/mt8189/Makefile.mk b/src/soc/mediatek/mt8189/Makefile.mk index 2f73bcc1f0..f7294c0e74 100644 --- a/src/soc/mediatek/mt8189/Makefile.mk +++ b/src/soc/mediatek/mt8189/Makefile.mk @@ -67,6 +67,12 @@ CPPFLAGS_common += -Isrc/soc/mediatek/common/dp/include MT8189_BLOB_DIR := 3rdparty/blobs/soc/mediatek/mt8189 +BL31_LIB := $(top)/$(MT8189_BLOB_DIR)/libbl31.a + +ifneq ($(wildcard $(BL31_LIB)),) +BL31_MAKEARGS += MTKLIB_PATH=$(BL31_LIB) +endif + firmware-files := \ $(CONFIG_DPM_DM_FIRMWARE) \ $(CONFIG_DPM_PM_FIRMWARE) \