[source] target/sdk: Switch to xz compression instead of bz2

LEDE Commits lede-commits at lists.infradead.org
Fri Nov 4 03:38:29 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/9f61ccd9e34fab1a1b90b846c1144e885401e70a

commit 9f61ccd9e34fab1a1b90b846c1144e885401e70a
Author: Daniel Engberg <diizzyy at users.noreply.github.com>
AuthorDate: Tue Oct 11 13:51:44 2016 +0200

    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 at pyret.net>
---
 target/sdk/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 0688904..54c50ab 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



More information about the lede-commits mailing list