On Wed, Jan 25, 2017 at 3:03 AM, André Draszik <[email protected]> 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.
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
