summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-10-16 15:16:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-04 10:27:07 +0000
commitfacfeb0b4475a88eed2694ee95d570f66ec6601e (patch)
treebd03302dde8c5f264486f018e55aedff05596800 /meta/classes
parent150f0f5fff017c3c9cebf07c202bcb3b681986e8 (diff)
downloadpoky-facfeb0b4475a88eed2694ee95d570f66ec6601e.tar.gz
multilib.bbclass: fix incorrect TARGET_VENDOR in multilib image
While building multilib extended images such as libXX-core-image-minimal, the WORKDIR has the same dir with the building of core-image-minimal. $ ls tmp/work/qemux86_64-poky-linux/ -al ... drwxrwxr-x 3 jiahongxu jiahongxu 4096 Oct 13 16:01 core-image-minimal drwxrwxr-x 3 jiahongxu jiahongxu 4096 Oct 16 11:11 lib32-core-image-minimal ... While image class is inherited, it did not assign OVERRIDES with 'virtclass-multilib-libXXX', so the reason is variable TARGET_VENDOR was not override for multilib in that situation. It refers what did for PN and MLPREFIX, and manually do the multilib override for TARGET_VENDOR in RecipePreFinalise handler. [YOCTO #6844] (From OE-Core rev: 7ca012fb3addb11ba3f899efa0619ddd8d3c6946) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/multilib.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 6e143dd70d..2a90d9ef29 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -21,6 +21,9 @@ python multilib_virtclass_handler () {
21 if bb.data.inherits_class('image', e.data): 21 if bb.data.inherits_class('image', e.data):
22 e.data.setVar("MLPREFIX", variant + "-") 22 e.data.setVar("MLPREFIX", variant + "-")
23 e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False)) 23 e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
24 target_vendor = e.data.getVar("TARGET_VENDOR_" + "virtclass-multilib-" + variant, False)
25 if target_vendor:
26 e.data.setVar("TARGET_VENDOR", target_vendor)
24 return 27 return
25 28
26 if bb.data.inherits_class('cross-canadian', e.data): 29 if bb.data.inherits_class('cross-canadian', e.data):