From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7108617906868453376 X-Received: by 2002:a1f:a942:0:b0:368:8f04:125a with SMTP id s63-20020a1fa942000000b003688f04125amr751040vke.22.1655104082851; Mon, 13 Jun 2022 00:08:02 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6122:1396:b0:35d:950b:5117 with SMTP id m22-20020a056122139600b0035d950b5117ls122234vkp.1.gmail; Mon, 13 Jun 2022 00:08:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd/i+rM2wSA7xvHzd26U0QaIeEMU0jsXA2r32TSgCJzajVUQjG/b2+8u8CCG0Ac7uA/ttD X-Received: by 2002:a05:6122:a28:b0:366:d97e:1bd1 with SMTP id 40-20020a0561220a2800b00366d97e1bd1mr4294579vkn.7.1655104082267; Mon, 13 Jun 2022 00:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655104082; cv=none; d=google.com; s=arc-20160816; b=vrfMZ+GTZ80yG72CO7UFF/9IC/Wq+27jOYlUj8GMoGYMyrlGAxnA1dootBQgfhg+jZ 80yeyo5oFJX2YgoCCxwrv8z/RIVzvPhCHl5+hUwni/2EKG4s08Ka4Y7k8RjmeR9U2F04 PS27GniS4Z6123dEkXgaJioX7uVOETR3D+p0FVk7f9Jc7+sL203XhAzfmQnspt5DPwXi 0uh+bl01twN83CQZtz4mWlcqKkkgSsF6mlJLyZPnk53OKfGKugsYL7aYa+NMzQsTH4IP ZC+4MivYY7X6HJiYhJqrOTw5ppmkGgGpIvbNR3zMdN2mX6xVrTFcFMQQKpl+RENoEsWD a6gQ== 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=U/ynoNiZaEt7+4oJK/PBxYENfiQ7Igg1yiX5IX/zUG8=; b=jyMvus6wD+ScjoZZtYch7RMfYK2bYz1kYg8FisTn8AM0sta0CzO3fmJwULmO4Hgnux dw/RMWenjjFUhO/BLmaLInVEwYVQoXP8kIpxs++iPzqLwQBVH7z3PSZdAmOXG1+5rEiy B2pGG+ANjUe7sdW50luUJi+OUUk8g8hlH4BP9n4cUka1QNHKTTSPBTniClZsecdwbZHq QbssUcXiXw40Sun9akGsIHFBREmQa5IWqvvp9y8nbsVKmbIQJjtw82mbE6yw6pkXjjRE jRw00nxYKr27Id5YyX5JY6kt38CHO7cAvoS+/fWYv2KdWbhlM257cH8wyvgh8+x4QOG1 J3mA== 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 11-20020a05612208cb00b00360358bed08si321488vkg.0.2022.06.13.00.08.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Jun 2022 00:08:02 -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+deb9u1) with ESMTPSA id 25D77xZ9027766 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 13 Jun 2022 09:08:00 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [RFC v2 2/3] doc: Add section for isar-apt reuse functionality Date: Mon, 13 Jun 2022 09:07:58 +0200 Message-Id: <20220613070759.16949-3-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220613070759.16949-1-ubely@ilbers.de> References: <20220613070759.16949-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: hQfpx8NbCT/h Signed-off-by: Uladzimir Bely --- doc/user_manual.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/user_manual.md b/doc/user_manual.md index 02874b6d..80f79ddd 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -24,6 +24,7 @@ Copyright (C) 2016-2019, ilbers GmbH - [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) + - [Reusing isar-apt repository](#reusing-isar-apt-repository) ## Introduction @@ -1254,6 +1255,28 @@ sudo rm -rf tmp bitbake mc:qemuarm-buster:isar-image-base ``` +## Reusing isar-apt repository + +### Motivation + +Building custom recipes from sources may take a lot of time to download the sources and build the package. Also, reusing isar-apt makes it possible to work offline. + +### Solution + +After a custom package is built, it's placed into isar-apt repository. It's possible to reuse this repository for further builds. The behavior is controlled by `ISAR_APT_REUSE` variable in `conf/local.conf`: + +- `ISAR_APT_REUSE = "0"` - always rebuild custom packages from sources, even if they already exist in the repository +- `ISAR_APT_REUSE = "1"` - reuse previously built binary if it exists in repository with the same version + +If `ISAR_APT_REUSE` is not set it behaves like `"0"` + +It also may be useful to move `isar-apt` directory out from `tmp/deploy` so that it could be easily shared between builds. To do that, modify `conf/local.conf` by adding lines similar to the following ones: + +``` +REPO_ISAR_DIR = "/path/to/isar-apt/${DISTRO}-${DISTRO_ARCH}/apt" +REPO_ISAR_DB_DIR = "/path/to/isar-apt/${DISTRO}-${DISTRO_ARCH}/db" +``` + ## Add foreign packages from other repositories to the generated image ### Motivation -- 2.20.1