From: Daniel Engberg Date: Tue, 11 Oct 2016 11:51:44 +0000 (+0200) Subject: target/sdk: Switch to xz compression instead of bz2 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9f61ccd9e34fab1a1b90b846c1144e885401e70a;p=openwrt%2Fstaging%2Fthess.git target/sdk: Switch to xz compression instead of bz2 Switch to xz compression instead of using bz2. This makes a considerable difference in size, ar71xx SDK from 60M to 35M. Signed-off-by: Daniel Engberg --- diff --git a/target/sdk/Makefile b/target/sdk/Makefile index 06889044ea..54c50ab760 100644 --- a/target/sdk/Makefile +++ b/target/sdk/Makefile @@ -65,7 +65,7 @@ KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$( all: compile -$(BIN_DIR)/$(SDK_NAME).tar.bz2: clean +$(BIN_DIR)/$(SDK_NAME).tar.xz: clean mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package $(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/ $(TAR) -cf - -C $(TOPDIR) \ @@ -124,13 +124,13 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf (cd $(BUILD_DIR); \ - tar cfj $@ $(SDK_NAME); \ + tar -I 'xz -7e' -cf $@ $(SDK_NAME); \ ) download: prepare: -compile: $(BIN_DIR)/$(SDK_NAME).tar.bz2 +compile: $(BIN_DIR)/$(SDK_NAME).tar.xz install: compile clean: - rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.bz2 + rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.xz