[openwrt/openwrt] ath25: fix ELF image generation

LEDE Commits lede-commits at lists.infradead.org
Sun Aug 14 13:42:24 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/2728d13030ac8fb8235875204e44be7e6ba8aecb

commit 2728d13030ac8fb8235875204e44be7e6ba8aecb
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Wed Aug 10 01:06:24 2022 +0200

    ath25: fix ELF image generation
    
    Commit 21f460a5dbef ("ath25: fix duplicate LZMA compression"), when
    attempting to restore ELF artifact generation, copiedover the raw
    kernel image twice. Because of that, the .elf artifact was actually a
    duplicate of raw image.
    
    Fix that by copying over .elf suffixed kernel image instead.
    
    Fixes: 21f460a5dbef ("ath25: fix duplicate LZMA compression")
    Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
    (cherry picked from commit 611291383a826827f240eddebca1949c2e1e7115)
---
 target/linux/ath25/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ath25/image/Makefile b/target/linux/ath25/image/Makefile
index 2b22d54105..d6cd53d261 100644
--- a/target/linux/ath25/image/Makefile
+++ b/target/linux/ath25/image/Makefile
@@ -43,7 +43,7 @@ endef
 define Build/copy-kernel
 	rm -f $@ $@.elf
 	cp $< $@
-	cp $< $@.elf
+	cp $<.elf $@.elf
 endef
 
 define Build/elf-kernel




More information about the lede-commits mailing list