Yidi Lin has submitted this change. ( https://review.coreboot.org/c/coreboot/+/86252?usp=email )
Change subject: soc/mediatek/mt8196: Specify MTKLIB_PATH for building BL31 ......................................................................
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 --- M src/soc/mediatek/mt8196/Makefile.mk 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: Yidi Lin: Looks good to me, approved build bot (Jenkins): Verified Yu-Ping Wu: Looks good to me, approved
diff --git a/src/soc/mediatek/mt8196/Makefile.mk b/src/soc/mediatek/mt8196/Makefile.mk index d780ebd..4dd2d2d 100644 --- a/src/soc/mediatek/mt8196/Makefile.mk +++ b/src/soc/mediatek/mt8196/Makefile.mk @@ -93,6 +93,12 @@
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) \