]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: fix AN7581 chainloader U-Boot filename
authorRobert Marko <robert.marko@sartura.hr>
Sun, 9 Aug 2026 10:58:49 +0000 (12:58 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 9 Aug 2026 11:05:48 +0000 (13:05 +0200)
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 <robert.marko@sartura.hr>
target/linux/airoha/image/an7581.mk

index 388e088138abd53911c70b9496d6d07f570d733b..eb77df669f87e20827e11d0315730f7a8f8050c0 100644 (file)
@@ -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"; \