[yocto] Ordering of anonymous Python functions and task signature calculations

Matt Hoosier matt.hoosier at gmail.com
Wed Jan 25 08:13:02 PST 2017


On Wed, Jan 25, 2017 at 3:03 AM, André Draszik <git at andred.net> wrote:

> On Tue, 2017-01-24 at 11:55 -0600, Matt Hoosier wrote:
> > In order to support a use-case that embeds information about the Git
> > revision of Yocto itself that was used to make a build, I would like to
> > run
> > some arbitrary Python code and dump the results (Git SHA1's, tag names,
> > etc) into a Bitbake variable.
>
> Have you looked at image-buildinfo.bbclass? From your description, it seems
> to do what you want.
>
> INHERIT += "image-buildinfo"
>
> works well for me...
>

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.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170125/0f5599c3/attachment.html>


More information about the yocto mailing list