From patchwork Sun Jun 12 23:07:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 1873 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 13 Jun 2022 09:08:09 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ua1-f60.google.com (mail-ua1-f60.google.com [209.85.222.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 25D7889U027789 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 13 Jun 2022 09:08:09 +0200 Received: by mail-ua1-f60.google.com with SMTP id k40-20020ab059eb000000b00364ef6b085bsf2259840uad.0 for ; Mon, 13 Jun 2022 00:08:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655104083; cv=pass; d=google.com; s=arc-20160816; b=R6e/SLzyGX4UybNDWRqV6zPEvwvU4gWEwTTvexAxqFuGCcpDvE9j/8JWDV5IDeCmEu ketbH66+40az2qk9XXLHiNt16AryBu+Hx9qOcKeJTN8yDhyj9iT48cFssbHUzuBAHi19 NaFi43MBHLIC4JCbybBKBgviztUKUCbQlXnCAcNRdg+nwYdBDwYNKP7/r7okgHfNpzMv etdZxm29nESYWpvMI3VnOrtLPzPa6jGO3rHRgbehkLFfwsXnszpG+ew7icHrLrb/UMiu 4pCt/M3rRfxdnw5FuXvjuCb2jqnzY6pvYrAjdTDy3Wp+a0fbyFWfguKOVD6r9KKuDsWB 0c7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=qot3vNsWBMoe+JdIBIo11wkgMGQiWyELgu1PU4VpSXo=; b=Rt4OTd9gSz++DajpaDCon7crdmI1QubqOKC8hn7Brr/AstqdaVph0UD+w/IoWkDxvQ 06cDaJ1vn+xuTuOnL3SBuDqVSxIHA/CceMksV4YAsFIfoKIF8ZBQ3rPGI2qpYmk1kgLZ qe+Q/i/tTgpZ8tzbtJ/DWQWeZh2JcgJGMbP08gQQeTf52v5C77dY3tKqsrAJHjLl38o0 h0AW6XnuOCsnnbor07Q7cffpVzSkA0Z/Np1UL+8zHeJ4TL3qxuSrn+xYYDFfZh92BZBi wDB3K3jSIicEb4PwJ/MvpQCYrJNHpcQn/qwuVoZ7hHnuAj4o4NZESNfHVV8eQjfacdYM qx7g== ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=qot3vNsWBMoe+JdIBIo11wkgMGQiWyELgu1PU4VpSXo=; b=lqG1BUSFzlzyi6JSdcsZXfvwZlTkzf1RJISRD/0O0LpaTheiEwATtaC3ObuLFj8sM+ mXW4upeUaL8/PutYplODR3EMDccUP+opxcTc+DXIu9rrWeruIQKv5JqS3YbwnE+7BNUZ NnOTvULBsgxnOoJelnT+YS1rFiUJyx8NF39rvUBFwhDsnQiq7yt3yXqTv30JHW64tXpq rbbDghFOq6ft7lpOoK/2xJds38wz8ddKJSPljNTxovXJ7SAXLVOYLXfoI/JKP2g9fOIj UmMoLoy82iAwGOhr8ToE1wEGtRtHAGhVRjPgBHMbyTL8uH8gwBYy4Xqkk2TYXZkzMueY iOHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=qot3vNsWBMoe+JdIBIo11wkgMGQiWyELgu1PU4VpSXo=; b=0SGf2lEgAcAWOdVwyyoxHU4x78Ix3J0BK2qJ3TFdlqg2b7Zf1iuOJkEnfmvXPN9TYH otKq0rVPMzNnPcOVLrSaqWCZ/MLkEAXy+zoXj0N+dnijztiTlMp9YlePyBdeON431qDy EbPWlDTk+HyOL80LY118anGNddiDziD16Wo6k7+pviw0deF4k7fn1Tdokg6928TrNBh0 bo43n5uczGeUV5CqmHU/w+320wkt3c2hpVJVyyBDtHkPmEZ43LOi5vhDoj3WsedAXvTt PlUK8+wtf3eQkSJYfO7e5VGsmIPs0YWoKMwFOdXPJ193qSN+JWVk1Fmytq6/60+CtgFz v5BA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM5320NsjQnTdOu6uqpHoie5+OxPSH95+gCla+pkgiabqs5soGn1Hx F1fPLBpWb+Y4OwFQUqFbOYc= X-Google-Smtp-Source: ABdhPJyLjB+Zth442mSdVhf1qW5D6Rc6ruOU4nnPEjmFX0toQJWrWxTpYB0S7lXu31y9WKGrrl8xww== X-Received: by 2002:ab0:5a85:0:b0:35d:20c3:5463 with SMTP id w5-20020ab05a85000000b0035d20c35463mr44308574uae.103.1655104082798; 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-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 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; 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 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_PASS 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-Original-Sender: ubely@ilbers.de X-Original-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 Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX 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