From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Qxa4N-0004wH-Hi for openembedded-core@lists.openembedded.org; Sun, 28 Aug 2011 09:46:15 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p7S7fPK2021936 for ; Sun, 28 Aug 2011 08:41:25 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17826-04 for ; Sun, 28 Aug 2011 08:41:21 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p7S7fFgK021930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 28 Aug 2011 08:41:17 +0100 From: Richard Purdie To: Patches and discussions about the oe-core layer In-Reply-To: References: <1314394806.5939.264.camel@rex> Date: Sun, 28 Aug 2011 08:41:10 +0100 Message-ID: <1314517270.5939.268.camel@rex> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-Virus-Scanned: amavisd-new at rpsys.net Subject: Re: Use of multiple GIT repositories in SRCREV but updating PV 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: Sun, 28 Aug 2011 07:46:15 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Sat, 2011-08-27 at 09:18 -0300, Otavio Salvador wrote: > On Fri, Aug 26, 2011 at 18:40, Richard Purdie > wrote: > > On Fri, 2011-08-26 at 18:06 -0300, Otavio Salvador wrote: > >> We have two recipes that use a common static library and every time we > >> change something on this library we need to bump PR of those recipes. > >> We want to avoid that specially for daily builds that will be using > >> GIT AUTOREV support. > >> > >> For it to work, we need to have a way to put two SRCREV in PV and then > >> it will be rebuit every time the library changes. > >> > >> Any clue how to do that? > > > > Set the PV as usual in the recipe: > > > > PV = "0.0+gitr${SRCPV}" > > > > and then set: > > > > SRCREV = "${AUTOREV}" > > > > ? > > As spoted by Chris we have multiple repositories and we want that > either change to raise a build of the recipe. See linux-yocto as an example. You need to name the two git uris: SRC_URI = "\ git://git.yoctoproject.org/linux-yocto-a;protocol=git;name=machine \ git://git.yoctoproject.org/linux-yocto-b;protocol=git;name=meta \ " set a format string to determine how the revisions should be placed in SRCPV: SRCREV_FORMAT = "meta_machine" specify PV: PV = "0.0+gitr${SRCPV}" and then something like: SRCREV_meta = "${AUTOREV}" SRCREV_machine = "${AUTOREV}" Cheers, Richard