From 2fdfa504377f0032c6d1c99fb9febcf824a413d3 Mon Sep 17 00:00:00 2001 From: Gavin Liu Date: Fri, 24 Jan 2025 17:19:31 +0800 Subject: [PATCH] soc/mediatek/mt8196: Specify MTKLIB_PATH for building BL31 Add BL31 static library path to BL31 build argument. BRANCH=rauru BUG=b:317009620 TEST=Build pass with and without static library. boot ok. Change-Id: I858686ede3730fb70f71565ca3593e7eb4c460d2 Signed-off-by: Gavin Liu Reviewed-on: https://review.coreboot.org/c/coreboot/+/86252 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/soc/mediatek/mt8196/Makefile.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/soc/mediatek/mt8196/Makefile.mk b/src/soc/mediatek/mt8196/Makefile.mk index d780ebdc4b..4dd2d2d8f9 100644 --- a/src/soc/mediatek/mt8196/Makefile.mk +++ b/src/soc/mediatek/mt8196/Makefile.mk @@ -93,6 +93,12 @@ CPPFLAGS_common += -Isrc/soc/mediatek/common/dp/include MT8196_BLOB_DIR := 3rdparty/blobs/soc/mediatek/mt8196 +BL31_LIB := $(top)/$(MT8196_BLOB_DIR)/libbl31.a + +ifneq ($(wildcard $(BL31_LIB)),) +BL31_MAKEARGS += MTKLIB_PATH=$(BL31_LIB) +endif + mcu-firmware-files := \ $(CONFIG_DPM_DM_FIRMWARE) \ $(CONFIG_DPM_PM_FIRMWARE) \