summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-08-03 15:19:33 (GMT)
committerSaul Wold <sgw@linux.intel.com>2011-08-04 16:10:17 (GMT)
commite0ea56a6b33662dbbe542c77cde2524c1d1ec197 (patch)
treecd5b4e4352bcca2543a98937babae07760487259
parentbe9e43946c83c16e18cb5b8349d91b6f49c57d79 (diff)
downloadpoky-e0ea56a6b33662dbbe542c77cde2524c1d1ec197.tar.gz
eglibc-locale: Specially handle FILES_eglibc-gconv for multilib
In multilib support, it iterate values in PACKAGES and then extend name for variables like "FILES_xxx", "SUMMARY_xxx", etc. However eglibc-gconv is dynamically put in PACKAGES by package_do_split_gconv function. Therefore the name will not be extended automatically. Specially handle the FILES variable for eglibc-gconv to fix the issue of missing "lib32-eglibc-gconv" issue in doing multilib do_rootfs. Also when set PACKAGES, add the MLPREFIX. (From OE-Core rev: 4a5cc82218fa730b898c553875accfeb6800f9a4) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/libc-package.bbclass2
-rw-r--r--meta/recipes-core/eglibc/eglibc-locale.inc5
2 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index de57230..0d5ce20 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -191,7 +191,7 @@ python package_do_split_gconvs () {
191 191
192 do_split_packages(d, locales_dir, file_regex='(.*)', output_pattern=bpn+'-localedata-%s', \ 192 do_split_packages(d, locales_dir, file_regex='(.*)', output_pattern=bpn+'-localedata-%s', \
193 description='locale definition for %s', hook=calc_locale_deps, extra_depends='') 193 description='locale definition for %s', hook=calc_locale_deps, extra_depends='')
194 bb.data.setVar('PACKAGES', bb.data.getVar('PACKAGES', d) + ' ' + bpn + '-gconv', d) 194 bb.data.setVar('PACKAGES', bb.data.getVar('PACKAGES', d) + ' ' + bb.data.getVar('MLPREFIX', d) + bpn + '-gconv', d)
195 195
196 use_bin = bb.data.getVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", d, 1) 196 use_bin = bb.data.getVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", d, 1)
197 197
diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
index b496ce6..ca3940d 100644
--- a/meta/recipes-core/eglibc/eglibc-locale.inc
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -41,7 +41,10 @@ PACKAGES_DYNAMIC = "locale-base-* \
41 41
42DESCRIPTION_localedef = "eglibc: compile locale definition files" 42DESCRIPTION_localedef = "eglibc: compile locale definition files"
43 43
44FILES_eglibc-gconv = "${libdir}/gconv/*" 44# eglibc-gconv is dynamically added into PACKAGES, thus
45# FILES_eglibc-gconv will not be automatically extended in multilib.
46# Explicitly add ${MLPREFIX} for FILES_eglibc-gconv.
47FILES_${MLPREFIX}eglibc-gconv = "${libdir}/gconv/*"
45FILES_${PN}-dbg += "${libdir}/gconv/.debug/*" 48FILES_${PN}-dbg += "${libdir}/gconv/.debug/*"
46FILES_localedef${PKGSUFFIX} = "${bindir}/localedef" 49FILES_localedef${PKGSUFFIX} = "${bindir}/localedef"
47 50