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

André Draszik git at andred.net
Wed Jan 25 01:03:11 PST 2017


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...


Cheers,
Andre'




More information about the yocto mailing list