From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6629178849690124288 X-Received: by 2002:a1c:bd1:: with SMTP id 200mr185105wml.25.1543492936726; Thu, 29 Nov 2018 04:02:16 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:9c97:: with SMTP id f145-v6ls340595wme.11.canary-gmail; Thu, 29 Nov 2018 04:02:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/W1kH7Y4vJU94CTUI5QcfEygeG/8SQjgvcbZH/X+OjDdgWVUIiyljVMMmwFumix+j6N6LwW X-Received: by 2002:a1c:8083:: with SMTP id b125mr195008wmd.11.1543492936196; Thu, 29 Nov 2018 04:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543492936; cv=none; d=google.com; s=arc-20160816; b=pA9YlUwSUHANA51CCHulkRJ1CR4zEO5pMMGWaqlyrI9M7bGdYvZntNdfIx5PXewhwA DzCl2M11pkP7u7rOcqlKFj5Iav6j65sLSBwh368F9p/yhxHhmVO69bPn2XAeBVKBFM1k L89JzmqPzNOc+uoKo84iEF41967m8kWWamHxAOssPB69bU+tpOuwLSS7vYIvcIaHmMuA oV9mGJGW+8hZYN/FB6uVxq6Ge55NxfdKnO9+0zrJNuggRxY0PN9/iGnHr1HmMtaWMEGm slkRhduIo7NwuGsZR3foF2XXrKGdxlfwcqo7m5hPudykRZFozcjMqvfbfz6TpO/I7wzY KhIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:references:cc:to :subject; bh=rZ3Toh1WIC6lJyOqlfpn9W0QSFE51C55r3Zw9yQCaOQ=; b=pmgLHJa4eQFmkSq9VMUPzXHzjVVItfsQr6cUatwzOpgJUOZG/G9juOLjfR2RJ47yrR 328dLpL0f765JfADDEiuOy7gV7F3Yb30A8dmPoxLLAcZ91P2H0HICRVuhjjbGsRo6yTD C2PpgnvUdYoCWUkTieooXySjBLab1Ku4SvdeLbb74ypoy7Xxapjqp3l33pU90oUKHF8O 4D1Oh8jqz2J2n3UbHd8gwd1jXRZURmx+p8GcyUQqsf8UkH4d41qWQbKjBi7wv0WY2Nn5 HxD0R7I4lq9sRMr+xl/2qLk5psFNBFLHZTrEG5kjiPu/pf9TaPEoyAHjPbzT5EUWsy8i TY0w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id p15si38374wrm.5.2018.11.29.04.02.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 04:02:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id wATC2CNh017010 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 29 Nov 2018 13:02:14 +0100 Subject: Re: [PATCH] scripts/ci: enable use of cached base repository for fast build To: Henning Schild Cc: isar-users@googlegroups.com References: <20181129071918.29263-1-mosipov@ilbers.de> <20181129123333.3c86eb53@md1za8fc.ad001.siemens.net> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: <874c0ba5-4876-8fb9-f3c6-dd50e90c64b3@ilbers.de> Date: Thu, 29 Nov 2018 15:02:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181129123333.3c86eb53@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: YH2aHY7ZMdHj On 11/29/18 2:33 PM, Henning Schild wrote: > Am Thu, 29 Nov 2018 08:19:18 +0100 > schrieb "Maxim Yu. Osipov" : > >> Signed-off-by: Maxim Yu. Osipov >> --- >> scripts/ci_build.sh | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh >> index 059df21..20b77b7 100755 >> --- a/scripts/ci_build.sh >> +++ b/scripts/ci_build.sh >> @@ -86,7 +86,14 @@ fi >> if [ -n "$FAST_BUILD" ]; then >> # Start build for the reduced set of configurations >> # Enforce cross-compilation to speed up the build >> + # Enable use of cached base repository >> sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= >> "1"/g' conf/local.conf >> + bitbake $BB_ARGS -c cache_base_repo \ >> + multiconfig:qemuarm-stretch:isar-image-base \ >> + multiconfig:qemuarm64-stretch:isar-image-base \ >> + multiconfig:qemuamd64-stretch:isar-image-base >> + sudo rm -rf tmp > > That rm is not in line with the user manual, should that be updated as > well? Yes, after commit de68185 "conf: Move base-apt to downloads directory" one may remove the whole tmp directory. I'll update the user manual. >> + sed -i -e 's/#ISAR_USE_CACHED_BASE_REPO ?= >> "1"/ISAR_USE_CACHED_BASE_REPO ?= "1"/g' conf/local.conf bitbake > > I will not propose "ifconfig down" but this here to cover cutting off > the network for the debian side. > # set invalid proxy variables to enforce "offline" > export http_proxy=http://localhost:3128 > export https_proxy=$http_proxy > export ftp_proxy=$http_proxy Have you tested this in your environment? If yes, I'll include this in v2. Thanks, Maxim. > Henning > >> $BB_ARGS \ multiconfig:qemuarm-stretch:isar-image-base \ >> multiconfig:qemuarm64-stretch:isar-image-base \ > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov