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 | 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 | 107 | PHONY += $(tar-pkgs) |
| 108 | 108 | $(tar-pkgs): |
| 109 | 109 | $(MAKE) -f $(srctree)/Makefile |
| @@ -130,10 +130,12 @@ $(if $(findstring tar-src,$@),, \ · 20 unmodified lines | ||
| 130 | 130 | $(if $(findstring bz2,$@),$(KBZIP2), \ |
| 131 | 131 | $(if $(findstring gz,$@),$(KGZIP), \ |
| 132 | 132 | $(if $(findstring xz,$@),$(XZ), \ |
| 133 | −$(error unknown target $@)))) \ | |
| 133 | +$(if $(findstring zst,$@),$(ZSTD), \ | |
| 134 | +$(error unknown target $@))))) \ | |
| 134 | 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 | 139 | PHONY += $(perf-tar-pkgs) |
| 138 | 140 | $(perf-tar-pkgs): |
| 139 | 141 | $(call cmd,perf_tar) |
| @@ -153,9 +155,11 @@ help: · 13 unmodified lines | ||
| 153 | 155 | @echo ' targz-pkg - Build the kernel as a gzip compressed tarball' |
| 154 | 156 | @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball' |
| 155 | 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 | 159 | @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball' |
| 157 | 160 | @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball' |
| 158 | 161 | @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball' |
| 159 | 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 | 165 | .PHONY: $(PHONY) |
| @@ -39,6 +39,10 @@ case "${1}" in · 38 unmodified lines | ||
| 39 | 39 | opts="-I ${XZ}" |
| 40 | 40 | tarball=${tarball}.xz |
| 41 | 41 | ;; |
| 42 | + tarzst-pkg) | |
| 43 | + opts="-I ${ZSTD}" | |
| 44 | + tarball=${tarball}.zst | |
| 45 | + ;; | |
| 42 | 46 | *) |
| 43 | 47 | echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2 |
| 44 | 48 | exit 1 |