From 5087131b2a79384eb568b6a96d84b02815fcef88 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 15 Jan 2013 11:24:48 -0800 Subject: ref-manual: New glossary entry for SRCPV variable added. (From yocto-docs rev: 0eba5f7ff3e6801c1f8e41df02276e5524ff03f8) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 01f5fe9cfb..bc728b8d90 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -2732,6 +2732,40 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" + SRCPV + + + Returns the version string of the current package. + This string is used to help define the value of + PV. + + + + The SRCPV variable is defined in the + meta/conf/bitbake.conf configuration + file in the + Source Directory + as follows: + + SRCPV = "${@bb.fetch2.get_srcrev(d)}" + + + + + Recipes that need to define PV do so + with the help of the SRCPV. + For example, the ofono recipe + (ofono_git.bb) located in + meta/recipes-connectivity in the + Source Directory defines PV as + follows: + + PV = "1.5.0+git${SRCPV}" + + + + + SRCREV -- cgit v1.2.3-54-g00ecf