From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Cliff Brake <cliff.brake@gmail.com>,
openembedded-core@lists.openembedded.org
Subject: Re: How to use externalsrc with git workspace
Date: Mon, 28 Mar 2016 23:28:41 +0100 [thread overview]
Message-ID: <1459204121.21672.12.camel@linuxfoundation.org> (raw)
In-Reply-To: <56F98CDF.7080205@gmail.com>
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 branch=master is
> > likely
> > correct, or don't set that parameter at all? master isn't just a
> > remote
> > thing.
> >
> > The piece which says "use the HEAD revision" is the SRCREV =
> > "${AUTOREV}" line.
> >
> > Cheers,
> >
> > Richard
> >
> 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
> bitbake,
> and include a bitbake recipe (bitbake recipe is embedded directly in
> source
> code). Sometimes these submodules/externalsrc trees track branches
> (typically
> release-xyz, or develop-xyz), but almost never master. Sometimes
> they may be at
> a tagged version that is not at the HEAD of a branch. In the end, I
> want to be
> able to build exactly what is in the externalsrc directory, and
> accurately
> include the git version in the PV. Branches/tags may change at any
> time and I
> don't want to have to edit the recipe every time this happens.
>
> Repo might be used in a similar fashion to manage a tree of
> components that get
> built. What we are trying to avoid is having to edit the git version
> in the
> recipes to lock down versions for a set of components for a build --
> git
> submodules or repo work much better for doing this.
>
> 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?
Cheers,
Richard
next prev parent reply other threads:[~2016-03-28 22:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-25 20:18 How to use externalsrc with git workspace Cliff Brake
2016-03-25 21:07 ` Cliff Brake
2016-03-26 7:41 ` Richard Purdie
2016-03-28 19:58 ` Cliff Brake
2016-03-28 22:28 ` Richard Purdie [this message]
2016-03-29 12:25 ` Cliff Brake
2016-03-29 12:28 ` Richard Purdie
2016-03-29 13:50 ` Cliff Brake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459204121.21672.12.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=cliff.brake@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox