diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-09-28 14:16:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-28 14:58:54 +0100 |
commit | 0b4ef8aaf8e030a34ed2c3ad86ea3f16e92f1b85 (patch) | |
tree | 400de6908b465948b126822f58c74f7c4743c513 | |
parent | fae0e6c29dbf2a8c0a1ffb7d4092c48687133165 (diff) | |
download | poky-0b4ef8aaf8e030a34ed2c3ad86ea3f16e92f1b85.tar.gz |
libc-package.bbclass: add MLPREFIX when set values to PACKAGES
There are some places that PACKAGES are dynamically set. To support
multilib, we need to add MLPREFIX before the package name in those
settings.
(From OE-Core rev: 693a4c31c9c071e5af21570107698ec79f709246)
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.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 9d328441cc..71a577b5c0 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
@@ -311,7 +311,7 @@ python package_do_split_gconvs () { | |||
311 | raise bb.build.FuncFailed("localedef returned an error") | 311 | raise bb.build.FuncFailed("localedef returned an error") |
312 | 312 | ||
313 | def output_locale(name, locale, encoding): | 313 | def output_locale(name, locale, encoding): |
314 | pkgname = 'locale-base-' + legitimize_package_name(name) | 314 | pkgname = bb.data.getVar('MLPREFIX', d) + 'locale-base-' + legitimize_package_name(name) |
315 | bb.data.setVar('ALLOW_EMPTY_%s' % pkgname, '1', d) | 315 | bb.data.setVar('ALLOW_EMPTY_%s' % pkgname, '1', d) |
316 | bb.data.setVar('PACKAGES', '%s %s' % (pkgname, bb.data.getVar('PACKAGES', d, 1)), d) | 316 | bb.data.setVar('PACKAGES', '%s %s' % (pkgname, bb.data.getVar('PACKAGES', d, 1)), d) |
317 | rprovides = ' virtual-locale-%s' % legitimize_package_name(name) | 317 | rprovides = ' virtual-locale-%s' % legitimize_package_name(name) |