Commit 9a17f40048be305749f53278c857bf52939081f3

Authored by Zdenek Kaspar
Committed by Michal Marek
1 parent 2d8ad87195

kbuild: Add make tarxz-pkg build option

Signed-off-by: Zdenek Kaspar <zkaspar82@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 2 changed files with 8 additions and 1 deletions Side-by-side Diff

scripts/package/Makefile
... ... @@ -127,7 +127,8 @@
127 127 $(if $(findstring tar-src,$@),, \
128 128 $(if $(findstring bz2,$@),bzip2, \
129 129 $(if $(findstring gz,$@),gzip, \
130   -$(error unknown target $@))) \
  130 +$(if $(findstring xz,$@),xz, \
  131 +$(error unknown target $@)))) \
131 132 -f -9 $(perf-tar).tar)
132 133  
133 134 perf-%pkg: FORCE
134 135  
... ... @@ -142,7 +143,9 @@
142 143 @echo ' tar-pkg - Build the kernel as an uncompressed tarball'
143 144 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball'
144 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 147 @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball'
146 148 @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball'
147 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'
scripts/package/buildtar
... ... @@ -35,6 +35,10 @@
35 35 compress="bzip2 -c9"
36 36 file_ext=".bz2"
37 37 ;;
  38 + tarxz-pkg)
  39 + compress="xz -c9"
  40 + file_ext=".xz"
  41 + ;;
38 42 *)
39 43 echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
40 44 exit 1