summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2014-11-10 20:09:29 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-13 15:43:38 +0000
commit9fcd5826d9d6cfc6cec2423a59cb05180e54cb06 (patch)
tree5ac7ecc49737ed883c39aad0581b62b245ee79a7 /meta/classes/toolchain-scripts.bbclass
parentdf87cb27efeaea1455f20692f9f1397c6fcab254 (diff)
downloadpoky-9fcd5826d9d6cfc6cec2423a59cb05180e54cb06.tar.gz
meta-environment: Fix config-site with a multilib config
[YOCTO #6951] The TOOLCHAIN_CONFIGSITE_SYSROOTCACHE value was defaulting to the nativesdk path and not the associated target path. Set the value in toolchain-scripts to the target path. Be sure to set the MLPREFIX within the meta-environment script as multilibs are processed. Update the config_site file name to use -BPN- not PN. Otherwise the environment processing can't find the correct filename. (From OE-Core rev: 26a2f98155a867a71217e52d33f761dcc60800ca) Signed-off-by: Mark Hatle <mark.hatle@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/toolchain-scripts.bbclass')
-rw-r--r--meta/classes/toolchain-scripts.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 2244cf71c1..96fd93dbc8 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -91,7 +91,7 @@ EOF
91 91
92#we get the cached site config in the runtime 92#we get the cached site config in the runtime
93TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d, True)}" 93TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d, True)}"
94TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DATADIR}/${TARGET_SYS}_config_site.d" 94TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DIR}/${MLPREFIX}${MACHINE}/${target_datadir}/${TARGET_SYS}_config_site.d"
95TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TCLIBC} ncurses" 95TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TCLIBC} ncurses"
96 96
97#This function create a site config file 97#This function create a site config file
@@ -131,5 +131,7 @@ python __anonymous () {
131 deps = "" 131 deps = ""
132 for dep in (d.getVar('TOOLCHAIN_NEED_CONFIGSITE_CACHE', True) or "").split(): 132 for dep in (d.getVar('TOOLCHAIN_NEED_CONFIGSITE_CACHE', True) or "").split():
133 deps += " %s:do_populate_sysroot" % dep 133 deps += " %s:do_populate_sysroot" % dep
134 for variant in (d.getVar('MULTILIB_VARIANTS', True) or "").split():
135 deps += " %s-%s:do_populate_sysroot" % (variant, dep)
134 d.appendVarFlag('do_configure', 'depends', deps) 136 d.appendVarFlag('do_configure', 'depends', deps)
135} 137}