Skip to content

Commit 53a94c7

Browse files
committed
Merge branch 'packaging' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'packaging' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: kbuild: Add make tarxz-pkg build option
2 parents 444699c + 9a17f40 commit 53a94c7

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎scripts/package/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ rm -r $(perf-tar); \
127127
$(if $(findstring tar-src,$@),, \
128128
$(if $(findstring bz2,$@),bzip2, \
129129
$(if $(findstring gz,$@),gzip, \
130-
$(error unknown target $@))) \
130+
$(if $(findstring xz,$@),xz, \
131+
$(error unknown target $@)))) \
131132
-f -9 $(perf-tar).tar)
132133

133134
perf-%pkg: FORCE
@@ -142,7 +143,9 @@ help: FORCE
142143
@echo ' tar-pkg - Build the kernel as an uncompressed tarball'
143144
@echo ' targz-pkg - Build the kernel as a gzip compressed tarball'
144145
@echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball'
146+
@echo ' tarxz-pkg - Build the kernel as a xz compressed tarball'
145147
@echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball'
146148
@echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball'
147149
@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'
148151

‎scripts/package/buildtar‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ case "${1}" in
3535
compress="bzip2 -c9"
3636
file_ext=".bz2"
3737
;;
38+
tarxz-pkg)
39+
compress="xz -c9"
40+
file_ext=".xz"
41+
;;
3842
*)
3943
echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
4044
exit 1

0 commit comments

Comments
 (0)