]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/multilib: ensure MLPREFIX is set for image recipes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sat, 22 Sep 2012 12:29:56 +0000 (13:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Sep 2012 10:18:31 +0000 (11:18 +0100)
We need MLPREFIX to be set so that oe.utils.prune_suffix() (as used for
the value of BPN) can derive the bare name from the multilib-extended
name for image recipes. BPN being set correctly avoids missing file
warnings during parse from the file checksum code for (unusual) images
that set SRC_URI, such as build-appliance-image.

First half of the fix for [YOCTO #3146].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/multilib.bbclass

index b1a593e2223c04cf7860a7cc7ea24f4a3b3bce76..4d3f8899311e0280954acbbe056d4235bdbf2864 100644 (file)
@@ -12,6 +12,7 @@ python multilib_virtclass_handler () {
         raise bb.parse.SkipPackage("We shouldn't have multilib variants for the kernel")
 
     if bb.data.inherits_class('image', e.data):
+        e.data.setVar("MLPREFIX", variant + "-")
         e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
         return