summaryrefslogtreecommitdiffstats
path: root/meta/classes/libc-package.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-06-23 18:59:39 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 13:44:41 +0100
commit80beb670257cba98df2660b04307584523f728d6 (patch)
treec5ba26d1d51c9b161792062c5a20ddad73ec63c6 /meta/classes/libc-package.bbclass
parent8fa9d64f1d5128f304a0d36dbf55f49ccaf784b1 (diff)
downloadpoky-80beb670257cba98df2660b04307584523f728d6.tar.gz
libc-package.bbclass: Replace hard coded libdir.
Replace the hard coded libdir for locale generating to meet the multilib requirement. (From OE-Core rev: 1609fd2b6582667106a6f065cfa031f68cee7552) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/libc-package.bbclass')
-rw-r--r--meta/classes/libc-package.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 5737af4dfc..4bc58c8e57 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -253,10 +253,11 @@ python package_do_split_gconvs () {
253 253
254 def output_locale_binary(name, pkgname, locale, encoding): 254 def output_locale_binary(name, pkgname, locale, encoding):
255 treedir = base_path_join(bb.data.getVar("WORKDIR", d, 1), "locale-tree") 255 treedir = base_path_join(bb.data.getVar("WORKDIR", d, 1), "locale-tree")
256 ldlibdir = "%s/lib" % treedir 256 ldlibdir = base_path_join(treedir, bb.data.getVar("base_libdir", d, 1))
257 path = bb.data.getVar("PATH", d, 1) 257 path = bb.data.getVar("PATH", d, 1)
258 i18npath = base_path_join(treedir, datadir, "i18n") 258 i18npath = base_path_join(treedir, datadir, "i18n")
259 gconvpath = base_path_join(treedir, "iconvdata") 259 gconvpath = base_path_join(treedir, "iconvdata")
260 outputpath = base_path_join(treedir, libdir, "locale")
260 261
261 use_cross_localedef = bb.data.getVar("LOCALE_GENERATION_WITH_CROSS-LOCALEDEF", d, 1) or "0" 262 use_cross_localedef = bb.data.getVar("LOCALE_GENERATION_WITH_CROSS-LOCALEDEF", d, 1) or "0"
262 if use_cross_localedef == "1": 263 if use_cross_localedef == "1":
@@ -276,8 +277,8 @@ python package_do_split_gconvs () {
276 raise bb.build.FuncFailed("unknown arch:" + target_arch + " for locale_arch_options") 277 raise bb.build.FuncFailed("unknown arch:" + target_arch + " for locale_arch_options")
277 278
278 localedef_opts += " --force --old-style --no-archive --prefix=%s \ 279 localedef_opts += " --force --old-style --no-archive --prefix=%s \
279 --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/usr/lib/locale/%s" \ 280 --inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s" \
280 % (treedir, treedir, datadir, locale, encoding, treedir, name) 281 % (treedir, treedir, datadir, locale, encoding, outputpath, name)
281 282
282 cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \ 283 cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \
283 (path, i18npath, gconvpath, localedef_opts) 284 (path, i18npath, gconvpath, localedef_opts)