]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
LoongArch: Using generic scripts/install.sh in `make install`
authorYouling Tang <tangyouling@kylinos.cn>
Fri, 30 May 2025 13:45:42 +0000 (21:45 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 30 May 2025 13:45:42 +0000 (21:45 +0800)
Use the generic script/install.sh to perform the make install operation.
This will automatically generate the initrd file and modify the grub.cfg
without manual intervention (The previous kernel image, config file and
System.map will also be generated), similar to other architectures.

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Makefile

index 0304eabbe60661570bf8f0787acec9ab1113618a..64bdb52ddf7cd0559a6709ff865cdeed593cd5a7 100644 (file)
@@ -181,9 +181,7 @@ vmlinux.elf vmlinux.efi vmlinuz.efi: vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(bootvars-y) $(boot)/$@
 
 install:
-       $(Q)install -D -m 755 $(KBUILD_IMAGE) $(INSTALL_PATH)/$(image-name-y)-$(KERNELRELEASE)
-       $(Q)install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE)
-       $(Q)install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE)
+       $(call cmd,install)
 
 define archhelp
        echo '  install              - install kernel into $(INSTALL_PATH)'