<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 25, 2017 at 3:03 AM, André Draszik <span dir="ltr"><<a href="mailto:git@andred.net" target="_blank">git@andred.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Tue, 2017-01-24 at 11:55 -0600, Matt Hoosier wrote:<br>
> In order to support a use-case that embeds information about the Git<br>
> revision of Yocto itself that was used to make a build, I would like to<br>
> run<br>
> some arbitrary Python code and dump the results (Git SHA1's, tag names,<br>
> etc) into a Bitbake variable.<br>
<br>
</span>Have you looked at image-buildinfo.bbclass? From your description, it seems<br>
to do what you want.<br>
<br>
INHERIT += "image-buildinfo"<br>
<br>
works well for me...<br></blockquote><div><br></div><div>Yes, that's close. I have a few extra bits of information from Git that I'd like to include, but the basic approach you and Khem pointed out to do this during image construction works well enough.<br></div><div><br></div><div>Thanks.<br></div></div></div></div>