diff options
author | Daniel Engberg <diizzyy@users.noreply.github.com> | 2016-10-11 13:51:44 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-11-04 11:38:19 +0100 |
commit | 9f61ccd9e34fab1a1b90b846c1144e885401e70a (patch) | |
tree | 6f2b9a69f6343b7afc2be8e230c0fc16ccc78f08 /target | |
parent | 8f2c2f94cf91476283ac2becb50f6d05482cd95f (diff) | |
download | upstream-9f61ccd9e34fab1a1b90b846c1144e885401e70a.tar.gz upstream-9f61ccd9e34fab1a1b90b846c1144e885401e70a.tar.bz2 upstream-9f61ccd9e34fab1a1b90b846c1144e885401e70a.zip |
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 <daniel.engberg.lists@pyret.net>
Diffstat (limited to 'target')
-rw-r--r-- | target/sdk/Makefile | 8 |
1 files 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 |