From 186535b0f6d67a61261adc1ee5009df7f98d0a71 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 17 Dec 2025 16:17:02 +0800 Subject: [PATCH] dist: loongarch: fix missing ELF kernel installation Commit d738b51b58f2 ("dist: loongarch: packaged both ELF and PE/COFF kernel images") introduced support for packaging both ELF and PE/COFF formats. However, it inadvertently omitted the installation command for the primary ELF kernel image. While the ELF binary was stripped and copied to a local 'vmlinuz' file, it was not installed into the %{buildroot}, resulting in a package missing the standard /boot/vmlinuz- file. This patch restores the missing installation step to ensure the ELF kernel is correctly packaged. Signed-off-by: Ming Wang --- dist/templates/kernel.template.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/templates/kernel.template.spec b/dist/templates/kernel.template.spec index 32e83b24aecf..e91723c1ae56 100644 --- a/dist/templates/kernel.template.spec +++ b/dist/templates/kernel.template.spec @@ -915,6 +915,7 @@ InstKernelBasic() { INSTALL_DTB_ARCH_PATH= strip -s $_KernBuild/vmlinux -o vmlinuz.elf cp vmlinuz.elf vmlinuz + install -m 644 vmlinuz %{buildroot}/boot/vmlinuz-$KernUnameR cp $_KernBuild/arch/loongarch/boot/vmlinuz.efi vmlinuz.efi %if 0%{?_sb_signer:1} %{_sb_signer vmlinuz.efi vmlinuz.efi.signed} -- Gitee