mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
@@ -36,10 +36,10 @@ python __anonymous () {
|
||||
d.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "compile")
|
||||
break
|
||||
|
||||
distro_features = (d.getVar('DISTRO_FEATURES', True) or '').split()
|
||||
|
||||
# try to fix disable charsets/locales/locale-code compile fail
|
||||
if 'libc-charsets' in distro_features and 'libc-locales' in distro_features and 'libc-locale-code' in distro_features:
|
||||
if oe.utils.contains('DISTRO_FEATURES', 'libc-charsets', True, False, d) and \
|
||||
oe.utils.contains('DISTRO_FEATURES', 'libc-locales', True, False, d) and \
|
||||
oe.utils.contains('DISTRO_FEATURES', 'libc-locale-code', True, False, d):
|
||||
d.setVar('PACKAGE_NO_GCONV', '0')
|
||||
else:
|
||||
d.setVar('PACKAGE_NO_GCONV', '1')
|
||||
|
||||
Reference in New Issue
Block a user