Age | Commit message (Collapse) | Author |
|
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>
|
|
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
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>
|
|
Example usage:
GIT_TAGADJUST = "version[1:]"
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
Also update gitver to use the subprocess wrappers
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
|
|
.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>
|
|
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>
|