From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 22C0E21F2AF7D for ; Thu, 28 Sep 2017 05:10:46 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F56F191F80; Thu, 28 Sep 2017 12:14:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5F56F191F80 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-73.rdu2.redhat.com [10.10.120.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id CB81D7E69E; Thu, 28 Sep 2017 12:13:58 +0000 (UTC) From: Laszlo Ersek To: Yonghong Zhu , edk2-devel@lists.01.org Cc: Michael Kinney , Kevin W Shaw , Liming Gao References: <1505803680-15860-1-git-send-email-yonghong.zhu@intel.com> <0dbfc584-f13c-c712-0ef5-bf1741b89bcd@redhat.com> Message-ID: <04e10841-f112-e2eb-2188-dd930178e150@redhat.com> Date: Thu, 28 Sep 2017 14:13:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <0dbfc584-f13c-c712-0ef5-bf1741b89bcd@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 28 Sep 2017 12:14:00 +0000 (UTC) Subject: Re: [Patch V2] Build spec: add description for build with binary cache X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 12:10:46 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 09/28/17 14:06, Laszlo Ersek wrote: > So, how can I invalidate all the cached values? Is it enough to delete > the *.hash files? ... I'm asking because I tried the --binary-destination option as well, and in the bin cache directory, *.depex and *.inf files were stored as well, not just *.hash values. So I figure, whatever gets stored in the binary cache directory, should be deleted when I'd like to invalidate the cache. Now, removing this separate cache directory altogether would solve my question; but that would require me to use "--binary-destination" and "--binary-source" together. The idea is that "--hash" would fetch the hash values from that separate directory, and it would also write the new hash values back to that directory. In addition this directory would be very easy to remove, so "--hash" would know whenever the hash was empty. However, it looks like "--binary-destination" and "--binary-source" cannot be used together. Why is that? Thanks, Laszlo