[LEDE-DEV] [PATCH 1/2] target/toolchain: Switch to xz compression instead of bz2

Karl Palsson karlp at tweak.net.au
Tue Sep 5 03:39:50 PDT 2017


This is going to make builds _much_ slower :( 


Koen Vandeputte <koen.vandeputte at ncentric.com> wrote:
> Switch to xz compression instead of bz2
> This reduces the output size here from 41M to 29M
> 
> Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>
> ---
>  target/toolchain/Makefile | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/target/toolchain/Makefile
> b/target/toolchain/Makefile index ef2dc68..da1a6d2 100644
> --- a/target/toolchain/Makefile
> +++ b/target/toolchain/Makefile
> @@ -26,7 +26,7 @@ all: compile
>  
>  TOOLCHAIN_PREFIX:=$(TOOLCHAIN_BUILD_DIR)/toolchain-$(ARCH)$(ARCH_SUFFIX)_gcc-$(GCCV)$(DIR_SUFFIX)
>  
> -$(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2: clean
> +$(BIN_DIR)/$(TOOLCHAIN_NAME).tar.xz: clean
>  	mkdir -p $(TOOLCHAIN_BUILD_DIR)
>  	$(TAR) -cf - -C $(TOPDIR)/staging_dir/  \
>  	       $(foreach exclude,$(EXCLUDE_DIRS),--exclude="$(exclude)") \
> @@ -59,13 +59,13 @@ $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2: clean
>  	find $(TOOLCHAIN_BUILD_DIR) -name CVS | $(XARGS) rm -rf
>  	mkdir -p $(BIN_DIR)
>  	(cd $(BUILD_DIR); \
> -		tar cfj $@ $(TOOLCHAIN_NAME); \
> +		tar cfJ $@ $(TOOLCHAIN_NAME); \
>  	)
>  
>  download:
>  prepare:
> -compile: $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2
> +compile: $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.xz
>  install: compile
>  
>  clean:
> -	rm -rf $(TOOLCHAIN_BUILD_DIR) $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2
> +	rm -rf $(TOOLCHAIN_BUILD_DIR) $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.xz
> -- 
> 2.7.4
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.html
Type: application/pgp-signature
Size: 1161 bytes
Desc: OpenPGP Digital Signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20170905/c2ce9a1b/attachment.sig>


More information about the Lede-dev mailing list