File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -151,12 +151,17 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
151
151
152
152
# Default target when executing plain make
153
153
boot := arch/arm64/boot
154
+
155
+ ifeq ($(CONFIG_EFI_ZBOOT ) ,)
154
156
KBUILD_IMAGE := $(boot ) /Image.gz
157
+ else
158
+ KBUILD_IMAGE := $(boot ) /vmlinuz.efi
159
+ endif
155
160
156
- all : Image.gz
161
+ all : $( notdir $( KBUILD_IMAGE ) )
157
162
158
163
159
- Image : vmlinux
164
+ Image vmlinuz.efi : vmlinux
160
165
$(Q )$(MAKE ) $(build ) =$(boot ) $(boot ) /$@
161
166
162
167
Image.% : Image
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
Image
3
3
Image.gz
4
+ vmlinuz *
Original file line number Diff line number Diff line change @@ -38,3 +38,9 @@ $(obj)/Image.lzo: $(obj)/Image FORCE
38
38
39
39
$(obj ) /Image.zst : $(obj ) /Image FORCE
40
40
$(call if_changed,zstd)
41
+
42
+ EFI_ZBOOT_PAYLOAD := Image
43
+ EFI_ZBOOT_BFD_TARGET := elf64-littleaarch64
44
+ EFI_ZBOOT_MACH_TYPE := ARM64
45
+
46
+ include $(srctree ) /drivers/firmware/efi/libstub/Makefile.zboot
You can’t perform that action at this time.
0 commit comments