]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: fix lz4 initramfs creation 23239/head
authorAndre Heider <a.heider@gmail.com>
Mon, 7 Jul 2025 16:21:06 +0000 (18:21 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 7 May 2026 16:14:58 +0000 (18:14 +0200)
lz4c expects the target filename, provide it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23239
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/kernel-defaults.mk

index bdfdaaa6164ad28d2b947f42a0bfef0216f1a110..eb852a04cabcae5b9984e409ef00c3a85c45351d 100644 (file)
@@ -201,7 +201,7 @@ define Kernel/CompileImage/Initramfs
                                $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP), \
                                        $(STAGING_DIR_HOST)/bin/libdeflate-gzip -n -f -S .gzip -12 $(KERNEL_BUILD_DIR)/initrd$(2).cpio;) \
                                $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4), \
-                                       $(STAGING_DIR_HOST)/bin/lz4c -l -c1 -fz --favor-decSpeed $(KERNEL_BUILD_DIR)/initrd$(2).cpio;) \
+                                       $(STAGING_DIR_HOST)/bin/lz4c -l -c1 -fz --favor-decSpeed $(KERNEL_BUILD_DIR)/initrd$(2).cpio $(KERNEL_BUILD_DIR)/initrd$(2).cpio.lz4;) \
                                $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA), \
                                        $(STAGING_DIR_HOST)/bin/lzma e -lc1 -lp2 -pb2 $(KERNEL_BUILD_DIR)/initrd$(2).cpio $(KERNEL_BUILD_DIR)/initrd$(2).cpio.lzma;) \
                                $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO), \