[LEDE-DEV,2/2] target/toolchain: use proper tar macro and separate xz tool

Message ID 1504538663-32751-2-git-send-email-koen.vandeputte@ncentric.com
State New
Headers show
Series
  • [LEDE-DEV,1/2] target/toolchain: Switch to xz compression instead of bz2
Related show

Commit Message

Koen Vandeputte Sept. 4, 2017, 3:24 p.m.
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
---
 target/toolchain/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target/toolchain/Makefile b/target/toolchain/Makefile
index da1a6d2..a20410b 100644
--- a/target/toolchain/Makefile
+++ b/target/toolchain/Makefile
@@ -59,7 +59,7 @@  $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.xz: clean
 	find $(TOOLCHAIN_BUILD_DIR) -name CVS | $(XARGS) rm -rf
 	mkdir -p $(BIN_DIR)
 	(cd $(BUILD_DIR); \
-		tar cfJ $@ $(TOOLCHAIN_NAME); \
+		$(TAR) -I 'xz -7e' -cf $@ $(TOOLCHAIN_NAME); \
 	)
 
 download: