From 4b8e7d8ccaa1a779ca651ed189ff7eb247743376 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 1 Sep 2016 14:16:52 -0700 Subject: ref-manual: Updated the MLPREFIX variable description. Fixes [YOCTO #10197] Provided better examples and a bit of a historical note. (From yocto-docs rev: 5845aadcc4e6932abde4ce7c74834c0f2a9fb806) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'documentation') 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" BPN variable). MLPREFIX gets set when a prefix has been added to PN. + + The "ML" in MLPREFIX stands for + "MultiLib". + This representation is historical and comes from + a time when nativesdk was a suffix + rather than a prefix on the recipe name. + When nativesdk was turned into a + prefix, it made sense to set + MLPREFIX for it as well. + + + + + To help understand when MLPREFIX + might be needed, consider when + BBCLASSEXTEND + is used to provide a nativesdk version + of a recipe in addition to the target version. + If that recipe declares build-time dependencies on tasks in + other recipes by using + DEPENDS, + then a dependency on "foo" will automatically get rewritten + to a dependency on "nativesdk-foo". + However, dependencies like the following will not get + rewritten automatically: + + do_foo[depends] += "recipe:do_foo" + + If you want such a dependency to also get transformed, + you can do the following: + + do_foo[depends] += "${MLPREFIX}recipe:do_foo" + -- cgit v1.2.3-54-g00ecf