diff mbox

Add make tarxz-pkg build option

Message ID 4D45491B.80007@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zdenek Kaspar Jan. 30, 2011, 11:18 a.m. UTC
None
diff mbox

Patch

--- 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