aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-10 14:43:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-04-10 14:43:26 +0000
commitc1160880a7edef3e51acbc0a286b011b4c830d38 (patch)
treef2818279e1cc52e060c9126f457113e4dfecd73a /include
parent7ec64aae416128b5355fbf6515d48d152a27dfe3 (diff)
downloadmaster-187ad058-c1160880a7edef3e51acbc0a286b011b4c830d38.tar.gz
master-187ad058-c1160880a7edef3e51acbc0a286b011b4c830d38.tar.bz2
master-187ad058-c1160880a7edef3e51acbc0a286b011b4c830d38.zip
build: add support for packing version control downloads with xz
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40446 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/download.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/download.mk b/include/download.mk
index 1c3f23e94b..cc4ffb0cfb 100644
--- a/include/download.mk
+++ b/include/download.mk
@@ -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))