From: Felix Fietkau Date: Thu, 10 Apr 2014 14:43:26 +0000 (+0000) Subject: build: add support for packing version control downloads with xz X-Git-Tag: reboot~7480 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1969d761fc2c0d88b2970c9447d36bc67e108a6;p=oweals%2Fopenwrt.git build: add support for packing version control downloads with xz Signed-off-by: Felix Fietkau SVN-Revision: 40446 --- 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))