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 <gavin.liu@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86252
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Gavin Liu 2025-01-24 17:19:31 +08:00 committed by Yidi Lin
commit 2fdfa50437

View file

@ -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) \