Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp559351lqh; Tue, 7 May 2024 07:27:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0boaPRbldA6uu3eUHHirikT0DBbLvLBbfq0NmCgUUTJJbZKYCnpf4Z0VoZdw8Y8/1yNc2GbubswVzkBeVa1y0rNX2eyTmPBd1PLGCIg== X-Google-Smtp-Source: AGHT+IHpzUtiRQBy9x5GxvbGcBLMkCRR/hdWqg8//orL9NQIVEZLsAq+5nojLUfgDk2GiMjjpcBZ X-Received: by 2002:a5d:5f90:0:b0:34d:9ec4:7b78 with SMTP id dr16-20020a5d5f90000000b0034d9ec47b78mr15455658wrb.56.1715092067332; Tue, 07 May 2024 07:27:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715092067; cv=pass; d=google.com; s=arc-20160816; b=OTi0jKxmy29PW+HBNFy0nFyrEB7aadOiIHpX+lHsKYBcVAeBDDrvKs8XZ1rOkYHWUl fmUF5m5ap8yQHsxtrs+FUCciG0U087Q1n3PcvV7uSHJxGQfnX5Bc8WB9uAPymsoXxk/y jY6YJDOvgksY8IGQ5sSt8Z2YoHToIqmRGElBn+/G5HnQJSvWRkNK3mSgvHHG4ZldT22A QGqbcczfPXSxUG0Cf8/cECGyyyDfVRRRngmU+znBohAa2ijrasc/zvCEI/tShcKQpS8B /l741PiBGqWuYitPisG6xx8w/fM7on/IR/syIx9L8ApiHSeJHbUmyRcKSX3/K+xTMZ+q 3/5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JNqrpqc21+cKfdnld6kiGbjyWGSw4W52xBgykV/FR58=; fh=3gjcFk8vKDrDAtJrV7mQGwgiKqFhvW7kZ/A1NKOGamY=; b=Z7ANCE3oX97iOjfZelIDhB0LOiBZWL+V45zHPHSKj3odKUgmDyH8fS1cHUAmGxBLP8 HLDDrby+ob4uLU4lWyjXMSuSgotUsyrd/3hR4pZU/ESe7JPFj973wOeffVHyZWG8lcAV Ml9fr1+0UP1I8yWN1M+4tGZYkVKISdQOV7Xhig5qsGTXeOAI3f55Tw6JouPPrdyL76Np kKPDo+rWGgGLm2Vz2mdpxeX/YPGF+YDQa60cRDYmeUdTA8q1T16aKkDMrRZuYDZqGeKr LKL8Ubi/mQVwEPfQ10/Yam7DdlVQnsKiVcivYSEX08717cBBbd+0f7nrB0bbnk3/01HC h2IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9Og7GVd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id go9-20020a1709070d8900b00a5995cc8339si5398905ejc.236.2024.05.07.07.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 07:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9Og7GVd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F33641F232DF for ; Tue, 7 May 2024 14:27:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDA2E15FCE1; Tue, 7 May 2024 14:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e9Og7GVd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E225115E7FB; Tue, 7 May 2024 14:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715092000; cv=none; b=tzDLvAxRRMvvra0S2MjRYR3LVpb6/hKjHVO/xkiMHk5VNB+5/jhFOnPVwpsodLhVtTdFSh7Nqxc6OdmB9TYhsjq1/jSWIsAUa0PWsIa9effswX7oHBFC6rp9f2AgV8VR9N0+2RAyLsXF7w9L7/Y7KCZJFr2fHyQPjTVEUY+cPvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715092000; c=relaxed/simple; bh=JNqrpqc21+cKfdnld6kiGbjyWGSw4W52xBgykV/FR58=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kwLJiU/5oSoNZpFmLnupPv8vhkYR3mpDsgY7UcJSR0/4YOfsAVYscSueaFcGMLufGzxYSAH9nbAm0N4tgRrV8P0WBDFwSgxLlNSRuLqRjoG/gywzhs3DG7hzRW6yKSdKJhueCRjAjiqI621dyZ9cCf4N5AWIxtN84I/KsGW8UjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e9Og7GVd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 787C5C4DDE4; Tue, 7 May 2024 14:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715091999; bh=JNqrpqc21+cKfdnld6kiGbjyWGSw4W52xBgykV/FR58=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e9Og7GVdJzIjOa1yiMRxlsx/5Fmrnu06uhpsdF8fWOQP7kDgR+ITE1t15w4U03+WV 5HNkAZpJ1P0dTLATnMCfNvChpu8wiGVrlxbs/BJV7beeiTvOFyidaXJDArpi6S5Kqo 4hQzPuNw733XDHeB5vUon+ad9/y45uDhb2lDniTJTvm6vycggA+BdjJwKHpLH3Blix yXFA3+zSA++gX1xd7vYG1OGi/rcJMXWQ3opLQdJux5MOyfcv+9rxBrZgcd/GWgKxtO qhO3ChTNc+MIS/cPNGYZSq8vCdeXUxo29kFW/O9Aj4LBhv08uoFQfUIpe4a5LKqFW9 NRUiB2TOXFLig== Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51ffff16400so4573427e87.2; Tue, 07 May 2024 07:26:39 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVyMoJoiri0BUuXL2dKEz35o8aeXjAnUxiRaDoURta4o80/zUJDWMpuOl0HAAY1UK3z+/SvsXSzV8AZXyjJn1a9i7wDXXKRGr6/wAlJTZHE3Sa2ZjqqksVyHqpliQE6aryKIfV5WsC1UYlA X-Gm-Message-State: AOJu0YwtiEIMWBHluSAr6Osccl/owAiQoSrkf044kRH3Svv+BRvU2lQw Bcm+JHz5lac0PNqiieTaBz/teXM/rsGWdD9/Fxbmf96yj6/SWl/6gi8gcDQl1h/YUmuF6/ejNDT GATnY6iH+wfvShmzgrf/+Ov1UdOQ= X-Received: by 2002:a19:c505:0:b0:51f:2f5a:54ae with SMTP id w5-20020a19c505000000b0051f2f5a54aemr10429525lfe.7.1715091998116; Tue, 07 May 2024 07:26:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240504193446.196886-1-emil.renner.berthing@canonical.com> <20240504193446.196886-2-emil.renner.berthing@canonical.com> In-Reply-To: <20240504193446.196886-2-emil.renner.berthing@canonical.com> From: Masahiro Yamada Date: Tue, 7 May 2024 23:26:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] riscv: make image compression configurable To: Emil Renner Berthing Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Nathan Chancellor , Nicolas Schier , Nick Terrell , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 5, 2024 at 4:34=E2=80=AFAM Emil Renner Berthing wrote: > > Previously the build process would always set KBUILD_IMAGE to the > uncompressed Image file (unless XIP_KERNEL or EFI_ZBOOT was enabled) and > unconditionally compress it into Image.gz. However there are already > build targets for Image.bz2, Image.lz4, Image.lzma, Image.lzo and > Image.zstd, so let's make use of those, make the compression method > configurable and set KBUILD_IMAGE accordingly so that targets like > 'make install' and 'make bindeb-pkg' will use the chosen image. > > Tested-by: Bj=C3=B6rn T=C3=B6pel > Signed-off-by: Emil Renner Berthing Reviewed-by: Masahiro Yamada --=20 Best Regards Masahiro Yamada