File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,14 @@ ifneq ($(CONFIG_XIP_KERNEL),y)
136
136
ifeq ($(CONFIG_RISCV_M_MODE )$(CONFIG_SOC_CANAAN ) ,yy)
137
137
KBUILD_IMAGE := $(boot ) /loader.bin
138
138
else
139
+ ifeq ($(CONFIG_EFI_ZBOOT ) ,)
139
140
KBUILD_IMAGE := $(boot ) /Image.gz
141
+ else
142
+ KBUILD_IMAGE := $(boot ) /vmlinuz.efi
143
+ endif
140
144
endif
141
145
endif
142
- BOOT_TARGETS := Image Image.gz loader loader.bin xipImage
146
+ BOOT_TARGETS := Image Image.gz loader loader.bin xipImage vmlinuz.efi
143
147
144
148
all : $(notdir $(KBUILD_IMAGE ) )
145
149
Original file line number Diff line number Diff line change 4
4
loader
5
5
loader.lds
6
6
loader.bin
7
+ vmlinuz *
7
8
xipImage
Original file line number Diff line number Diff line change @@ -58,3 +58,9 @@ $(obj)/Image.lzo: $(obj)/Image FORCE
58
58
59
59
$(obj ) /loader.bin : $(obj ) /loader FORCE
60
60
$(call if_changed,objcopy)
61
+
62
+ EFI_ZBOOT_PAYLOAD := Image
63
+ EFI_ZBOOT_BFD_TARGET := elf$(BITS ) -littleriscv
64
+ EFI_ZBOOT_MACH_TYPE := RISCV$(BITS )
65
+
66
+ include $(srctree ) /drivers/firmware/efi/libstub/Makefile.zboot
You can’t perform that action at this time.
0 commit comments