From patchwork Sat Aug 27 08:38:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 12956887 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 DD61EC0502C for ; Sat, 27 Aug 2022 08:43:29 +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=66Ggo5gjlWkQXGXSIaLdkux/wWWcOKK5pw1gg7Npd0o=; b=Lgivkqp1RUo1Zx mOPDFqHgvSEDklMaill8zo4VNCjTQT/c52gU869JsXxiaTnBfUUvQRGj6DOWUtglsTk4Y2jV+3Sh1 mrO2nXNoJp1KsUF/a3dWrdguUVAbGf5ZoGwbmQxvuEHOZnEBXZADU7SDiPxmO67Y3tEpE8Hr/hVsR jEw0DVijS+BRsC7eX2IkWJGryiMIOQC28hWjhwhJFfkWTclVmqkC3zl/GD6pHdI8owycwt+Bwkthd c7OxykaLQkOWpDwyPhZsB3Ie+I+EMbvpoCIVUC6sPGzAuxyNAE1QDKWWsZ/2621+Y7qaTwlOYrNGv qui0+4yJcROFl6P6GJYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRrOJ-0063Un-SJ; Sat, 27 Aug 2022 08:42:09 +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 1oRrLy-0061Ea-1H for linux-arm-kernel@lists.infradead.org; Sat, 27 Aug 2022 08:39:43 +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 94A96614A1; Sat, 27 Aug 2022 08:39:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1A06C433C1; Sat, 27 Aug 2022 08:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661589581; bh=sH6dY5v0mM/ic1eNT4y8rVIIH57brMb+dlbN5USUsGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ilB/TiCHlYrccfH4ftOVIZyiQ1R4GuB6Zzj6V62nI1cFvZJjbZ2BrxizvtUuJSWv2 qv69idXKo0XHBOi90VDTVQ+4eVUmnz+ku+am34CD92RaR/FAf3+ezOpaKSTehKLxv7 bD/5rmLfjmr3xb1mN1/jYzvsTWb15YC1TKMHDU7ha6IziH5rx1e72bFOySV481c9fs 2sTMhbSYsMLduGZAsl2/Hr1oSlMRENTyPnURmh0tWi2hH235YiMgtdtwjgVwDIeS0o pdmgn3KisTuZHfCO2YWE3okS5y6Ui+bst1oUJBEMVihKMSM3umYa+8Phveb53ikDo3 q131HO9kP+VKQ== 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 9/9] loongarch: efi: enable generic EFI compressed boot Date: Sat, 27 Aug 2022 10:38:50 +0200 Message-Id: <20220827083850.2702465-10-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=1174; i=ardb@kernel.org; h=from:subject; bh=sH6dY5v0mM/ic1eNT4y8rVIIH57brMb+dlbN5USUsGw=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBjCdgZe58oCT+uliiLX0A73mYuVZIQDkhOOxyhxeYb GFHXPeyJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYwnYGQAKCRDDTyI5ktmPJGSiC/ 4ndYoo9PleCRNDXglXythl1gKZCj5w9cQPak/RFMXLJvfXzmSkSqVqDWGTb7RMtpYDp5+2yD6kenF8 /GM7ua2KKAQK+V3kLO05uiCLzQk4sh8JNSg2VbRtwCBh3HFujB5/V9PiHgC2JFeX/p2qs1YzXVQCHH 43v9SfXfeDFTbyD0XUuDXmNzen2umTBZYT1TbxWg6R23U91qU5V2R9YhPTUwkSWxlJcDSzKS6QFw1J wgI+0uEC51slTzJ1h7uUWhthwei7+n+n+jfI6Kg+tCFlQQ8NiuWv8y4bbsiv3dnnP0glE71pxdlPqd bb8R0hO8RJwCruCl+IPOJA0JUunDBtR9FBMFyb58VNIKcChL/LAAcC1Nr0plhfwPoG9gXAW6eUxbZR ebL5ivdXrV39fHRZxY68CNQvFdWq7a4XnRtxeWAPu9VYkqHMjao1CafQbgxWJOVq/8LphAdv1r/xfx oaiGoDJUzVDzIjTq3cy6DJH/mfWcjt9cwHebdga0w/4v0= 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_013942_184633_9942D7F1 X-CRM114-Status: GOOD ( 10.27 ) 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 LoongArch64 Signed-off-by: Ard Biesheuvel --- arch/loongarch/Makefile | 2 +- arch/loongarch/boot/Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile index 4bc47f47cfd8..7051a95f7f31 100644 --- a/arch/loongarch/Makefile +++ b/arch/loongarch/Makefile @@ -93,7 +93,7 @@ vdso_install: all: $(notdir $(KBUILD_IMAGE)) -vmlinux.elf vmlinux.efi: vmlinux +vmlinux.elf vmlinux.efi vmlinuz.efi: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(bootvars-y) $(boot)/$@ install: diff --git a/arch/loongarch/boot/Makefile b/arch/loongarch/boot/Makefile index fecf34f50e56..4e1c374c5782 100644 --- a/arch/loongarch/boot/Makefile +++ b/arch/loongarch/boot/Makefile @@ -18,3 +18,9 @@ $(obj)/vmlinux.elf: vmlinux FORCE targets += vmlinux.efi $(obj)/vmlinux.efi: vmlinux FORCE $(call if_changed,objcopy) + +EFI_ZBOOT_PAYLOAD := vmlinux.efi +EFI_ZBOOT_BFD_TARGET := elf64-loongarch +EFI_ZBOOT_MACH_TYPE := LOONGARCH64 + +include $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot