[yocto] Using ${SRCVP} in PR of BB file

Ian Welch ian_welch at trimble.com
Tue Mar 28 13:27:01 PDT 2017


Hello,
      We are preparing to move to PRservice in Yocto to handle auto rolling
our revisions on every build. As an interim step we are doing some
reordering or our current PR and PV parameters in our bitbake files. Our
current syntax is as follows and works as expected

----BB File----
SRC_URI =
"git://myrepo.git;branch=mybranch;subpath=Linux/bcastforwd;destsuffix=Linux/bcastforwd;protocol=ssh"
SRCREV = "${AUTOREV}"
PV = "1.1"
PR = "r0"
PV_append = "+git${SRCPV}"

----Output from build----

bcastforwd_1.0-r0git0+afc68d4a00_arm926ejste.ipk



When we change git${SRCPV} to append to the PR we get "AUTOINC" in place of
the revision number

----BB File----
"git://myrepo.git;branch=mybranch;subpath=Linux/bcastforwd;destsuffix=Linux/bcastforwd;protocol=ssh"
SRCREV = "${AUTOREV}"
PV = "1.1"
PR = "r0"
PR_append = "+git${SRCPV}"

----ipk Output from build----

bcastforwd_1.0-r0gitAUTOINC+afc68d4a00_arm926ejste.ipk


I took a look at the package.bbclass file which appears to be the
magic sauce for searching and replacing the "AUTOINC" string but
nothing jumped out at me as to why this would work for PV but not PR.


Is it possible to support AUTOREV on PR?



Thanks,
     Ian Welch
     Trimble Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170328/f2a02724/attachment.html>


More information about the yocto mailing list