From f1430c8cf17d58f9572619472ca30064355524eb Mon Sep 17 00:00:00 2001 From: Youling Tang Date: Tue, 20 May 2025 20:17:42 +0800 Subject: [PATCH] LoongArch: Using generic scripts/install.sh in `make install` 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 Signed-off-by: Huacai Chen Signed-off-by: maoxiaochuan --- arch/loongarch/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile index 2fda81e8c..f13746186 100644 --- a/arch/loongarch/Makefile +++ b/arch/loongarch/Makefile @@ -184,9 +184,7 @@ vmlinux.elf vmlinux.efi vmlinuz.efi uImage: 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)'