Skip to content

Commit 75cffd3

Browse files
tangyoulingchenhuacai
authored andcommitted
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 <tangyouling@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent a96c733 commit 75cffd3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/loongarch/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ vmlinux.elf vmlinux.efi vmlinuz.efi: vmlinux
181181
$(Q)$(MAKE) $(build)=$(boot) $(bootvars-y) $(boot)/$@
182182

183183
install:
184-
$(Q)install -D -m 755 $(KBUILD_IMAGE) $(INSTALL_PATH)/$(image-name-y)-$(KERNELRELEASE)
185-
$(Q)install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE)
186-
$(Q)install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE)
184+
$(call cmd,install)
187185

188186
define archhelp
189187
echo ' install - install kernel into $(INSTALL_PATH)'

0 commit comments

Comments
 (0)