On Tue, May 24, 2016 at 7:32 AM, Michael Hu wrote:
> Hi,
>
> My goal is to pull recipe's SRCREV variable into a top level *.bbclass
> file. I understand we can use SRCREV_pn- to modify the
> revision on the fly outside of recipe in configuration files but when I
> print out SRCREV information using ${SRCREV_pn-recipename} all I got back
> is the recipe name instead of SREREV value for that specific recipe.
>
> Is there a way to retrieve SREREV value outside of recipe?
>
One recipe cannot access metadata from another, nor can config metadata
access recipe metadata, by design. I'd recommend enabling buildhistory and
using the buildhistory-collect-srcrevs script, which dumps SRCREV_pn- lines
for recipes, for use in a .conf/.inc/.bbclass.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto