From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7024486976540639232 X-Received: by 2002:a2e:4e1a:: with SMTP id c26mr29381793ljb.27.1635761390238; Mon, 01 Nov 2021 03:09:50 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bf27:: with SMTP id c39ls1476544ljr.1.gmail; Mon, 01 Nov 2021 03:09:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiZamkj/cFVMWy2kRbY7YoeAup/ehlK4xJDDnDPMVflSvnupfzhCUH+2BhottU4nLQWHDg X-Received: by 2002:a05:651c:1799:: with SMTP id bn25mr30260356ljb.516.1635761388942; Mon, 01 Nov 2021 03:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635761388; cv=none; d=google.com; s=arc-20160816; b=BEOTTmPO8h+kyWTLWVrPBl6se9NSgC2t6ft2LaSMAU2L3bZCjs1I3kgoQkHYRLdg+T 6JkOJNJ2aLA597JFMSknLsVviAzsr1M8iHVTqt7QMueRDcr1Jp1fSY853WHUVr71Ptlp yDrGQLLoUK7YlIo65ke9Xq7GHAFKSHX4TdSjj5HkSUtL2vtAdKV4EBI9X/PHWHZT34cK yZJGpx96l3ekKhEw92TjQ8JULlnQvhQVLGMgN5Ffzj04F6KTLCGlIVisfjfWvhWVhi2a mWLzH1eKjUDALVlohembd9KUjQOrRNCYRtnDS4x2rnBKO0AH1SMGtrTYybH98L3G6WyE 9VVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=LX7eCjY5YHxGS+O7a+NCuxo/a3MESMx3YDbdHpMIGqk=; b=xDElOvr+WN499Grl4SlVufuws3+wuwB/KlcOKMgaAMfVeoSB7hKDroU88DAljA/QzJ yj6m6t/rC9x2dP/r/TDikR5w9eIhMQXRxgJuMKOLh6F0IHL3aSqsgzI6mfE0FANGv0OS b08Ww63OVJZaUiJHkVhB7p/mQ4EONNvwuIzMsn+JQVpCf2pafNV9jBybhd3wKzS4VS3O yqMSOupy6hIvvuaT6MtbNvVxtIJcA6YV/S4hhYYNU9lY+ZhSjh6a3HtAtSbXUsD7pnN4 mXk3urolMY1CPnSB9UtloPgfDJDeTjb2oFov+t5mdtX8RxcpD9RdW/3yluj4WmZHlC4k wOhw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id z12si1020919lfd.12.2021.11.01.03.09.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Nov 2021 03:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1A1A9fgL004135 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 1 Nov 2021 11:09:46 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 2/3] doc: Add section about ccache usage Date: Mon, 1 Nov 2021 11:09:40 +0100 Message-Id: <20211101100941.23823-3-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211101100941.23823-1-ubely@ilbers.de> References: <20211101100941.23823-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: Cu6HZqOAg+WF Signed-off-by: Uladzimir Bely --- doc/user_manual.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/user_manual.md b/doc/user_manual.md index 01fe7019..535d456a 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -18,6 +18,7 @@ Copyright (C) 2016-2019, ilbers GmbH - [Add a New Image Type](#add-a-new-image-type) - [Add a Custom Application](#add-a-custom-application) - [Enabling Cross-compilation](#isar-cross-compilation) + - [Using ccache for custom packages](#using-ccache-for-custom-packages) - [Create an ISAR SDK root filesystem](#create-an-isar-sdk-root-filesystem) - [Create a containerized Isar SDK root filesystem](#create-a-containerized-isar-sdk-root-filesystem) - [Creation of local apt repo caching upstream Debian packages](#creation-of-local-apt-repo-caching-upstream-debian-packages) @@ -912,6 +913,22 @@ package build. To invoke it, just call `bitbake mc:${MACHINE}-${DISTRO}: -c devshell`. +## Using ccache for custom packages + +While base system is created from binary Debian repositories, some user +packages are built from sources. It's possible to reduce build time +for such packages by enabling ccache. + +To enable global ccache functionality, `USE_CCACHE = "1"` can be added +to `local.conf`. If some package requires ccache to be always disabled, +`USE_CCACHE = "0"` can be used in the recipe despite global setup. + +By default, ccache directory is created inside `TMPDIR`, but it can be +adjusted by `CCACHE_TOP_DIR` variable in `local.conf`. Ccache directory +`CCACHE_DIR` default value is `"${CCACHE_TOP_DIR}/${DISTRO}-${DISTRO_ARCH}"`, +that means caches for different distros and architectures are not overlapped. + + ## Create an ISAR SDK root filesystem ### Motivation -- 2.20.1