summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--documentation/ref-manual/ref-variables.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 2ba4882d8f..51f4966349 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -4133,6 +4133,32 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
4133 </para> 4133 </para>
4134 4134
4135 <para> 4135 <para>
4136 BitBake, which the OpenEmbedded build system uses, supports
4137 specifying versioned dependencies.
4138 Although the syntax varies depending on the packaging
4139 format, BitBake hides these differences from you.
4140 Here is the general syntax to specify versions with
4141 the <filename>RDEPENDS</filename> variable:
4142 <literallayout class='monospaced'>
4143 RDEPENDS_${PN} = "&lt;package&gt; (&lt;operator&gt; &lt;version&gt;)"
4144 </literallayout>
4145 For <filename>operator</filename>, you can specify the
4146 following:
4147 <literallayout class='monospaced'>
4148 =
4149 &lt;
4150 &gt;
4151 &lt;=
4152 &gt;=
4153 </literallayout>
4154 For example, the following sets up a dependency on version
4155 1.2 or greater of the package <filename>foo</filename>:
4156 <literallayout class='monospaced'>
4157 RDEPENDS_${PN} = "foo (>= 1.2)"
4158 </literallayout>
4159 </para>
4160
4161 <para>
4136 For information on build-time dependencies, see the 4162 For information on build-time dependencies, see the
4137 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link> 4163 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
4138 variable. 4164 variable.