[openwrt/openwrt] arm-trusted-firmware-mediatek: only build bl2 for RAM boot images

LEDE Commits lede-commits at lists.infradead.org
Fri Aug 16 05:18:44 PDT 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/6347bf799adcba6e68bd6cdc85f1cb017039d67f

commit 6347bf799adcba6e68bd6cdc85f1cb017039d67f
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Aug 16 04:43:57 2024 +0100

    arm-trusted-firmware-mediatek: only build bl2 for RAM boot images
    
    There is no need to build BL31 as anyway only the bl2 image is
    relevant for use with mtk_uartboot. Build only bl2 in this case.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/boot/arm-trusted-firmware-mediatek/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/boot/arm-trusted-firmware-mediatek/Makefile b/package/boot/arm-trusted-firmware-mediatek/Makefile
index 91be884757..d052967568 100644
--- a/package/boot/arm-trusted-firmware-mediatek/Makefile
+++ b/package/boot/arm-trusted-firmware-mediatek/Makefile
@@ -547,7 +547,7 @@ TFA_MAKE_FLAGS += \
 	$(if $(RAM_BOOT_UART_DL),RAM_BOOT_UART_DL=1) \
 	$(if $(USE_UBI),UBI=1 $(if $(findstring mt7622,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x80000)) \
 	$(if $(USE_UBI),UBI=1 $(if $(findstring mt7981,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x100000)) \
-	all
+	$(if $(RAM_BOOT_UART_DL),bl2,all)
 
 define Package/trusted-firmware-a-ram/install
 	$(INSTALL_DIR) $(STAGING_DIR_IMAGE)




More information about the lede-commits mailing list