aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorZdenek Kaspar <zkaspar82@gmail.com>2011-01-30 06:18:51 -0500
committerMichal Marek <mmarek@suse.cz>2011-03-09 10:18:06 -0500
commit9a17f40048be305749f53278c857bf52939081f3 (patch)
tree4829c35b68d35293835ed7623b968e17f049c34e /scripts/package
parent2d8ad8719591fa803b0d589ed057fa46f49b7155 (diff)
kbuild: Add make tarxz-pkg build option
Signed-off-by: Zdenek Kaspar <zkaspar82@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/package')
-rw-r--r--scripts/package/Makefile5
-rw-r--r--scripts/package/buildtar4
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index d0b931b994fc..a834b935f536 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -127,7 +127,8 @@ rm -r $(perf-tar); \
127$(if $(findstring tar-src,$@),, \ 127$(if $(findstring tar-src,$@),, \
128$(if $(findstring bz2,$@),bzip2, \ 128$(if $(findstring bz2,$@),bzip2, \
129$(if $(findstring gz,$@),gzip, \ 129$(if $(findstring gz,$@),gzip, \
130$(error unknown target $@))) \ 130$(if $(findstring xz,$@),xz, \
131$(error unknown target $@)))) \
131 -f -9 $(perf-tar).tar) 132 -f -9 $(perf-tar).tar)
132 133
133perf-%pkg: FORCE 134perf-%pkg: FORCE
@@ -142,7 +143,9 @@ help: FORCE
142 @echo ' tar-pkg - Build the kernel as an uncompressed tarball' 143 @echo ' tar-pkg - Build the kernel as an uncompressed tarball'
143 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball' 144 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball'
144 @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball' 145 @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball'
146 @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball'
145 @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball' 147 @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball'
146 @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball' 148 @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball'
147 @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball' 149 @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball'
150 @echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball'
148 151
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 51b2aa0acb82..83c9c04102f2 100644
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -35,6 +35,10 @@ case "${1}" in
35 compress="bzip2 -c9" 35 compress="bzip2 -c9"
36 file_ext=".bz2" 36 file_ext=".bz2"
37 ;; 37 ;;
38 tarxz-pkg)
39 compress="xz -c9"
40 file_ext=".xz"
41 ;;
38 *) 42 *)
39 echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2 43 echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
40 exit 1 44 exit 1