From 9f61ccd9e34fab1a1b90b846c1144e885401e70a Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Tue, 11 Oct 2016 13:51:44 +0200 Subject: [PATCH] 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 --- target/sdk/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.25.1