Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2208186iog; Sun, 19 Jun 2022 10:22:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1scQ133mPG/bLNOSvWL1Js/SXgbTq623p0T4KIgY/tvk1XlMOWaSHNEh4PIFAO2CMqptiMq X-Received: by 2002:a17:906:6a09:b0:71c:3bc5:4d3 with SMTP id qw9-20020a1709066a0900b0071c3bc504d3mr14772362ejc.57.1655659362892; Sun, 19 Jun 2022 10:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655659362; cv=none; d=google.com; s=arc-20160816; b=vfTJOc9CcQ1ipWmgAYo2sBOKjMEquV7VSovFSVsdR8gADcD2Qx/wkgeGqDuOA0B0mw tD8XMq5DiKIiH6QKtdcScjJmTnPIna7togxZkB4O5h4B4PNWkrWA98LhMIhgv9hLu8Ka JmoBCKDQyRBSCvAEzaqz9jgJUG/SloerRxLCgfF7WyJyrnphBaubKu8rvuTJ9byoFBeJ TbQ1olxSH63F9/ogCCMw4wenVH45CtnHsWo5BGCvdr56cXZ2z8JcmDAU3wheE7IJI8LY Q30Y/XtGQJ0w1l1kZlSK8CT+kukcBO3AKzJGAfI5adLb63IQI+LI5SNGWTOPHXtnHU6A +1Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4LeavCuKXdF8nryTW+s5d4jeCuefYP4hH1BrMAvMvZY=; b=K83qcB3TEr6KNgqElG9L7j3TTJ5HeNQGckmfivQVbbqto1TpZkxI8oZB76TAeQ0JZH Th1a5Cwh7jOvC3s1Ob39qDXfS7UE9J4u3zU1NpEp+O/shqrlsgwh7FFFY99G2d4fNZuJ h+7jjDrYrLj5lHjCyDOtHZG4w9+GZRsZYjcsxdK/wLuDnIme5NPYHYJX4nvaN6tk3P1g 2id3Y8sbfYsp20YejOCiBAYJxU64/ydQFELmRz2mUnTEoaiFfiZbCARuIpqf0qLrbPU+ b/o5W+QhBkwrGPXx7Lp02vXpkiDEcWrEuHVJf5gvQElncT0snNRH5Oic3Hp6FEdigtpn g7kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fD+ZZ//F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 29-20020a17090602dd00b006e86aac6b67si10711045ejk.351.2022.06.19.10.22.16; Sun, 19 Jun 2022 10:22:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fD+ZZ//F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236374AbiFSRPo (ORCPT + 99 others); Sun, 19 Jun 2022 13:15:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbiFSRPn (ORCPT ); Sun, 19 Jun 2022 13:15:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4160D558B for ; Sun, 19 Jun 2022 10:15:43 -0700 (PDT) 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 CE8916120F for ; 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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) -- 2.34.1