Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6381515rdb; Mon, 1 Jan 2024 22:46:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IH66YtlSBAyeDqkkN8kJ3UJj+LVaPrHakcZvZ/yFbqzerutcxZKau98BGcye8y0l0PWvJbb X-Received: by 2002:a05:6870:b150:b0:203:c67e:9449 with SMTP id a16-20020a056870b15000b00203c67e9449mr20527444oal.19.1704177985103; Mon, 01 Jan 2024 22:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704177985; cv=none; d=google.com; s=arc-20160816; b=r4AdQ3/EmGa3rMZqwmdIlAzyasxI5JXTbjYazTm0fWKr0pelCSMAA60emFZVimIQrb coU+fd/2g35W00UNi2XacjLj9BH7XDceLRJuK9koMufnzpU2vQGUU0eyJpyX6V+cWOGD 13Mj6/x/ZEJc2ONcaFyQow3JKmyGIZ5Qlte8vC9WR8JgvJ220iNZudoerBDImnujULB+ qg6ebt1bdrjjLnHDnu6jocqLdeFiUksdaBC4zsNN5odU7Yk7Z56wK/TNQ6dQVjberzWk nV5u0HwpKZICtDvqkVrSzXmjT58erW9+se1n8F8xonowPw9RrtnzQNxX4S+sGHOMop0V Z7xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature; bh=43geQgvnCQ/KSFvdgKXjjP/NWZHxwU4TkMQb3+QPZZk=; fh=wTwem91qv/3nHFjNHF7ES7zhphtehSsXtWTPL2hqXTE=; b=Cf5MJRVPQT85k755aJdJoCmcG7f2Q0eEIt34xwmUu31DXfH+ddVDEtC9jS/mfLB47F zGldo/e8Ue3UmtCjw/IEo59xwSVGH2iluCdI5cuoCNh0uiLIXZ1uadqe0VhUgwSj9Fw+ MW0FZY2Fd+hl+fYss18JT5Kd218+XumSmho0NVDqRNmwMJ+VhbstIZ8fkqN5vVAaZc++ icepnQ1Av6cazMYxPqro79hAyNksU9XOg5px5geIGt0FNFIaM/SfwpZyuwWHORIJPhkK ds1JJQFd6mbdFSGgTbPo6n5unn72Z/vHV1n5eUCROI4ew5/mAZHv/H5n+kLB4apq11ME gxdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=dV7wv0RK; spf=pass (google.com: domain of linux-kernel+bounces-14087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p21-20020a635b15000000b005cd88a35d2fsi20142365pgb.786.2024.01.01.22.46.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 22:46:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=dV7wv0RK; spf=pass (google.com: domain of linux-kernel+bounces-14087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1A0A5B2174C for ; Tue, 2 Jan 2024 06:46:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 943CD2116; Tue, 2 Jan 2024 06:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=avm.de header.i=@avm.de header.b="dV7wv0RK" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.avm.de (mail.avm.de [212.42.244.94]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49CE120E0; Tue, 2 Jan 2024 06:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de Received: from mail-auth.avm.de (dovecot-mx-01.avm.de [212.42.244.71]) by mail.avm.de (Postfix) with ESMTPS; Tue, 2 Jan 2024 07:46:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=avm.de; s=mail; t=1704177963; bh=QQev2ciCK3hkHdj2Q1kdmr5ap2bmXVDZb4B/wvBpinY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dV7wv0RKeI5dcz/9uNblIsKQGpxGhoot7b17ZhxDg5fAKBmufxdjr8A1CdceDApGq 1pa4kwCaHuVdJlcr+NuGUT7ALkY65Vf3kL6em9vnuZh0HAK6Ct5lAdnYQAIPILhtew N6SHu46p0DfeDsDR6xiCGOpptCZQDE4ZDUBhKFZw= Received: from buildd.core.avm.de (buildd-sv-01.avm.de [172.16.0.225]) by mail-auth.avm.de (Postfix) with ESMTPA id E176E805A6; Tue, 2 Jan 2024 07:46:02 +0100 (CET) Received: by buildd.core.avm.de (Postfix, from userid 1000) id D6EB51830A6; Tue, 2 Jan 2024 07:46:02 +0100 (CET) Date: Tue, 2 Jan 2024 07:46:02 +0100 From: Nicolas Schier To: Kevin Martin Cc: joeyzerocrash@protonmail.com, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] kbuild: Enable decompression for use by EXTRA_FIRMWARE The build system can currently only compress files. This patch adds the functionality to decompress files. Decompression is needed for building firmware files into the kernel if those files are compressed on the filesystem. Compressed firmware files are in use by Gentoo, Fedora, Arch, and others. Message-ID: Mail-Followup-To: Kevin Martin , joeyzerocrash@protonmail.com, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <941a566eb114701685dc44f708f81891b3bd085b.1703042082.git.kevinmbecause@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <941a566eb114701685dc44f708f81891b3bd085b.1703042082.git.kevinmbecause@gmail.com> Organization: AVM GmbH X-purgate-ID: 149429::1704177963-8064B92C-C9B0DD7C/0/0 X-purgate-type: clean X-purgate-size: 1908 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean Hi Kevin, > Subject: Re: [PATCH 1/2] kbuild: Enable decompression for use by > EXTRA_FIRMWARE The build system can currently only compress files. This > patch adds the functionality to decompress files. Decompression is needed > for building firmware files into the kernel if those files are compressed on > the filesystem. Compressed firmware files are in use by Gentoo, Fedora, > Arch, and others. patch description is squashed into the subject. Did your tooling accidentially remove the empty line between? The patch itself looks good to me. Tested-by: Nicolas Schier Kind regards, Nicolas On Wed, Dec 20, 2023 at 05:22:50AM -0500, Kevin Martin wrote: > Signed-off-by: Kevin Martin > --- > scripts/Makefile.lib | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index 1a965fe68..d043be3dc 100644 > --- a/scripts/Makefile.lib > +++ b/scripts/Makefile.lib > @@ -523,6 +523,9 @@ quiet_cmd_xzkern_with_size = XZKERN $@ > quiet_cmd_xzmisc = XZMISC $@ > cmd_xzmisc = cat $(real-prereqs) | $(XZ) --check=crc32 --lzma2=dict=1MiB > $@ > > +quiet_cmd_xzdec = XZDEC $@ > + cmd_xzdec = cat $(real-prereqs) | $(XZ) --decompress > $@ > + > # ZSTD > # --------------------------------------------------------------------------- > # Appends the uncompressed size of the data using size_append. The .zst > @@ -548,6 +551,9 @@ quiet_cmd_zstd22 = ZSTD22 $@ > quiet_cmd_zstd22_with_size = ZSTD22 $@ > cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@ > > +quiet_cmd_zstddec = ZSTDDEC $@ > + cmd_zstddec = cat $(real-prereqs) | $(ZSTD) --decompress > $@ > + > # ASM offsets > # --------------------------------------------------------------------------- > > -- > 2.41.0 >