mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
meta-toolchain: Popluated the libc siteconfig files.
Fixed bug [YOCTO #2159] by correctly populate the libc's siteconfig files. (From OE-Core rev: eeee4b8c097e60070e4654a223b41fea0c96a12b) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5256a6b6c3
commit
8447aa2fae
@@ -105,7 +105,7 @@ toolchain_create_sdk_env_script_for_installer () {
|
||||
#we get the cached site config in the runtime
|
||||
TOOLCHAIN_CONFIGSITE_NOCACHE := "${@siteinfo_get_files(d, True)}"
|
||||
TOOLCHAIN_CONFIGSITE_SYSROOTCACHE := "${STAGING_DATADIR}/${TARGET_SYS}_config_site.d"
|
||||
TOOLCHAIN_NEED_CONFIGSITE_CACHE = "ncurses"
|
||||
TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TCLIBC} ncurses"
|
||||
|
||||
#This function create a site config file
|
||||
toolchain_create_sdk_siteconfig () {
|
||||
@@ -113,9 +113,7 @@ toolchain_create_sdk_siteconfig () {
|
||||
|
||||
rm -f $siteconfig
|
||||
touch $siteconfig
|
||||
if [ "${LIBC}" = "eglibc" ]; then
|
||||
TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TOOLCHAIN_NEED_CONFIGSITE_CACHE} eglibc"
|
||||
fi
|
||||
|
||||
for sitefile in ${TOOLCHAIN_CONFIGSITE_NOCACHE} ; do
|
||||
cat $sitefile >> $siteconfig
|
||||
done
|
||||
@@ -146,7 +144,5 @@ python __anonymous () {
|
||||
deps = ""
|
||||
for dep in (d.getVar('TOOLCHAIN_NEED_CONFIGSITE_CACHE', True) or "").split():
|
||||
deps += " %s:do_populate_sysroot" % dep
|
||||
if d.getVar('TCLIBC', True) is "uclibc":
|
||||
deps += "uclibc:do_populate_sysroot"
|
||||
d.appendVarFlag('do_configure', 'depends', deps)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user