Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7536916rwb; Wed, 23 Nov 2022 07:41:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CFhigRH6NlD8IrTQMkuYZCxsdg9JoSRffVyQ0SC4cdIk3uMD+Ckkh+4wY4mgHl2rNYgdy X-Received: by 2002:aa7:982f:0:b0:562:4b3b:4e75 with SMTP id q15-20020aa7982f000000b005624b3b4e75mr14657603pfl.2.1669218085966; Wed, 23 Nov 2022 07:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669218085; cv=none; d=google.com; s=arc-20160816; b=zFLbCoKpWc5lwnttbD5cBEsa8gU7ZiIMLe6wHFux2u50/AVPAoX9Ms51umBT1qBxlj JeCeSBZIU0mI4423syUbtybkcU71MOVo7PHMxTEvJLtN41jXHNHnlWp1RMwbmH1q97RO Gvj36aZtf/09fZEjr+iAYA40UftwG96N4WGall8JBhQdQvsZ14U5ts5bzPcZPLYLreac xcDW9XR0Mh5BW/DEqX3WJqst8xOvXF5QaCwqI6WVuM5Ip1VmZA1uUPdZF/OXj3NVpo4f yEXzD0idt3ElxUfwb74FUtqjhADBtm+VnYUZOEqGDM/XOdXrwcNR1An4YPr4dosJQM5g Zc0w== 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=fdoBgFs/IejBRDm2YSQqDaoah1Gm3SS4dgsQ1GEMM70=; b=PbsVNRst4u5RYD1fw9HEibWqq/va18uI52xHmuENFf66tq/h5ql19a+hslXAIoVNOc CSIAtNwcG4DxqMEbVQdrr1VUx9GvmozQqrHTlhUH9u2Q3LYS7y067ZUstgArzqY8Or6J 13ql7l8vu5J+S0jcbUhfHPIDMVvjp59wnZr8CD/gVKMz4o6nRCfS/R/c2flHRcrnmjvI 3KgHGMwRAbfuE2jF3b/i7kEnx7UCQSXYOpsGvxyUDCzbXwg490ULm2uQ86jozrAOgLEs 7uziCtJVh2NH6KZHf1rtRX3qfMI5xMqQCZ0bGcUJRrOdwv6VI0NFDN9rAx7raqxnThv6 kCTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g3SwGTEC; 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 z184-20020a6333c1000000b004639c679346si16434312pgz.837.2022.11.23.07.41.14; Wed, 23 Nov 2022 07:41:25 -0800 (PST) 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=g3SwGTEC; 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 S238423AbiKWPM5 (ORCPT + 89 others); Wed, 23 Nov 2022 10:12:57 -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 X-Spam-Status: No, score=-7.1 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 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/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