aboutsummaryrefslogtreecommitdiffstats
path: root/classes/gitver.bbclass
AgeCommit message (Collapse)Author
2010-10-27gitver: add GITSHA variableChris Larson
There's a case where git describe produces output which is not pleasant, to put it mildly, and it's better to just set PV to "0.0+${GITSHA}" or similar, including the short form of the commit hash for HEAD. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-27gitver: fix non-symbolic HEAD refChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-13gitver: add missing importChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-13gitver: drop 'v' tag prefix where appropriateChris Larson
If the tag starts with 'v' followed by a number, drop the 'v' prefix. This will not be done for you if you customize GIT_TAGADJUST. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-13gitver: allow tag adjustment via GIT_TAGADJUSTChris Larson
Example usage: GIT_TAGADJUST = "version[1:]" Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-13oe.process: pull some common bits overChris Larson
Also update gitver to use the subprocess wrappers Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-15gitver.bbclass: fix issue with detached headsCliff Brake
2009-10-26gitver.bbclass: fix git dependency trackingMichael Smith
.git/HEAD doesn't usually change on a commit, but the ref it points to (e.g. .git/refs/heads/master) should. Handle this and another couple of cases: if a tag is added without a new commit, or if the ref is in packed-refs. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Chris Larson <clarson@kergoth.com>
2009-08-26gitver.bbclass: add initial version.Chris Larson
This provides a GITVER variable which is a (fairly) sane version, for use in ${PV}, extracted from the ${S} git checkout, assuming it is one. This is most useful in concert with srctree.bbclass. Signed-off-by: Chris Larson <clarson@kergoth.com>