Re: [OE-core] How to use externalsrc with git workspace

2016-03-29 Thread Cliff Brake
On 03/29/2016 08:28 AM, Richard Purdie wrote: > On Tue, 2016-03-29 at 08:25 -0400, Cliff Brake wrote: >> On 03/28/2016 06:28 PM, Richard Purdie wrote: I tried nobranch=1;rev=HEAD, but then that conflicts with ${AUTOREV}. >>> Did you just try nobranch=1 and leave rev to get set from SRCREV

Re: [OE-core] How to use externalsrc with git workspace

2016-03-29 Thread Richard Purdie
On Tue, 2016-03-29 at 08:25 -0400, Cliff Brake wrote: > On 03/28/2016 06:28 PM, Richard Purdie wrote: > > > I tried nobranch=1;rev=HEAD, but then that conflicts with > > > ${AUTOREV}. > > Did you just try nobranch=1 and leave rev to get set from SRCREV? > > That will parse, but it puts the wrong g

Re: [OE-core] How to use externalsrc with git workspace

2016-03-29 Thread Cliff Brake
On 03/28/2016 06:28 PM, Richard Purdie wrote: >> We typically set up our projects to use git submodules, such that the >> top level >> calls out a set of submodules which are the actively developed >> applications and >> other bits in the system. These submodules are externalsrc trees for >> bitba

Re: [OE-core] How to use externalsrc with git workspace

2016-03-28 Thread Richard Purdie
On Mon, 2016-03-28 at 15:58 -0400, Cliff Brake wrote: > On 03/26/2016 03:41 AM, Richard Purdie wrote: > > HEAD is a revision, not a branch and the fetcher became a bit more > > picky about that difference. Your local tree must have HEAD on some > > branch which would usually be master so setting br

Re: [OE-core] How to use externalsrc with git workspace

2016-03-28 Thread Cliff Brake
On 03/26/2016 03:41 AM, Richard Purdie wrote: > HEAD is a revision, not a branch and the fetcher became a bit more > picky about that difference. Your local tree must have HEAD on some > branch which would usually be master so setting branch=master is likely > correct, or don't set that parameter a

Re: [OE-core] How to use externalsrc with git workspace

2016-03-26 Thread Richard Purdie
On Fri, 2016-03-25 at 16:18 -0400, Cliff Brake wrote: > Hi, > > In the past (say Dora era), I've used externalsrc like: > > > DESCRIPTION = "MyApp" > LICENSE = "CLOSED" > > inherit externalsrc > > SRCREV = "${AUTOREV}" > PV = "1.4+gitr${SRCPV}" > PR = "r1" > > SRC_URI = "g

Re: [OE-core] How to use externalsrc with git workspace

2016-03-25 Thread Cliff Brake
This change gets things parsing again, but still testing to see if it does what I want it to do: diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 9bd87ad..fb44fdc 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -358,7 +358,7 @@ class Git(FetchMethod): """

[OE-core] How to use externalsrc with git workspace

2016-03-25 Thread Cliff Brake
Hi, In the past (say Dora era), I've used externalsrc like: DESCRIPTION = "MyApp" LICENSE = "CLOSED" inherit externalsrc SRCREV = "${AUTOREV}" PV = "1.4+gitr${SRCPV}" PR = "r1" SRC_URI = "git://${FILE_DIRNAME};protocol=file;branch=HEAD" S = "${FILE_DIRNAME}" ... =