[yocto] : git tag and PV variable

Alexander Kanavin alexander.kanavin at linux.intel.com
Wed Feb 24 08:02:08 PST 2016


On 02/24/2016 05:35 PM, Khem Raj wrote:
>
>     I have this command in my qmake pro files:____
>
>     VERSION = $$system(git describe --abbrev=0 --tags)____
>
>     __ __
>
>     I would like to have the package manager follow the tag versioning.____
>
>     __ __
>
>     Which means I would like to have something like:____
>
>     PV = "git describe --abbrev=0 --tags"____
>
>     SRC_URI = "${STUDIEL_GIT}/core.git;protocol=file;tag=${PV}"____
>
>     __ __
>
>     It does not work for sure. What is the correct way to do this ?
>
>
> ​SRC_URI is required by fetcher and there is nothing to git describe
> before it is fetched.​
> so thats your problem.

It's possible however to write an external script that updates the PV 
version in the recipe, but it needs to be run outside of bitbake.

Alex




More information about the yocto mailing list