Message ID | 20230407101629.1298051-3-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp189379vqo; Fri, 7 Apr 2023 03:27:49 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnUTk0d9DHv5jw8CLKtHz3ESVHsPtmhYxObRJy00aKs25iAXkKa3LO2+g0l5basfWw3h9T X-Received: by 2002:aa7:9aed:0:b0:622:c72a:d0e0 with SMTP id y13-20020aa79aed000000b00622c72ad0e0mr1903196pfp.13.1680863268790; Fri, 07 Apr 2023 03:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680863268; cv=none; d=google.com; s=arc-20160816; b=yKa1IRllpl66CVNYfg0w3Y8WEHxYLKb2cnPNR5ovCs5vQEXIHdR2Ww7D6bXKa+8Vtk s18evZD/Y29BjeKTy8OrCDjlMLfWocUXAQLLY0xnfK00JiaBOkQM/OhVJelBpPlopeS4 G9ZyumwDIPODDIVkwKW8uY1gEPcPkfO5BS4SFskHr1hAZ9zYyuFstGbsXlK7D31CNTr1 2Axb64OzWAc/cHGrQNXVySJm905oC++nSYFU8gzJxD4AGF7pXeM4YJHAKKc4gepCXecY iPaBs9jNCRgHzNlkjfBpOvJ5ygi1qFU/97UhXPlN6CYtopR1H5QlxS7rJgUuumUFpJct aLvA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H55vEgirTrCuFGi3LnUmvy3ogrmez8paGG1LvpcKY4o=; b=GHlUxpN8OyrgZoOWalFS4dT1Y3jSa+0gvQCt+NIgdc3ammVHWDh/UHJoxIvUB5E5qj EPJQ0pZjlS6UAhcrUJ0NOAXxKso7FYlyO6jH888+mB8Y1L97OMcYy6QpEtdhvgV81Y5Y eIaDQQncOC9GzWdKj7Mu88M/gZ3N84k/hXQ+/LzrB/Kzelm/bnzk9wUeaQpUWMnX4GE0 +/iTFVTl/Ch5D6hRlAsjqhhc83cWz8m42kXERLbfUYXJTw6espyHD8Vj5bAwvq2Bfoey hMf3mBHXHfW97eqPNyy6yzUVdue8a4Gz9KFoIUlbaC3fpf2uFPHAVub/FeSAcGTLiDIL fbTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lRrp1yO2; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 129-20020a630287000000b00502d6b2edd4si3293046pgc.804.2023.04.07.03.27.36; Fri, 07 Apr 2023 03:27:48 -0700 (PDT) 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=lRrp1yO2; 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 S240440AbjDGKQv (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 7 Apr 2023 06:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbjDGKQm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Apr 2023 06:16:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C565493EA; Fri, 7 Apr 2023 03:16:41 -0700 (PDT) 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 5AC5864F13; Fri, 7 Apr 2023 10:16:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1803FC4339E; Fri, 7 Apr 2023 10:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680862600; bh=CKzFfekVaBNvU9m5gXHN+n1Z/uYMoDtKwhblrUGGlII=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lRrp1yO24AlnRDuPIVq6WBifDugBAX4NldgVCmGVHQ0GVCrgYk2spE6wlSIBFVTE7 YEwgtU/VYoKcYI5wFQWHpq19+QqG7GsJ2yBV5ZyuNW1oZT5cJTyW0ab4Gz63kegS0W UQVm/2xbDcyno0ABSqUh87ju+087QkMj2IY5zbZN2pKf1EmqC4F5FGEf5T7wiNR/mr kEw3W4LlAv1hJ38+yTnuyzHI01w0mYMwd5HrarCL3fSujux+LC0M3SZPt70atR+u0H uFVXWUktlIKhzxb04dARYtFrwIN7vEUQ7wGmsME1D72RHtNwIkcVO0Ad5xZ40o3E6N euy3A8P6Blraw== From: Masahiro Yamada <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nick Terrell <terrelln@fb.com>, Nicolas Schier <nicolas@fjasle.eu> Subject: [PATCH 3/3] kbuild: do not create intermediate *.tar for tar packages Date: Fri, 7 Apr 2023 19:16:29 +0900 Message-Id: <20230407101629.1298051-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407101629.1298051-1-masahiroy@kernel.org> References: <20230407101629.1298051-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762512882919650482?= X-GMAIL-MSGID: =?utf-8?q?1762512882919650482?= |
Series |
[1/3] kbuild: merge cmd_archive_linux and cmd_archive_perf
|
|
Commit Message
Masahiro Yamada
April 7, 2023, 10:16 a.m. UTC
Commit 05e96e96a315 ("kbuild: use git-archive for source package
creation") split the compression as a separate step to factor out
the common build rules.
With the previous commit, we got back to the situation where
compressed source tarballs are created by a single rule.
There is no reason to keep the separate compression rules.
Generate the comressed tar packages directly.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/Makefile.package | 27 +++++++++------------------
1 file changed, 9 insertions(+), 18 deletions(-)
Comments
On Fri, Apr 07, 2023 at 07:16:29PM +0900, Masahiro Yamada wrote: > Commit 05e96e96a315 ("kbuild: use git-archive for source package > creation") split the compression as a separate step to factor out > the common build rules. > > With the previous commit, we got back to the situation where > compressed source tarballs are created by a single rule. > There is no reason to keep the separate compression rules. > > Generate the comressed tar packages directly. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> > --- > > scripts/Makefile.package | 27 +++++++++------------------ > 1 file changed, 9 insertions(+), 18 deletions(-) > > diff --git a/scripts/Makefile.package b/scripts/Makefile.package > index 7707975f729b..e0e18d7dfbd5 100644 > --- a/scripts/Makefile.package > +++ b/scripts/Makefile.package > @@ -2,7 +2,6 @@ > # Makefile for the different targets used to generate full packages of a kernel > > include $(srctree)/scripts/Kbuild.include > -include $(srctree)/scripts/Makefile.lib > > KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE)) > KBUILD_PKG_ROOTCMD ?="fakeroot -u" > @@ -27,21 +26,6 @@ fi ; \ > tar -I $(KGZIP) -c $(RCS_TAR_IGNORE) -f $(2).tar.gz \ > --transform 's:^:$(2)/:S' $(TAR_CONTENT) $(3) > > -# tarball compression > -# --------------------------------------------------------------------------- > - > -%.tar.gz: %.tar > - $(call cmd,gzip) > - > -%.tar.bz2: %.tar > - $(call cmd,bzip2) > - > -%.tar.xz: %.tar > - $(call cmd,xzmisc) > - > -%.tar.zst: %.tar > - $(call cmd,zstd) > - > # Git > # --------------------------------------------------------------------------- > > @@ -153,10 +137,17 @@ tar-install: FORCE > $(Q)$(MAKE) -f $(srctree)/Makefile > +$(Q)$(srctree)/scripts/package/buildtar $@ > > +compress-tar.gz = -I "$(KGZIP)" > +compress-tar.bz2 = -I "$(KBZIP2)" > +compress-tar.xz = -I "$(XZ)" > +compress-tar.zst = -I "$(ZSTD)" > + > quiet_cmd_tar = TAR $@ > - cmd_tar = cd $<; tar cf ../$@ --owner=root --group=root --sort=name * > + cmd_tar = cd $<; tar cf ../$@ $(compress-tar$(suffix $@)) --owner=root --group=root --sort=name * > + > +dir-tarballs := $(addprefix linux-$(KERNELRELEASE)-$(ARCH), .tar .tar.gz .tar.bz2 .tar.xz .tar.zst) > > -linux-$(KERNELRELEASE)-$(ARCH).tar: tar-install > +$(dir-tarballs): tar-install > $(call cmd,tar) > > PHONY += dir-pkg > -- > 2.37.2 >
On Fri, Apr 7, 2023 at 7:16 PM Masahiro Yamada <masahiroy@kernel.org> wrote: > > Commit 05e96e96a315 ("kbuild: use git-archive for source package > creation") split the compression as a separate step to factor out > the common build rules. > > With the previous commit, we got back to the situation where > compressed source tarballs are created by a single rule. > There is no reason to keep the separate compression rules. > > Generate the comressed tar packages directly. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > --- > > scripts/Makefile.package | 27 +++++++++------------------ > 1 file changed, 9 insertions(+), 18 deletions(-) > > diff --git a/scripts/Makefile.package b/scripts/Makefile.package > index 7707975f729b..e0e18d7dfbd5 100644 > --- a/scripts/Makefile.package > +++ b/scripts/Makefile.package > @@ -2,7 +2,6 @@ > # Makefile for the different targets used to generate full packages of a kernel > > include $(srctree)/scripts/Kbuild.include > -include $(srctree)/scripts/Makefile.lib I noticed a bug. I will keep this include directive. Otherwise, perf-tar*-src-pkg targets would be broken. 'cmd_copy' is still used.
On 07/04/2023 21:12, Nathan Chancellor wrote: > On Fri, Apr 07, 2023 at 07:16:29PM +0900, Masahiro Yamada wrote: >> Commit 05e96e96a315 ("kbuild: use git-archive for source package >> creation") split the compression as a separate step to factor out >> the common build rules. >> >> With the previous commit, we got back to the situation where >> compressed source tarballs are created by a single rule. >> There is no reason to keep the separate compression rules. >> >> Generate the comressed tar packages directly. >> >> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > > Reviewed-by: Nathan Chancellor <nathan@kernel.org> > Hi, We started seeing the failure below in rc7. We narrowed it down to your patches: 3c65a2704cdd kbuild: do not create intermediate *.tar for tar packages f8d94++c4e403c kbuild: do not create intermediate *.tar for source tarballs f6d8283549bc kbuild: merge cmd_archive_linux and cmd_archive_perf aa7d233f45b4 kbuild: give up untracked files for source package builds Can you please take a look and advise? Regards, Tariq [root@c-237-113-200-203 linux]# make -j24 rpm-pkg sh ./scripts/package/mkspec >./kernel.spec rpmbuild --target x86_64-linux -bs kernel.spec \ --define='_smp_mflags %{nil}' --define='_sourcedir rpmbuild/SOURCES' --define='_srcrpmdir .' Building target platforms: x86_64-linux Building for target x86_64-linux Wrote: ./kernel-6.3.0_rc7+-1.src.rpm rpmbuild --target x86_64-linux -rb kernel-6.3.0_rc7+-1.src.rpm \ --define='_smp_mflags %{nil}' Installing kernel-6.3.0_rc7+-1.src.rpm Building target platforms: x86_64-linux Building for target x86_64-linux Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yDFEga + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf linux + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/linux.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd linux /var/tmp/rpm-tmp.yDFEga: line 37: cd: linux: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.yDFEga (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.yDFEga (%prep) make[1]: *** [scripts/Makefile.package:69: rpm-pkg] Error 1 make: *** [Makefile:1656: rpm-pkg] Error 2
On Thu, Apr 20, 2023 at 11:54:34AM +0300, Tariq Toukan wrote: > > > On 07/04/2023 21:12, Nathan Chancellor wrote: > > On Fri, Apr 07, 2023 at 07:16:29PM +0900, Masahiro Yamada wrote: > > > Commit 05e96e96a315 ("kbuild: use git-archive for source package > > > creation") split the compression as a separate step to factor out > > > the common build rules. > > > > > > With the previous commit, we got back to the situation where > > > compressed source tarballs are created by a single rule. > > > There is no reason to keep the separate compression rules. > > > > > > Generate the comressed tar packages directly. > > > > > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > > > > Reviewed-by: Nathan Chancellor <nathan@kernel.org> > > > > Hi, > > We started seeing the failure below in rc7. > We narrowed it down to your patches: > > 3c65a2704cdd kbuild: do not create intermediate *.tar for tar packages > f8d94++c4e403c kbuild: do not create intermediate *.tar for source tarballs > f6d8283549bc kbuild: merge cmd_archive_linux and cmd_archive_perf > aa7d233f45b4 kbuild: give up untracked files for source package builds > > Can you please take a look and advise? > > Regards, > Tariq > > [root@c-237-113-200-203 linux]# make -j24 rpm-pkg > sh ./scripts/package/mkspec >./kernel.spec > rpmbuild --target x86_64-linux -bs kernel.spec \ > --define='_smp_mflags %{nil}' --define='_sourcedir rpmbuild/SOURCES' > --define='_srcrpmdir .' > Building target platforms: x86_64-linux > Building for target x86_64-linux > Wrote: ./kernel-6.3.0_rc7+-1.src.rpm > rpmbuild --target x86_64-linux -rb kernel-6.3.0_rc7+-1.src.rpm \ > --define='_smp_mflags %{nil}' > Installing kernel-6.3.0_rc7+-1.src.rpm > Building target platforms: x86_64-linux > Building for target x86_64-linux > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yDFEga > + umask 022 > + cd /root/rpmbuild/BUILD > + cd /root/rpmbuild/BUILD > + rm -rf linux > + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/linux.tar.gz > + /usr/bin/tar -xof - > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd linux > /var/tmp/rpm-tmp.yDFEga: line 37: cd: linux: No such file or directory > error: Bad exit status from /var/tmp/rpm-tmp.yDFEga (%prep) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.yDFEga (%prep) > make[1]: *** [scripts/Makefile.package:69: rpm-pkg] Error 1 > make: *** [Makefile:1656: rpm-pkg] Error 2 Thanks for the report. It should/will be fixed with https://lore.kernel.org/linux-kbuild/20230419170424.78688-1-masahiroy@kernel.org/ Kind regards, Nicolas
On Thu, Apr 20, 2023 at 11:06:06AM +0200, Nicolas Schier wrote: > On Thu, Apr 20, 2023 at 11:54:34AM +0300, Tariq Toukan wrote: > > > > > > On 07/04/2023 21:12, Nathan Chancellor wrote: > > > On Fri, Apr 07, 2023 at 07:16:29PM +0900, Masahiro Yamada wrote: > > > > Commit 05e96e96a315 ("kbuild: use git-archive for source package > > > > creation") split the compression as a separate step to factor out > > > > the common build rules. > > > > > > > > With the previous commit, we got back to the situation where > > > > compressed source tarballs are created by a single rule. > > > > There is no reason to keep the separate compression rules. > > > > > > > > Generate the comressed tar packages directly. > > > > > > > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > > > > > > Reviewed-by: Nathan Chancellor <nathan@kernel.org> > > > > > > > Hi, > > > > We started seeing the failure below in rc7. > > We narrowed it down to your patches: > > > > 3c65a2704cdd kbuild: do not create intermediate *.tar for tar packages > > f8d94c4e403c kbuild: do not create intermediate *.tar for source tarballs > > f6d8283549bc kbuild: merge cmd_archive_linux and cmd_archive_perf > > aa7d233f45b4 kbuild: give up untracked files for source package builds <...> > > RPM build errors: > > Bad exit status from /var/tmp/rpm-tmp.yDFEga (%prep) > > make[1]: *** [scripts/Makefile.package:69: rpm-pkg] Error 1 > > make: *** [Makefile:1656: rpm-pkg] Error 2 > > Thanks for the report. It should/will be fixed with > https://lore.kernel.org/linux-kbuild/20230419170424.78688-1-masahiroy@kernel.org/ Thanks for the prompt response. I have a general question, why commits listed by Tariq were not delayed to merge window? Only one of them has Fixes line, but even that patch doesn't talk about error, but code refactoring "To simplify the code, ...". Thanks > > Kind regards, > Nicolas
On Thu, Apr 20, 2023 at 6:19 PM Leon Romanovsky <leon@kernel.org> wrote: > > On Thu, Apr 20, 2023 at 11:06:06AM +0200, Nicolas Schier wrote: > > On Thu, Apr 20, 2023 at 11:54:34AM +0300, Tariq Toukan wrote: > > > > > > > > > On 07/04/2023 21:12, Nathan Chancellor wrote: > > > > On Fri, Apr 07, 2023 at 07:16:29PM +0900, Masahiro Yamada wrote: > > > > > Commit 05e96e96a315 ("kbuild: use git-archive for source package > > > > > creation") split the compression as a separate step to factor out > > > > > the common build rules. > > > > > > > > > > With the previous commit, we got back to the situation where > > > > > compressed source tarballs are created by a single rule. > > > > > There is no reason to keep the separate compression rules. > > > > > > > > > > Generate the comressed tar packages directly. > > > > > > > > > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > > > > > > > > Reviewed-by: Nathan Chancellor <nathan@kernel.org> > > > > > > > > > > Hi, > > > > > > We started seeing the failure below in rc7. > > > We narrowed it down to your patches: > > > > > > 3c65a2704cdd kbuild: do not create intermediate *.tar for tar packages > > > f8d94c4e403c kbuild: do not create intermediate *.tar for source tarballs > > > f6d8283549bc kbuild: merge cmd_archive_linux and cmd_archive_perf Strictly speaking, these are not bugs, but gave a bad user experience. (build slowness and extra disk space consumed). I got a complaint about the intermediate *.tar file. https://lore.kernel.org/linux-kbuild/20230406152540.8207-1-youling257@gmail.com/ I noticed fixing it was not difficult, so I merged. (but, apparently I introduced another regression, sorry about that) > > > aa7d233f45b4 kbuild: give up untracked files for source package builds > > <...> > > > > RPM build errors: > > > Bad exit status from /var/tmp/rpm-tmp.yDFEga (%prep) > > > make[1]: *** [scripts/Makefile.package:69: rpm-pkg] Error 1 > > > make: *** [Makefile:1656: rpm-pkg] Error 2 > > > > Thanks for the report. It should/will be fixed with > > https://lore.kernel.org/linux-kbuild/20230419170424.78688-1-masahiroy@kernel.org/ > > Thanks for the prompt response. > > I have a general question, why commits listed by Tariq were not delayed to merge window? > > Only one of them has Fixes line, but even that patch doesn't talk about > error, but code refactoring "To simplify the code, ...". > > Thanks > > > > > Kind regards, > > Nicolas
diff --git a/scripts/Makefile.package b/scripts/Makefile.package index 7707975f729b..e0e18d7dfbd5 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -2,7 +2,6 @@ # Makefile for the different targets used to generate full packages of a kernel include $(srctree)/scripts/Kbuild.include -include $(srctree)/scripts/Makefile.lib KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE)) KBUILD_PKG_ROOTCMD ?="fakeroot -u" @@ -27,21 +26,6 @@ fi ; \ tar -I $(KGZIP) -c $(RCS_TAR_IGNORE) -f $(2).tar.gz \ --transform 's:^:$(2)/:S' $(TAR_CONTENT) $(3) -# tarball compression -# --------------------------------------------------------------------------- - -%.tar.gz: %.tar - $(call cmd,gzip) - -%.tar.bz2: %.tar - $(call cmd,bzip2) - -%.tar.xz: %.tar - $(call cmd,xzmisc) - -%.tar.zst: %.tar - $(call cmd,zstd) - # Git # --------------------------------------------------------------------------- @@ -153,10 +137,17 @@ tar-install: FORCE $(Q)$(MAKE) -f $(srctree)/Makefile +$(Q)$(srctree)/scripts/package/buildtar $@ +compress-tar.gz = -I "$(KGZIP)" +compress-tar.bz2 = -I "$(KBZIP2)" +compress-tar.xz = -I "$(XZ)" +compress-tar.zst = -I "$(ZSTD)" + quiet_cmd_tar = TAR $@ - cmd_tar = cd $<; tar cf ../$@ --owner=root --group=root --sort=name * + cmd_tar = cd $<; tar cf ../$@ $(compress-tar$(suffix $@)) --owner=root --group=root --sort=name * + +dir-tarballs := $(addprefix linux-$(KERNELRELEASE)-$(ARCH), .tar .tar.gz .tar.bz2 .tar.xz .tar.zst) -linux-$(KERNELRELEASE)-$(ARCH).tar: tar-install +$(dir-tarballs): tar-install $(call cmd,tar) PHONY += dir-pkg