public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* Add make tarxz-pkg build option
@ 2011-01-28 22:21 Zdenek Kaspar
  2011-01-30 11:18 ` Zdenek Kaspar
  0 siblings, 1 reply; 3+ messages in thread
From: Zdenek Kaspar @ 2011-01-28 22:21 UTC (permalink / raw)
  To: linux-kbuild

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Hi! Most distributions use xz-utils already, is it possible to add
tarxz-pkg option ?

NB: If someone thinks xz -9 is a bit hardcore, it's not much different
like when bzip2 -9 was introduced into buildtar as an option imo..

TIA, Z.

[-- Attachment #2: add-tarxz-target.diff --]
[-- Type: text/plain, Size: 1174 bytes --]

Signed-off-by: Zdenek Kaspar <zkaspar82@gmail.com>

--- a/scripts/package/Makefile	2011-01-28 23:05:03.000000000 +0100
+++ b/scripts/package/Makefile	2011-01-28 23:07:10.000000000 +0100
@@ -142,7 +142,9 @@
 	@echo '  tar-pkg             - Build the kernel as an uncompressed tarball'
 	@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 '  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'
 
--- a/scripts/package/buildtar	2011-01-28 23:05:03.000000000 +0100
+++ b/scripts/package/buildtar	2011-01-28 23:08:20.000000000 +0100
@@ -35,6 +35,10 @@
 		compress="bzip2 -c9"
 		file_ext=".bz2"
 		;;
+	tarxz-pkg)
+		compress="xz -c9"
+		file_ext=".xz"
+		;;
 	*)
 		echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
 		exit 1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Add make tarxz-pkg build option
  2011-01-28 22:21 Add make tarxz-pkg build option Zdenek Kaspar
@ 2011-01-30 11:18 ` Zdenek Kaspar
  2011-02-24 15:57   ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Zdenek Kaspar @ 2011-01-30 11:18 UTC (permalink / raw)
  To: linux-kbuild

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

oops.. now with proper perf-tarxz-src-pkg.

Z.

[-- Attachment #2: add-tarxz-target-v2.diff --]
[-- Type: text/plain, Size: 1758 bytes --]

Signed-off-by: Zdenek Kaspar <zkaspar82@gmail.com>

--- linux-2.6-HEAD-1f0324c.orig/scripts/package/Makefile	2011-01-28 03:24:34.000000000 +0100
+++ linux-2.6-HEAD-1f0324c/scripts/package/Makefile	2011-01-30 11:58:38.875576503 +0100
@@ -127,7 +127,8 @@
 $(if $(findstring tar-src,$@),,                                     \
 $(if $(findstring bz2,$@),bzip2,                                    \
 $(if $(findstring gz,$@),gzip,                                      \
-$(error unknown target $@)))                                       \
+$(if $(findstring xz,$@),xz,                                        \
+$(error unknown target $@))))                                       \
 	-f -9 $(perf-tar).tar)
 
 perf-%pkg: FORCE
@@ -142,7 +143,9 @@
 	@echo '  tar-pkg             - Build the kernel as an uncompressed tarball'
 	@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 '  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'
 
--- linux-2.6-HEAD-1f0324c.orig/scripts/package/buildtar	2011-01-28 03:24:34.000000000 +0100
+++ linux-2.6-HEAD-1f0324c/scripts/package/buildtar	2011-01-30 11:43:57.728196352 +0100
@@ -35,6 +35,10 @@
 		compress="bzip2 -c9"
 		file_ext=".bz2"
 		;;
+	tarxz-pkg)
+		compress="xz -c9"
+		file_ext=".xz"
+		;;
 	*)
 		echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
 		exit 1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Add make tarxz-pkg build option
  2011-01-30 11:18 ` Zdenek Kaspar
@ 2011-02-24 15:57   ` Michal Marek
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Marek @ 2011-02-24 15:57 UTC (permalink / raw)
  To: Zdenek Kaspar; +Cc: linux-kbuild

On Sun, Jan 30, 2011 at 12:18:51PM +0100, Zdenek Kaspar wrote:
> oops.. now with proper perf-tarxz-src-pkg.
> 
> Z.
> Signed-off-by: Zdenek Kaspar <zkaspar82@gmail.com>
> 

Applied to kbuild-2.6.git#misc, thanks.

Michal

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-24 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28 22:21 Add make tarxz-pkg build option Zdenek Kaspar
2011-01-30 11:18 ` Zdenek Kaspar
2011-02-24 15:57   ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox