Add tarzst-pkg and perf-tarzst-src-pkg targets to build zstd compressed tarballs.
Showing the changes to scripts (2 of 2 files). Show all
Unified · Split
| @@ -103,7 +103,7 @@ snap-pkg: · 102 unmodified lines | |||
| 103 | 103 | ||
| 104 | # tarball targets | 104 | # tarball targets |
| 105 | # --------------------------------------------------------------------------- | 105 | # --------------------------------------------------------------------------- |
| 106 | tar-pkgs := dir-pkg tar-pkg targz-pkg tarbz2-pkg tarxz-pkg | 106 | tar-pkgs := dir-pkg tar-pkg targz-pkg tarbz2-pkg tarxz-pkg tarzst-pkg |
| 107 | PHONY += $(tar-pkgs) | 107 | PHONY += $(tar-pkgs) |
| 108 | $(tar-pkgs): | 108 | $(tar-pkgs): |
| 109 | $(MAKE) -f $(srctree)/Makefile | 109 | $(MAKE) -f $(srctree)/Makefile |
| @@ -130,10 +130,12 @@ $(if $(findstring tar-src,$@),, \ · 20 unmodified lines | |||
| 130 | $(if $(findstring bz2,$@),$(KBZIP2), \ | 130 | $(if $(findstring bz2,$@),$(KBZIP2), \ |
| 131 | $(if $(findstring gz,$@),$(KGZIP), \ | 131 | $(if $(findstring gz,$@),$(KGZIP), \ |
| 132 | $(if $(findstring xz,$@),$(XZ), \ | 132 | $(if $(findstring xz,$@),$(XZ), \ |
| 133 | $(error unknown target $@)))) \ | 133 | $(if $(findstring zst,$@),$(ZSTD), \ |
| 134 | $(error unknown target $@))))) \ | ||
| 134 | -f -9 $(perf-tar).tar) | 135 | -f -9 $(perf-tar).tar) |
| 135 | 136 | ||
| 136 | perf-tar-pkgs := perf-tar-src-pkg perf-targz-src-pkg perf-tarbz2-src-pkg perf-tarxz-src-pkg | 137 | perf-tar-pkgs := perf-tar-src-pkg perf-targz-src-pkg perf-tarbz2-src-pkg \ |
| 138 | perf-tarxz-src-pkg perf-tarzst-src-pkg | ||
| 137 | PHONY += $(perf-tar-pkgs) | 139 | PHONY += $(perf-tar-pkgs) |
| 138 | $(perf-tar-pkgs): | 140 | $(perf-tar-pkgs): |
| 139 | $(call cmd,perf_tar) | 141 | $(call cmd,perf_tar) |
| @@ -153,9 +155,11 @@ help: · 13 unmodified lines | |||
| 153 | @echo ' targz-pkg - Build the kernel as a gzip compressed tarball' | 155 | @echo ' targz-pkg - Build the kernel as a gzip compressed tarball' |
| 154 | @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball' | 156 | @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball' |
| 155 | @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball' | 157 | @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball' |
| 158 | @echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball' | ||
| 156 | @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball' | 159 | @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball' |
| 157 | @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball' | 160 | @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball' |
| 158 | @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball' | 161 | @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball' |
| 159 | @echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball' | 162 | @echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball' |
| 163 | @echo ' perf-tarzst-src-pkg - Build $(perf-tar).tar.zst source tarball' | ||
| 160 | 164 | ||
| 161 | .PHONY: $(PHONY) | 165 | .PHONY: $(PHONY) |
| @@ -39,6 +39,10 @@ case "${1}" in · 38 unmodified lines | |||
| 39 | opts="-I ${XZ}" | 39 | opts="-I ${XZ}" |
| 40 | tarball=${tarball}.xz | 40 | tarball=${tarball}.xz |
| 41 | ;; | 41 | ;; |
| 42 | tarzst-pkg) | ||
| 43 | opts="-I ${ZSTD}" | ||
| 44 | tarball=${tarball}.zst | ||
| 45 | ;; | ||
| 42 | *) | 46 | *) |
| 43 | echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2 | 47 | echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2 |
| 44 | exit 1 | 48 | exit 1 |