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:
Felix Fietkau 2014-04-10 14:43:26 +00:00
parent 25a1dcb37b
commit d1969d761f

View File

@ -31,6 +31,7 @@ endef
# 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/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
define dl_pack
$(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown))