Commit c37b830f authored by Ard Biesheuvel's avatar Ard Biesheuvel

arm64: efi: enable generic EFI compressed boot

Wire up the generic EFI zboot support for arm64.
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Tested-by: default avatarJeremy Linton <jeremy.linton@arm.com>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent c5d5cba7
...@@ -151,12 +151,17 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a ...@@ -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
......
# 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 ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment