From patchwork Thu Aug 17 13:05:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Palsson X-Patchwork-Id: 802620 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gIlkMt57"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xY61H3Jj7z9t4V for ; Thu, 17 Aug 2017 23:06:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Bu3w1ShiwkN9rkse+pqf2jdKOvnGqSha+WA3aCq5Zgg=; b=gIlkMt57dRebZz Tzb6Kc3CZ1YsZN8QdeF/9R0S8OiHWkLVYthOHYvVPrRgElXXmPyxTkalV6mqGj619jxsVCScYWCxv akH5CTRKuAqw6Chy7lbZ5Opd161iwaX1CHHGYAr1pFsZiPe2oBiE4oeLKupzKUyv1h+Oux/VXoqcL zi/vx3mrGbGB70SvTFM4/L2M1Rtl0L7Lr2v219dkawo/zFS1OhBu3JbxeHLNsltXfOuFMrRAZYpMA Ya88XTjGn8SL83b/rAfEvXiValPMpZ85kve1l9IJA3aNJ0jDbnfWZo5dvlyn/e5QKlX8pi3s50g78 GIcB0WHq1HeRoz2+6syA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1diKVE-0000Fp-Td; Thu, 17 Aug 2017 13:06:24 +0000 Received: from palmtree.beeroclock.net ([178.79.160.154]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1diKV1-0007wP-Fs for lede-dev@lists.infradead.org; Thu, 17 Aug 2017 13:06:20 +0000 Received: from cuth.localdomain.localdomain (rtr1.dogg-hlidasmara14.sip.is [178.19.53.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: karlp) by palmtree.beeroclock.net (Postfix) with ESMTPSA id 9D7B710040; Thu, 17 Aug 2017 13:05:24 +0000 (UTC) From: Karl Palsson To: lede-dev@lists.infradead.org Date: Thu, 17 Aug 2017 13:05:10 +0000 Message-Id: <1502975110-3753-1-git-send-email-karlp@etactica.com> X-Mailer: git-send-email 2.4.11 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170817_060611_873913_DFA2D2B2 X-CRM114-Status: UNSURE ( 5.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=karlp%40etactica.com; ip=178.79.160.154; r=bombadil.infradead.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH] sdk: automatically use all CPU cores for xz X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Karl Palsson MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org xz has supported multithreaded compression since 5.2 in 2014. Enable it's automatic support for this via the "-T 0" flag. Previously: (xz -7e) real 3m13.631s Now: (xz -T 0 -7e) real 1m23.051s Signed-off-by: Karl Palsson --- target/sdk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/sdk/Makefile b/target/sdk/Makefile index ae65fd1c8f4a..07616a4d7aa2 100644 --- a/target/sdk/Makefile +++ b/target/sdk/Makefile @@ -140,7 +140,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.xz: clean find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf -make -C $(SDK_BUILD_DIR)/scripts/config clean (cd $(BUILD_DIR); \ - tar -I 'xz -7e' -cf $@ $(SDK_NAME); \ + tar -I 'xz -T 0 -7e' -cf $@ $(SDK_NAME); \ ) download: