[yocto] Adding 'build-id' to Build Image

Douglas Geiger doug.geiger at bioradiation.net
Fri Sep 26 10:57:49 PDT 2014


FWIW: most of that file is based off a discussion from back in 2012 - I
think Marc Ferland posted a similar file to the list.

On Fri, Sep 26, 2014 at 1:55 PM, Douglas Geiger <
doug.geiger at bioradiation.net> wrote:

> I've attached a build_info.inc that I've used in some of my image to the
> issue - comments welcome.
> Currently I include a build timestamp, and the names and version info on
> all the layers used in the build and put it in /etc/build
>
>  Doug
>
> On Fri, Sep 26, 2014 at 1:09 PM, Philip Balister <philip at balister.org>
> wrote:
>
>> I added https://bugzilla.yoctoproject.org/show_bug.cgi?id=6770
>>
>> Sorry no patch yet :)
>>
>> Philip
>>
>> On 09/10/2014 12:38 AM, Paul Eggleton wrote:
>> > On Tuesday 09 September 2014 15:03:39 Philip Balister wrote:
>> >> On 09/08/2014 07:08 PM, Leo Schwab wrote:
>> >>> We'd like to have the system images we build to contain a build id, or
>> >>> at least a pile of information inside the image itself that lets us
>> >>> identify which build is being run/tested.  Indeed, the information
>> >>> 'bitbake' kicks out just as it starts a build is exactly the sort of
>> >>> thing we'd like sitting in a file in the image somewhere.
>> >>>
>> >>> I turned on the 'buildhistory' feature in conf/local.conf which, among
>> >>> other things, generates a 'build-id' file.  However, it doesn't place
>> >>> it in the image, but in an entirely separate directory hierarchy.
>> >>>
>> >>> Surely this sort of thing has been done before.  Is there an existing
>> >>> recipe I can use, or will I have to cobble together a custom recipe
>> >>> out of buildhistory_get_layers() or get_layers_branch_rev()?
>> >>
>> >> I was asking the same question yesterday. I have a hacky solution for
>> my
>> >> immediate need, but I'd like a long term solution along these lines
>> also.
>> >>
>> >> Should we add this to bugzilla and see if we can get it done for 1.8?
>> (I
>> >> think I ahve the version number right)
>> >
>> > Yes, please add this to the bugzilla. This has also come up before
>> several
>> > times, we should just do it (and bonus points if someone wants to send
>> a patch
>> > ;).
>> >
>> > Cheers,
>> > Paul
>> >
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
>
>
> --
> Doug Geiger
> doug.geiger at bioradiation.net
>



-- 
Doug Geiger
doug.geiger at bioradiation.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140926/096c2925/attachment.html>


More information about the yocto mailing list