Openembedded Core Discussions
 help / color / mirror / Atom feed
* How to use externalsrc with git workspace
@ 2016-03-25 20:18 Cliff Brake
  2016-03-25 21:07 ` Cliff Brake
  2016-03-26  7:41 ` Richard Purdie
  0 siblings, 2 replies; 8+ messages in thread
From: Cliff Brake @ 2016-03-25 20:18 UTC (permalink / raw)
  To: openembedded-core

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}"

...
====================

This was very nice in that it set SRCPV to to the git version of the HEAD of my
local workspace.  When building from a local git workspace, this makes sense to
me -- I want the Git version of the workspace, not a remote version.

Now with Jethro, I get errors like:

ERROR: ExpansionError during parsing myapp.bb: Failure expanding variable SRCPV,
expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError:
Fetcher failure: Unable to resolve 'HEAD' in upstream git repository in git
ls-remote output for /scratch/externalsrc/MyApp

Do you have any suggestions how to use externalsrc + a local git workspace and
avoid the above error.  I can set branch=master, etc and bitbake will then parse
it, but the remote master version is not really what I'm building.

Thanks,
Cliff



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-29 13:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-03-29 12:25       ` Cliff Brake
2016-03-29 12:28         ` Richard Purdie
2016-03-29 13:50           ` Cliff Brake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox