build: add support for packing version control downloads with xz
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40446
This commit is contained in:
parent
25a1dcb37b
commit
d1969d761f
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ endef
|
||||||
# code for creating tarballs from cvs/svn/git/bzr/hg/darcs checkouts - useful for mirror support
|
# code for creating tarballs from cvs/svn/git/bzr/hg/darcs checkouts - useful for mirror support
|
||||||
dl_pack/bz2=$(TAR) cjf $(1) $(2)
|
dl_pack/bz2=$(TAR) cjf $(1) $(2)
|
||||||
dl_pack/gz=$(TAR) czf $(1) $(2)
|
dl_pack/gz=$(TAR) czf $(1) $(2)
|
||||||
|
dl_pack/xz=$(TAR) c $(2) | xz -zc > $(1)
|
||||||
dl_pack/unknown=echo "ERROR: Unknown pack format for file $(1)"; false
|
dl_pack/unknown=echo "ERROR: Unknown pack format for file $(1)"; false
|
||||||
define dl_pack
|
define dl_pack
|
||||||
$(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown))
|
$(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown))
|
||||||
|
|
Loading…
Reference in a new issue