File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ boot := arch/loongarch/boot
7
7
8
8
KBUILD_DEFCONFIG := loongson3_defconfig
9
9
10
+ image-name-y := vmlinux
11
+ image-name-$(CONFIG_EFI_ZBOOT) := vmlinuz
12
+
10
13
ifndef CONFIG_EFI_STUB
11
14
KBUILD_IMAGE := $(boot ) /vmlinux.elf
12
15
else
13
- KBUILD_IMAGE := $(boot ) /vmlinux .efi
16
+ KBUILD_IMAGE := $(boot ) /$( image-name-y ) .efi
14
17
endif
15
18
16
19
#
@@ -93,11 +96,11 @@ vdso_install:
93
96
94
97
all : $(notdir $(KBUILD_IMAGE ) )
95
98
96
- vmlinux.elf vmlinux.efi : vmlinux
99
+ vmlinux.elf vmlinux.efi vmlinuz.efi : vmlinux
97
100
$(Q )$(MAKE ) $(build ) =$(boot ) $(bootvars-y ) $(boot ) /$@
98
101
99
102
install :
100
- $(Q ) install -D -m 755 $(KBUILD_IMAGE ) $(INSTALL_PATH ) /vmlinux -$(KERNELRELEASE )
103
+ $(Q ) install -D -m 755 $(KBUILD_IMAGE ) $(INSTALL_PATH ) /$( image-name-y ) -$(KERNELRELEASE )
101
104
$(Q ) install -D -m 644 .config $(INSTALL_PATH ) /config-$(KERNELRELEASE )
102
105
$(Q ) install -D -m 644 System.map $(INSTALL_PATH ) /System.map-$(KERNELRELEASE )
103
106
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
vmlinux *
3
+ vmlinuz *
Original file line number Diff line number Diff line change @@ -18,3 +18,9 @@ $(obj)/vmlinux.elf: vmlinux FORCE
18
18
targets += vmlinux.efi
19
19
$(obj ) /vmlinux.efi : vmlinux FORCE
20
20
$(call if_changed,objcopy)
21
+
22
+ EFI_ZBOOT_PAYLOAD := vmlinux.efi
23
+ EFI_ZBOOT_BFD_TARGET := elf64-loongarch
24
+ EFI_ZBOOT_MACH_TYPE := LOONGARCH64
25
+
26
+ include $(srctree ) /drivers/firmware/efi/libstub/Makefile.zboot
You can’t perform that action at this time.
0 commit comments