From patchwork Wed Oct 8 20:16:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 397717 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 737351400D2 for ; Thu, 9 Oct 2014 07:16:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A5B41333A0; Wed, 8 Oct 2014 20:16:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x6FosevmgLV0; Wed, 8 Oct 2014 20:16:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 288E633A9E; Wed, 8 Oct 2014 20:16:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9893F1C279D for ; Wed, 8 Oct 2014 20:16:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 937CD95C13 for ; Wed, 8 Oct 2014 20:16:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kkmV9j+36HC7 for ; Wed, 8 Oct 2014 20:16:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by hemlock.osuosl.org (Postfix) with ESMTP id 1EAEB95C0B for ; Wed, 8 Oct 2014 20:16:54 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id C24696FD; Wed, 8 Oct 2014 22:16:55 +0200 (CEST) Received: from localhost (AToulouse-657-1-1025-243.w90-45.abo.wanadoo.fr [90.45.71.243]) by mail.free-electrons.com (Postfix) with ESMTPSA id 731191BE; Wed, 8 Oct 2014 22:16:55 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Wed, 8 Oct 2014 22:16:50 +0200 Message-Id: <1412799410-19667-2-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1412799410-19667-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1412799410-19667-1-git-send-email-thomas.petazzoni@free-electrons.com> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH 2/2] docs/manual: add FAQ entry about speeding up the build process X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is a very frequently asked question, so let's add a FAQ entry about it, that we can progressively extend with more advices for our users. Signed-off-by: Thomas Petazzoni --- docs/manual/faq-troubleshooting.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/manual/faq-troubleshooting.txt b/docs/manual/faq-troubleshooting.txt index 693028c..9325ac0 100644 --- a/docs/manual/faq-troubleshooting.txt +++ b/docs/manual/faq-troubleshooting.txt @@ -205,3 +205,37 @@ On this matter, the Buildroot developers make this position statement: upgrades by upgrading the entire root filesystem image at once, the image deployed to the embedded system is guaranteed to really be the one that has been tested and validated. + +[[faq-speeding-up-build]] +=== How to speed-up the build process? + +Since Buildroot often involves doing full rebuilds of the entire +system that can be quite long, we provide below a number of tips to +help reduce the build time: + + * Use a pre-built external toolchain instead of the default Buildroot + internal toolchain. By using a pre-built Linaro toolchain (on ARM) + or a Sourcery CodeBench toolchain (for ARM, x86, x86-64, MIPS, + etc.), you will the build time of the toolchain at each build, + approximately 15 to 20 minutes. Note that using an external + toolchain temporarily does not prevent you to switch back to an + internal toolchain (that may provide a higher level of + customization) once the rest of your system is working; + + * Use the +ccache+ compiler cache (see: xref:ccache[]); + + * Learn about rebuilding only the few packages you actually care + about (see xref:rebuild-pkg[]), but beware that sometimes full + rebuilds are anyway necessary (see xref:full-rebuild[]); + + * Make sure you are not using a virtual machine for the Linux system + used to run Buildroot. Most of the virtual machine technologies are + known to cause a significant performance impact on I/O, which is + really important for building source code; + + * Make sure that you're using only local files: do not attempt to do + a build over NFS, or to keep the Buildroot download folder over + NFS. This significantly slows down the build; + + * Buy (or convince your boss to) new hardware. SSDs and lots of RAM + are key to speeding up the builds.