From: Masahiro Yamada <masahiroy@kernel.org>
To: "Paweł Jasiak" <pawel@jasiak.dev>
Cc: Michal Marek <michal.lkml@markovi.net>,
Nick Desaulniers <ndesaulniers@google.com>,
Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kbuild: Add make tarzst-pkg build option
Date: Tue, 12 Oct 2021 11:10:52 +0900 [thread overview]
Message-ID: <CAK7LNASH2EaZ=SyxQ-xhmUn_0GXuvOJDRU3e=LVvTLdYruM=Bw@mail.gmail.com> (raw)
In-Reply-To: <20211008113800.85155-1-pawel@jasiak.dev>
On Fri, Oct 8, 2021 at 8:48 PM Paweł Jasiak <pawel@jasiak.dev> wrote:
>
> Add tarzst-pkg and perf-tarzst-src-pkg targets to build zstd compressed
> tarballs.
>
> Signed-off-by: Paweł Jasiak <pawel@jasiak.dev>
Applied to linux-kbuild. Thanks.
> ---
> scripts/Makefile.package | 10 +++++++---
> scripts/package/buildtar | 4 ++++
> 2 files changed, 11 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/Makefile.package b/scripts/Makefile.package
> index b74c65284fb2..77b612183c08 100644
> --- a/scripts/Makefile.package
> +++ b/scripts/Makefile.package
> @@ -103,7 +103,7 @@ snap-pkg:
>
> # tarball targets
> # ---------------------------------------------------------------------------
> -tar-pkgs := dir-pkg tar-pkg targz-pkg tarbz2-pkg tarxz-pkg
> +tar-pkgs := dir-pkg tar-pkg targz-pkg tarbz2-pkg tarxz-pkg tarzst-pkg
> PHONY += $(tar-pkgs)
> $(tar-pkgs):
> $(MAKE) -f $(srctree)/Makefile
> @@ -130,10 +130,12 @@ $(if $(findstring tar-src,$@),, \
> $(if $(findstring bz2,$@),$(KBZIP2), \
> $(if $(findstring gz,$@),$(KGZIP), \
> $(if $(findstring xz,$@),$(XZ), \
> -$(error unknown target $@)))) \
> +$(if $(findstring zst,$@),$(ZSTD), \
> +$(error unknown target $@))))) \
> -f -9 $(perf-tar).tar)
>
> -perf-tar-pkgs := perf-tar-src-pkg perf-targz-src-pkg perf-tarbz2-src-pkg perf-tarxz-src-pkg
> +perf-tar-pkgs := perf-tar-src-pkg perf-targz-src-pkg perf-tarbz2-src-pkg \
> + perf-tarxz-src-pkg perf-tarzst-src-pkg
> PHONY += $(perf-tar-pkgs)
> $(perf-tar-pkgs):
> $(call cmd,perf_tar)
> @@ -153,9 +155,11 @@ help:
> @echo ' targz-pkg - Build the kernel as a gzip compressed tarball'
> @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball'
> @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball'
> + @echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball'
> @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball'
> @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball'
> @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball'
> @echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball'
> + @echo ' perf-tarzst-src-pkg - Build $(perf-tar).tar.zst source tarball'
>
> .PHONY: $(PHONY)
> diff --git a/scripts/package/buildtar b/scripts/package/buildtar
> index 221aa7df008d..cb54c7f1aa80 100755
> --- a/scripts/package/buildtar
> +++ b/scripts/package/buildtar
> @@ -39,6 +39,10 @@ case "${1}" in
> opts="-I ${XZ}"
> tarball=${tarball}.xz
> ;;
> + tarzst-pkg)
> + opts="-I ${ZSTD}"
> + tarball=${tarball}.zst
> + ;;
> *)
> echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
> exit 1
> --
> 2.33.0
>
--
Best Regards
Masahiro Yamada
prev parent reply other threads:[~2021-10-12 2:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-08 11:37 [PATCH] kbuild: Add make tarzst-pkg build option Paweł Jasiak
2021-10-12 2:10 ` Masahiro Yamada [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAK7LNASH2EaZ=SyxQ-xhmUn_0GXuvOJDRU3e=LVvTLdYruM=Bw@mail.gmail.com' \
--to=masahiroy@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=ndesaulniers@google.com \
--cc=pawel@jasiak.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).