AnsweredAssumed Answered

Yocto: Passing in a git Tag to a Recipe

Question asked by Doug Bailey on Oct 25, 2017
Latest reply on Nov 24, 2017 by OtavioSalvador

I have a recipe that uses a git repo for source code.


Typically while developing, I simply set the SRCREV = "${AUTOREV}" so I retrieve the tip of the branch I am working on.


There are other times where I want to specify a tag in the repo to use instead of the tip. I would like to do this by specifying the tag in local.conf and then checking to see if the tag variable is set in the actual recipe.

Say I set the following in local.conf


In my recipe, I would like to set something like:

if len('BUILDTAG') > 0


Is it possible to do something like this?
Is there a better way to do it?



Doug Bailey