]> code.ossystems Code Review - openembedded-core.git/commitdiff
multilib: Using different sysroot for multilib recipes
authorDongxiao Xu <dongxiao.xu@intel.com>
Fri, 2 Sep 2011 03:45:01 +0000 (11:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Sep 2011 17:13:36 +0000 (18:13 +0100)
Thinking of the senario that, if we already built out a 64bit image
along with the full toolchain bootstrapped, then we need to build some
32bit libraries, which needs lib32 versions of gcc and eglibc. These
toolchain recipes will bootstrap again in the same sysroot, resulting
that lib32-gcc-cross-initial will find some macros owned by eglibc have
already been defined and thus it includes non-existed headers that
provided by later lib32-eglibc.

The solution for the above issue is to use different sysroot for
multilib recipes, here we add ${MLPREFIX} in front of the machine
specific sysroot directory name.

[YOCTO #1372]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/conf/multilib.conf

index 36793d247e4be3a317fad22d064b04b50570dcdf..df83d475466ff3ab6d1aab0eafcaa816a737f509 100644 (file)
@@ -6,6 +6,9 @@ MULTILIB_SAVE_VARNAME = "DEFAULTTUNE"
 
 MULTILIBS ??= "multilib:lib32"
 
+STAGING_DIR_HOST = "${STAGING_DIR}/${MLPREFIX}${MACHINE}"
+STAGING_DIR_TARGET = "${STAGING_DIR}/${MLPREFIX}${MACHINE}"
+
 BBCLASSEXTEND_append_pn-acl = " ${MULTILIBS}"
 BBCLASSEXTEND_append_pn-alsa-lib = " ${MULTILIBS}"
 BBCLASSEXTEND_append_pn-alsa-utils = " ${MULTILIBS}"