summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-22 13:29:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 11:30:34 +0100
commitd27d9e89576e8c067ceaee77fe8fb79603278eb3 (patch)
treef418a0bfc0bd3bc575adf10b29a6e040081e691c /meta/classes
parentb5b0fc2b73209e4d107d9351ec7d030997ca5ec5 (diff)
downloadpoky-d27d9e89576e8c067ceaee77fe8fb79603278eb3.tar.gz
classes/multilib: ensure MLPREFIX is set for image recipes
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]. (From OE-Core rev: ddec9a1b45159c75e97e92abe9a940268acd84b2) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/multilib.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index b1a593e222..4d3f889931 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -12,6 +12,7 @@ python multilib_virtclass_handler () {
12 raise bb.parse.SkipPackage("We shouldn't have multilib variants for the kernel") 12 raise bb.parse.SkipPackage("We shouldn't have multilib variants for the kernel")
13 13
14 if bb.data.inherits_class('image', e.data): 14 if bb.data.inherits_class('image', e.data):
15 e.data.setVar("MLPREFIX", variant + "-")
15 e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False)) 16 e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
16 return 17 return
17 18