From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF690C4332F for ; Wed, 23 Nov 2022 15:13:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238549AbiKWPM7 (ORCPT ); Wed, 23 Nov 2022 10:12:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238305AbiKWPMs (ORCPT ); Wed, 23 Nov 2022 10:12:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BFE12A41E for ; Wed, 23 Nov 2022 07:12:47 -0800 (PST) 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 D727A61D74 for ; Wed, 23 Nov 2022 15:12:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 245BEC433C1; Wed, 23 Nov 2022 15:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669216366; bh=sRAK5WjulD/KwNHjgNz+jEe815cMtfQqjqgbH8VwekA=; h=From:To:Cc:Subject:Date:From; b=g3SwGTECFbfI6ncYLTEOmMkGc2weuIVarAuI2Ucxn3U1LYGuel8V3OAo25/l919yr gG0uuE0HN+5brTS7sbYH5+stqVNXmpZethvigWJvn7nDnCXf0JGur4XvBBEXDpbNZg LjSPEAmd7eXfRAeLWjPD5Jk5YTRtTRrxoCswo/MUnLsZZpFo77617w3DDbI1k+a8lo gSMyhrDlvHbEFlOUxKhOH2fauESUm5zvCQiRYsT7kV1UOnY3yTRH3wP7rIVm60Xsh5 eMfimX5R2EFGj1c+ikMb/s5GIfzAX1uh5kpE7cE8/HwJGtDLnDBvGhwV3CQCstpxLS FcwQjcXCqj4Ag== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Nick Terrell Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: boot: add zstd support Date: Wed, 23 Nov 2022 23:02:57 +0800 Message-Id: <20221123150257.3108-1-jszhang@kernel.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/riscv/boot/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile index d1a49adcb1d7..c72de7232abb 100644 --- a/arch/riscv/boot/Makefile +++ b/arch/riscv/boot/Makefile @@ -56,6 +56,9 @@ $(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) + $(obj)/loader.bin: $(obj)/loader FORCE $(call if_changed,objcopy) -- 2.37.2