From patchwork Sat Aug 27 08:38:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 12956884 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4446C0502C for ; Sat, 27 Aug 2022 08:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7xbr5+nAfUFIdau82lsS967/d+Ax+Dpnq7mugVPXnsM=; b=Vew87QVwsCx/6A hiilM/D9aeNpWJGgI0EDdQasVbJr+0+PpXkGg60nvaDRgPBgtAQYlohQr+cbqOvf46dywptADrcAs QotMAOp7UhfBeGzfxiTsNA3sarzYPutgrqI023s1ZeRsJfxf6DqMh1KjvtywowtBpm0uiyzWfnJW1 SOqygsRZ0chtARlag2VduYbpj4c1VhDM79ocBBAgkesLN8s5chEHgfM8S9IwY0GgxMES165i00sew N3Ic1Bl+SQjPlfePd/gkl6xZ00r162bUxPsRU5xHRdShLYUL6x78P4d2tE8CT+AwqGbddyYO5Mtqm N+/bxRP+c5jlcmXAyIWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRrN5-0062N0-3g; Sat, 27 Aug 2022 08:40:51 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRrLn-006166-Gq for linux-arm-kernel@lists.infradead.org; Sat, 27 Aug 2022 08:39:32 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D5CA61306; Sat, 27 Aug 2022 08:39:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A68EC433C1; Sat, 27 Aug 2022 08:39:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661589570; bh=Eq+AYyhYBLXAd6lHX+27+KiKJAceoIJ7udLauirDVm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qIb31Sk/CrBelE/Z96Kb86gTEJ2YkV+piBE9tmu7ebpchJqFMIz6iH8jEEaVhFhdM hiyFKOvg/3cmeQ0nGXB4kbZ82O8Sf6ufJ+cekry6VUGn8SMLHPJuV3f5YXme3chjhX 6LX23WlbPYkV7ONm7ODimpn2k2eldZitKMVjycHG2wz6PsoNspeh7rq5u+uRlmhYlt n3TIMaFesQcQwTX3ZxYcNIDpTQVxpj8kNoUWNg+eyTVeGase4LnsO0eg6p7Pnycvrz 8aJEeUyIw3m0PGC/WlzEv/GpXUiGp2kZXrWnah2+V3YX+HGhJuYBzZ9wDQaQV7m5C2 628f8OJFpm5pA== From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , "James E.J. Bottomley" , Matthew Garrett , Peter Jones , Ilias Apalodimas , Heinrich Schuchardt , AKASHI Takahiro , Palmer Dabbelt , Atish Patra , Arnd Bergmann , Huacai Chen , Xi Ruoyao , Lennart Poettering , Jeremy Linton Subject: [PATCH v4 6/9] arm64: efi: enable generic EFI compressed boot Date: Sat, 27 Aug 2022 10:38:47 +0200 Message-Id: <20220827083850.2702465-7-ardb@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220827083850.2702465-1-ardb@kernel.org> References: <20220827083850.2702465-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1195; i=ardb@kernel.org; h=from:subject; bh=Eq+AYyhYBLXAd6lHX+27+KiKJAceoIJ7udLauirDVm4=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBjCdgUHKzcRzzsKLzEv2X1UzN/Gi7UMpaozCkoJnra gRq70zuJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYwnYFAAKCRDDTyI5ktmPJBpXC/ 4uVi7DFgWEjhdO4ee7TmWJ5MltpNdO1L1gpamn2XkpD7O8blENDdeNThgb4Ro4VBfIhF6NRgtRDnns RwkhK/d31oac37vNCYZcqGns5yFgQOE3K6jLb2cJW1fOtfHkQevrhb0giqd+QLDq9G2wf3pKFaPQoL 1hzYeYLsqJgw+Cn/SoUlIsFnXUe5zDvKjuzyqeZAWBysCzzD8bytVQqLUnxxlENkbQwDG25T98xwcw hfgKbweRi1UzWYPK1YtuURhidM87AKkmk2TUZWUwPppb2Wj3HxlolEDgcdh7p3AxzbRqnuTtEKj5+x 8j2wtNbRQCOQ5NqCAt+L2QeI0abk39ma62ZFV/bkzUJM3WegP0ugmb4Nna5xX1rf9s8k4UP5tnYO7a n49h/ba4nqRT8+InV847+uLGJNsT91A4ZbrNFprZxQNH0DGMK7HEdnIVsehSutKyOTmyluhBntRHCy 6Pivi59HrtQcCncZ8CVqCYwiQqoYfZsr6w1CNY95EVSbw= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220827_013931_656796_9B072EF9 X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Wire up the generic EFI zboot support for arm64. Signed-off-by: Ard Biesheuvel --- arch/arm64/Makefile | 4 ++-- arch/arm64/boot/Makefile | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 6d9d4a58b898..92676ccc6363 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -153,10 +153,10 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a boot := arch/arm64/boot KBUILD_IMAGE := $(boot)/Image.gz -all: Image.gz +all: $(notdir $(KBUILD_IMAGE)) -Image: vmlinux +Image vmlinuz.efi: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile index a0e3dedd2883..c65aee088410 100644 --- a/arch/arm64/boot/Makefile +++ b/arch/arm64/boot/Makefile @@ -38,3 +38,9 @@ $(obj)/Image.lzo: $(obj)/Image FORCE $(obj)/Image.zst: $(obj)/Image FORCE $(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