On Thu, 2017-09-21 at 22:00 +0200, Svein Seldal wrote: > To determine a image version, I'd like to read a VERSION file which > is > located in the root of the layer. (Per our development procedure.) > I'd > like to read it from a bbclass file. However I seem to be unable to > find > any methods or variables to find a useful path to either the current > bb-file or the root of the layer. > > The only way I have found is to parse through BBLAYERS and guess at > what > my own layer is of those, and then use the found to access the file. > But > this feels very wacky. > > Is there a reason why bitbake doesn't have a variable path reference > to the current file?
You mean like ${FILE} ? $ bitbake bash -e | grep ^FILE= FILE="/media/build1/poky/meta/recipes-extended/bash/bash_4.4.bb" Cheers, Richard -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto