Re: [yocto] Layer versions at runtime

2017-10-12 Thread Philip Balister
Or better yet use http://www.yoctoproject.org/docs/2.3.2/mega-manual/mega-manual.html#ref-classes-image-buildinfo to get: --- Build Configuration: | --- DISTRO = nodistro DISTRO_VERSION = nodistro.0 --- Layer Revisions: | -

Re: [yocto] Layer versions at runtime

2017-10-12 Thread Ayoub Zaki
Hi, That's easy to do : do_install_append () {     for layer in ${BBLAYERS}; do     cd $layer     echo -n "$(basename $layer) = "  >> ${D}${sysconfdir}/gitinfo     git rev-parse HEAD >> ${D}${sysconfdir}/gitinfo     done } add it in a recipe or add it to os-release.bbappend On

[yocto] Layer versions at runtime

2017-10-12 Thread Alan Martinovic
I've noticed that bitbake prints the git commit versions of the layers when the build starts. meta-python = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6" meta-mender-core = "HEAD:c3b1b465ce3a27fc7b03a6b7ef596348835cff57" meta-go = "HEAD:514b2a80a2a4235687e92fb28328bb3e7c2d6c74"