aboutsummaryrefslogtreecommitdiffstats
path: root/target/toolchain
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2021-10-20 15:54:26 -1000
committerPaul Spooren <mail@aparcar.org>2021-10-21 08:25:38 -1000
commitf46a70a6882cc71c7c346e5ef0c348c91be876e5 (patch)
tree9a8d81f54a420805b60074c5d7ea2137274b18fd /target/toolchain
parente9672b1a8fa4714cbc35d5964caf704b2e571f35 (diff)
downloadupstream-f46a70a6882cc71c7c346e5ef0c348c91be876e5.tar.gz
upstream-f46a70a6882cc71c7c346e5ef0c348c91be876e5.tar.bz2
upstream-f46a70a6882cc71c7c346e5ef0c348c91be876e5.zip
toolchain: switch packaged toolchain to tar.xz
Currently the tar.bz2 while ImageBuilder and SDK switched to tar.xz. Unify it for faster compression since it will make use of multi-threading. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'target/toolchain')
-rw-r--r--target/toolchain/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/toolchain/Makefile b/target/toolchain/Makefile
index c3ba70db04..c33bccee69 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)") \
@@ -62,13 +62,14 @@ $(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 -I '$(STAGING_DIR_HOST)/bin/xz -7e -T$(if $(filter 1,$(NPROC)),2,0)' -cf $@ $(TOOLCHAIN_NAME) \
+ --mtime="$(shell date --date=@$(SOURCE_DATE_EPOCH))"; \
)
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