From 467c5b90ba1140dcdabc2e2e203c1d91fca9963e Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Sun, 9 Aug 2026 12:58:49 +0200 Subject: [PATCH] airoha: fix AN7581 chainloader U-Boot filename The uboot-airoha package now stages compressed U-Boot images using the u-boot.lzma suffix. The AN7581 chainloader still looks for the previous u-boot.bin.lzma filename and consequently falls back to a nonexistent uncompressed image. Use the staged u-boot.lzma filename when generating the chainloader FIT. Fixes: 94a21b3fe9bd ("uboot-airoha: move FIP generation to target and enable autoselection") Signed-off-by: Robert Marko --- target/linux/airoha/image/an7581.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/airoha/image/an7581.mk b/target/linux/airoha/image/an7581.mk index 388e088138a..eb77df669f8 100644 --- a/target/linux/airoha/image/an7581.mk +++ b/target/linux/airoha/image/an7581.mk @@ -21,8 +21,8 @@ endef define Build/an7581-chainloader $(INSTALL_DIR) $(KDIR)/chainload-fit-$(notdir $@) - @if [ -f "$(STAGING_DIR_IMAGE)/an7581_$1-u-boot.bin.lzma" ]; then \ - KERNEL="$(STAGING_DIR_IMAGE)/an7581_$1-u-boot.bin.lzma"; \ + @if [ -f "$(STAGING_DIR_IMAGE)/an7581_$1-u-boot.lzma" ]; then \ + KERNEL="$(STAGING_DIR_IMAGE)/an7581_$1-u-boot.lzma"; \ COMP="lzma"; \ else \ KERNEL="$(STAGING_DIR_IMAGE)/an7581_$1-u-boot.bin"; \