diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-04 13:09:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-05 14:24:43 +0000 |
commit | 6ab56c54f316154d89f03ec0c6c2cb39d1736cff (patch) | |
tree | 952d5bde1c81457378d6d995051cd04674dbf489 /meta/classes/libc-package.bbclass | |
parent | 82233cd647b1ecc256afb0c3378906cf8af46f8e (diff) | |
download | poky-6ab56c54f316154d89f03ec0c6c2cb39d1736cff.tar.gz |
classes/recipes: More optimal DISTRO_FEATURES references
Using the contains function results in more optimal sstate checksums
resulting in better cache reuse as we as more consistent code.
(From OE-Core rev: 9c93526756e7cbbff027c88eb972f877bcb1f057)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/libc-package.bbclass')
-rw-r--r-- | meta/classes/libc-package.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 454ee76602..0af42a002c 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
@@ -36,10 +36,10 @@ python __anonymous () { | |||
36 | d.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "compile") | 36 | d.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "compile") |
37 | break | 37 | break |
38 | 38 | ||
39 | distro_features = (d.getVar('DISTRO_FEATURES', True) or '').split() | ||
40 | |||
41 | # try to fix disable charsets/locales/locale-code compile fail | 39 | # try to fix disable charsets/locales/locale-code compile fail |
42 | if 'libc-charsets' in distro_features and 'libc-locales' in distro_features and 'libc-locale-code' in distro_features: | 40 | if oe.utils.contains('DISTRO_FEATURES', 'libc-charsets', True, False, d) and \ |
41 | oe.utils.contains('DISTRO_FEATURES', 'libc-locales', True, False, d) and \ | ||
42 | oe.utils.contains('DISTRO_FEATURES', 'libc-locale-code', True, False, d): | ||
43 | d.setVar('PACKAGE_NO_GCONV', '0') | 43 | d.setVar('PACKAGE_NO_GCONV', '0') |
44 | else: | 44 | else: |
45 | d.setVar('PACKAGE_NO_GCONV', '1') | 45 | d.setVar('PACKAGE_NO_GCONV', '1') |