summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-variables.xml
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-01-15 11:24:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-16 15:59:22 +0000
commit5087131b2a79384eb568b6a96d84b02815fcef88 (patch)
treec269946be37fbaa5d9b582de4a0cd92fd79838e1 /documentation/ref-manual/ref-variables.xml
parent11e92659b4f8057d8b4ef82bdca3f9f87ad17f25 (diff)
downloadpoky-5087131b2a79384eb568b6a96d84b02815fcef88.tar.gz
ref-manual: New glossary entry for SRCPV variable added.
(From yocto-docs rev: 0eba5f7ff3e6801c1f8e41df02276e5524ff03f8) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/ref-variables.xml')
-rw-r--r--documentation/ref-manual/ref-variables.xml34
1 files changed, 34 insertions, 0 deletions
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"
2732 </glossdef> 2732 </glossdef>
2733 </glossentry> 2733 </glossentry>
2734 2734
2735 <glossentry id='var-SRCPV'><glossterm>SRCPV</glossterm>
2736 <glossdef>
2737 <para>
2738 Returns the version string of the current package.
2739 This string is used to help define the value of
2740 <link linkend='var-PV'><filename>PV</filename></link>.
2741 </para>
2742
2743 <para>
2744 The <filename>SRCPV</filename> variable is defined in the
2745 <filename>meta/conf/bitbake.conf</filename> configuration
2746 file in the
2747 <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
2748 as follows:
2749 <literallayout class='monospaced'>
2750 SRCPV = "${@bb.fetch2.get_srcrev(d)}"
2751 </literallayout>
2752 </para>
2753
2754 <para>
2755 Recipes that need to define <filename>PV</filename> do so
2756 with the help of the <filename>SRCPV</filename>.
2757 For example, the <filename>ofono</filename> recipe
2758 (<filename>ofono_git.bb</filename>) located in
2759 <filename>meta/recipes-connectivity</filename> in the
2760 Source Directory defines <filename>PV</filename> as
2761 follows:
2762 <literallayout class='monospaced'>
2763 PV = "1.5.0+git${SRCPV}"
2764 </literallayout>
2765 </para>
2766 </glossdef>
2767 </glossentry>
2768
2735 <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm> 2769 <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
2736 <glossdef> 2770 <glossdef>
2737 <para> 2771 <para>