[oe] Examples of srctree and gitver

Michael Smith msmith at cbnco.com
Sun May 30 20:37:17 UTC 2010


> From: Ambrose, Martin <martin at ti.com>
> Looking at the class I see
>     ver = popen(["git", "describe", "--tags"], cwd=path)

> Normally I work on a named branch so the PV here becomes the capitalized
> branch name. My preference would be the shortened commit id which is the
> fallback option above. I guess no way to get this functionality unless I
> either don't work a branch or locally modify gitver.bbclass.

I think if you tag a commit somewhere on your branch, you'll get 
<tag>-<count>-<shortened commit ID> as your version for all future commits.

Mike 




More information about the Openembedded-devel mailing list