From patchwork Sun Jun 19 17:06:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 12886785 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 C93D7C43334 for ; Sun, 19 Jun 2022 17:16:39 +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: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:In-Reply-To:References: List-Owner; bh=xVtS+vuXlz39uhmR6NC0PThKo0oCBkIwTNlu/m9ka3A=; b=aIg9VPagl4UwTe 7QNylXZPKdn0YahBmWHgQ7Y+PCZ4IOdnTWtiJxIgYdaqyx4QJ6uXwXoazFkg2JsqrfwfclR9XrMfS LUOTCdi2GD+rL220OfFwJzkUuGY9cN+OT5cA/clrZR/keFudMcG/51W55fhaCy9EFKuzPsjklF9DU VeHTCGcqQIeRV8GePK3gbojX95EBjMJBTzrOkBfBLiaDn9rTvEGeM1iN19qU85i0gjjUO4cnV0thQ QHUmchw3MTirrUqb35dwbn3Fmwt3CmYVUVD75vW0tKAFYlHf/zy2suDNdpogzLRFJNre0sBFh68JW /SLCN3UIeyM347++IbRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2yWY-00EnV2-Ij; Sun, 19 Jun 2022 17:15:46 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2yWW-00EnUN-7Z for linux-arm-kernel@lists.infradead.org; Sun, 19 Jun 2022 17:15:45 +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 C089C6120A; Sun, 19 Jun 2022 17:15:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9BE2C34114; Sun, 19 Jun 2022 17:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655658942; bh=EOaC8SnRT3BTyKb+6oHGcBDutsyklJb4+wCJ/KSpZKU=; h=From:To:Cc:Subject:Date:From; b=fD+ZZ//F1Efwr0zAAQbxGZDMgaOowTvF82BSx8enp4x5myUQTiSXQOUt2ucOIZz0J 2b54PNisfVsJQinuqmgD18Jc1juvGXAPkgio5ohaXoymf/NgQDAHFX4Zj2jlTrCKQy UQcp9eEuNVIMJh5qzf6toEFZ6UNUQVqZ/5H3D0jik22c9NPXDzmOyrZtiLsppMCnfg LPx0PWZyicy0Gg6qGhek+F+FvE/kLo9Hp8LBPMK102FeL4lX6KbouGZSkDRKX2TZlE Mnpyjyc8ZsU0DFwinTGGyPqcvyVuvbfOARWVB/xN0CeeuwSj7dMIDxidLzdpP04Q2e kClq6FWJs63eA== From: Jisheng Zhang To: Catalin Marinas , Will Deacon , Nick Terrell Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: boot: add zstd support Date: Mon, 20 Jun 2022 01:06:57 +0800 Message-Id: <20220619170657.2657-1-jszhang@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220619_101544_361107_827E8E4C X-CRM114-Status: GOOD ( 11.34 ) 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 Support build the zstd compressed Image.zst. Similar as other compressed formats, the Image.zst is not self-decompressing and the bootloader still needs to handle decompression before launching the kernel image. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile index ebe80faab883..a0e3dedd2883 100644 --- a/arch/arm64/boot/Makefile +++ b/arch/arm64/boot/Makefile @@ -16,7 +16,7 @@ OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S -targets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo +targets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo Image.zst $(obj)/Image: vmlinux FORCE $(call if_changed,objcopy) @@ -35,3 +35,6 @@ $(obj)/Image.lzma: $(obj)/Image FORCE $(obj)/Image.lzo: $(obj)/Image FORCE $(call if_changed,lzo) + +$(obj)/Image.zst: $(obj)/Image FORCE + $(call if_changed,zstd)