From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7013292876278792192 X-Received: by 2002:a50:a2a5:: with SMTP id 34mr14245574edm.180.1632909498885; Wed, 29 Sep 2021 02:58:18 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:907:9863:: with SMTP id ko3ls759740ejc.0.gmail; Wed, 29 Sep 2021 02:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGE7sHZWRf21IKXvApORKVCoZgscMuNoDeYflopx3FXRge8nFaNiP+r3oCTKU/aykdcppV X-Received: by 2002:a17:906:3486:: with SMTP id g6mr13076127ejb.71.1632909497753; Wed, 29 Sep 2021 02:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632909497; cv=none; d=google.com; s=arc-20160816; b=P+DQ0cd1HDlLSgCa8ZG7hQhpXh9hVnd1MwXn2229mqArTSEY9PwbZORHtGmqNRSAwa YSteJRgJvG81BQbHxXlnFcNUloar3zTq+xfUVdPHSMVfc7XCLQS9qKjTEFmXuFhsMptE uAAsMTUYndBWF4CZKcTxlFixZGdrUop8XXJBqUXQPz74GPVDwMHf/rXJ6oS7rt952NT9 8r7+6ospjquKIYe9vPL4rZGS/Ki+JfcDbz4owM6wxm3TALXszfaa0WltafowEunMJn81 btJl59nwfTGjeNEY/PqLEh/9RrhdnrzEqPZoXQGJeXIK9DwH7oFJufTNbUtgMSt6q1Hd d94A== 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=35RLwGnHChv9RkMu6UUICYYt2Ue1Zf6EdUyHQXDNIhY=; b=cPcaT2ja7Sb3CjBgjKmD2P9eOgDjuwBYr6mVsZJ9fkNqBHn80ny6GSpS/hFHe4gaeQ hqnqMXimKj3NmYN9aX6hFgr2iWCJMfzjrT+CubBRyitmZhhfquKRzoycRGHizbw6PwJr UtVk53/niz39w49TmnMcS/JqBhqAZUfMJySLmbms8t5bBsM5cgytoEVl6GkPa6wHI+tF IU8Fw9v/wL/33AIBxSlp0KSJfxQ9BLKvbp21IqNgw7klo70CCuxon07UsEVNftKr4Sma DoH/rF/rL1CcRRvr5uNAC8XCKby+lv8Ey4dQt9+T0l+/riIFB6rRi333ZZJwBEOTqXgt UEdg== 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 r23si172583edy.3.2021.09.29.02.58.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Sep 2021 02:58:17 -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 18T9wAhW013444 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 Sep 2021 11:58:15 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v2 2/2] doc: Add section about ccache usage Date: Wed, 29 Sep 2021 11:58:10 +0200 Message-Id: <20210929095810.3228-3-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210929095810.3228-1-ubely@ilbers.de> References: <20210929095810.3228-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: llzR30r34sKT 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 01fe701..a553eeb 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, `INHERIT += ccache` can be added +to `local.conf`. If some package requires ccache to be always disabled, +`USE_CCACHE = "0"` can be used in the recipe. + +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