summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-variables.xml
diff options
context:
space:
mode:
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>