summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--documentation/ref-manual/ref-variables.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index f72bbd0e05..e34843512a 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -7931,6 +7931,39 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
7931 <link linkend='var-BPN'><filename>BPN</filename></link> variable). 7931 <link linkend='var-BPN'><filename>BPN</filename></link> variable).
7932 <filename>MLPREFIX</filename> gets set when a prefix has been 7932 <filename>MLPREFIX</filename> gets set when a prefix has been
7933 added to <filename>PN</filename>. 7933 added to <filename>PN</filename>.
7934 <note>
7935 The "ML" in <filename>MLPREFIX</filename> stands for
7936 "MultiLib".
7937 This representation is historical and comes from
7938 a time when <filename>nativesdk</filename> was a suffix
7939 rather than a prefix on the recipe name.
7940 When <filename>nativesdk</filename> was turned into a
7941 prefix, it made sense to set
7942 <filename>MLPREFIX</filename> for it as well.
7943 </note>
7944 </para>
7945
7946 <para>
7947 To help understand when <filename>MLPREFIX</filename>
7948 might be needed, consider when
7949 <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link>
7950 is used to provide a <filename>nativesdk</filename> version
7951 of a recipe in addition to the target version.
7952 If that recipe declares build-time dependencies on tasks in
7953 other recipes by using
7954 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
7955 then a dependency on "foo" will automatically get rewritten
7956 to a dependency on "nativesdk-foo".
7957 However, dependencies like the following will not get
7958 rewritten automatically:
7959 <literallayout class='monospaced'>
7960 do_foo[depends] += "<replaceable>recipe</replaceable>:do_foo"
7961 </literallayout>
7962 If you want such a dependency to also get transformed,
7963 you can do the following:
7964 <literallayout class='monospaced'>
7965 do_foo[depends] += "${MLPREFIX}<replaceable>recipe</replaceable>:do_foo"
7966 </literallayout>
7934 </para> 7967 </para>
7935 </glossdef> 7968 </glossdef>
7936 </glossentry> 7969 </glossentry>