* Use of multiple GIT repositories in SRCREV but updating PV
@ 2011-08-26 21:06 Otavio Salvador
2011-08-26 21:40 ` Richard Purdie
0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2011-08-26 21:06 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Hello,
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?
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of multiple GIT repositories in SRCREV but updating PV
2011-08-26 21:06 Use of multiple GIT repositories in SRCREV but updating PV Otavio Salvador
@ 2011-08-26 21:40 ` Richard Purdie
2011-08-26 21:51 ` Chris Larson
2011-08-27 12:18 ` Otavio Salvador
0 siblings, 2 replies; 8+ messages in thread
From: Richard Purdie @ 2011-08-26 21:40 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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}"
?
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Use of multiple GIT repositories in SRCREV but updating PV
2011-08-26 21:40 ` Richard Purdie
@ 2011-08-26 21:51 ` Chris Larson
2011-08-27 12:18 ` Otavio Salvador
1 sibling, 0 replies; 8+ messages in thread
From: Chris Larson @ 2011-08-26 21:51 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, Aug 26, 2011 at 2:40 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> 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}"
He has multiple git repositories involved here, and wants to ensure it
gets rebuilt if either change.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Use of multiple GIT repositories in SRCREV but updating PV
2011-08-26 21:40 ` Richard Purdie
2011-08-26 21:51 ` Chris Larson
@ 2011-08-27 12:18 ` Otavio Salvador
2011-08-28 7:41 ` Richard Purdie
1 sibling, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2011-08-27 12:18 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, Aug 26, 2011 at 18:40, Richard Purdie
<richard.purdie@linuxfoundation.org> 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.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Use of multiple GIT repositories in SRCREV but updating PV
2011-08-27 12:18 ` Otavio Salvador
@ 2011-08-28 7:41 ` Richard Purdie
2011-08-29 17:24 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2011-08-28 7:41 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Sat, 2011-08-27 at 09:18 -0300, Otavio Salvador wrote:
> On Fri, Aug 26, 2011 at 18:40, Richard Purdie
> <richard.purdie@linuxfoundation.org> 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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Use of multiple GIT repositories in SRCREV but updating PV
2011-08-28 7:41 ` Richard Purdie
@ 2011-08-29 17:24 ` Otavio Salvador
2011-09-05 19:31 ` Richard Purdie
0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2011-08-29 17:24 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Sun, Aug 28, 2011 at 04:41, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> 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 \
> "
I did it locally and it ...:
- does the clones in DL_DIR file
- gets the right SRCREV for both
- gets the right SRCPV
However on unpack it fails; it always use S as '${WORKDIR}/git' even
if I change it in the recipe.
Something seems broken on bitbake support for it.
Clues?
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Use of multiple GIT repositories in SRCREV but updating PV
2011-08-29 17:24 ` Otavio Salvador
@ 2011-09-05 19:31 ` Richard Purdie
2011-09-05 19:55 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2011-09-05 19:31 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2011-08-29 at 14:24 -0300, Otavio Salvador wrote:
> On Sun, Aug 28, 2011 at 04:41, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > 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 \
> > "
>
> I did it locally and it ...:
>
> - does the clones in DL_DIR file
> - gets the right SRCREV for both
> - gets the right SRCPV
>
> However on unpack it fails; it always use S as '${WORKDIR}/git' even
> if I change it in the recipe.
>
> Something seems broken on bitbake support for it.
>
> Clues?
Just to follow up for the benefit of the mailing list, we were missing a
patch Holger submitted a while back for this problem which has now
merged into bitbake master. You can now tell the fetcher to use
something other than "git" as the checkout directory.
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-09-05 20:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-26 21:06 Use of multiple GIT repositories in SRCREV but updating PV Otavio Salvador
2011-08-26 21:40 ` Richard Purdie
2011-08-26 21:51 ` Chris Larson
2011-08-27 12:18 ` Otavio Salvador
2011-08-28 7:41 ` Richard Purdie
2011-08-29 17:24 ` Otavio Salvador
2011-09-05 19:31 ` Richard Purdie
2011-09-05 19:55 ` Otavio Salvador
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.