From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QZ4su-00019d-Kt for openembedded-core@lists.openembedded.org; Tue, 21 Jun 2011 19:37:08 +0200 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 21 Jun 2011 10:33:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,402,1304319600"; d="scan'208";a="18920352" Received: from unknown (HELO [10.255.13.234]) ([10.255.13.234]) by fmsmga002.fm.intel.com with ESMTP; 21 Jun 2011 10:33:23 -0700 From: Joshua Lock To: openembedded-core@lists.openembedded.org Date: Tue, 21 Jun 2011 10:33:17 -0700 In-Reply-To: <1046625816b98aaab44b810e2376ed3689a2af5f.1308677220.git.paul.eggleton@linux.intel.com> References: <1046625816b98aaab44b810e2376ed3689a2af5f.1308677220.git.paul.eggleton@linux.intel.com> X-Mailer: Evolution 3.0.2 (3.0.2-2.fc15) Message-ID: <1308677603.2218.8.camel@scimitar> Mime-Version: 1.0 Subject: Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 17:37:08 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2011-06-21 at 18:29 +0100, Paul Eggleton wrote: > If we use a tag here then bitbake has to connect to the repository to find > out the corresponding revision (so it can expand SRCPV which is part of PV, > which amongst other things is needed to determine whether or not the > package has to be rebuilt.) This occurs at parse time; on machines behind a > firewall or with no network access this can be a problem. > > We wish to avoid unnecessary network accesses and network access in our > default configuration during parse time is even worse. Substituting the > git revision corresponding to the tag prevents bitbake from having to > contact the remote repository in order to expand PV. > > Addresses [YOCTO #1186] > > Signed-off-by: Paul Eggleton Great work tracking this down! I wonder if it's worth mentioning in the metadata that the revision corresponds to the tag? Signed-off-by: Joshua Lock > --- > meta/recipes-bsp/uboot/u-boot_2011.03.bb | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/recipes-bsp/uboot/u-boot_2011.03.bb b/meta/recipes-bsp/uboot/u-boot_2011.03.bb > index 07f0609..25af69b 100644 > --- a/meta/recipes-bsp/uboot/u-boot_2011.03.bb > +++ b/meta/recipes-bsp/uboot/u-boot_2011.03.bb > @@ -12,9 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \ > > FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE}" > > -SRCREV = "v2011.03" > +SRCREV = "19b54a701811220221fc4d5089a2bb18892018ca" > PV = "v2011.03+git${SRCPV}" > -PR="r4" > +PR = "r5" > > SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" > -- Joshua Lock Yocto Build System Monkey Intel Open Source Technology Centre