arm64: efi: enable generic EFI compressed boot
Wire up the generic EFI zboot support for arm64. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Jeremy Linton <jeremy.linton@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
c5d5cba795
commit
c37b830fef
|
@ -151,12 +151,17 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
|
||||||
|
|
||||||
# Default target when executing plain make
|
# Default target when executing plain make
|
||||||
boot := arch/arm64/boot
|
boot := arch/arm64/boot
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_EFI_ZBOOT),)
|
||||||
KBUILD_IMAGE := $(boot)/Image.gz
|
KBUILD_IMAGE := $(boot)/Image.gz
|
||||||
|
else
|
||||||
|
KBUILD_IMAGE := $(boot)/vmlinuz.efi
|
||||||
|
endif
|
||||||
|
|
||||||
all: Image.gz
|
all: $(notdir $(KBUILD_IMAGE))
|
||||||
|
|
||||||
|
|
||||||
Image: vmlinux
|
Image vmlinuz.efi: vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
||||||
|
|
||||||
Image.%: Image
|
Image.%: Image
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
Image
|
Image
|
||||||
Image.gz
|
Image.gz
|
||||||
|
vmlinuz*
|
||||||
|
|
|
@ -38,3 +38,9 @@ $(obj)/Image.lzo: $(obj)/Image FORCE
|
||||||
|
|
||||||
$(obj)/Image.zst: $(obj)/Image FORCE
|
$(obj)/Image.zst: $(obj)/Image FORCE
|
||||||
$(call if_changed,zstd)
|
$(call if_changed,zstd)
|
||||||
|
|
||||||
|
EFI_ZBOOT_PAYLOAD := Image
|
||||||
|
EFI_ZBOOT_BFD_TARGET := elf64-littleaarch64
|
||||||
|
EFI_ZBOOT_MACH_TYPE := ARM64
|
||||||
|
|
||||||
|
include $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot
|
||||||
|
|
Loading…
Reference in New Issue