diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-04-24 15:59:20 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-25 17:10:58 +0100 |
commit | d83b16dbf0862be387f84228710cb165c6d2b03b (patch) | |
tree | 37a594f2efa42513359e45477ab0b69857226563 /meta/recipes-core/eglibc | |
parent | 93499ebc46547f5bf6dcecd5a786ead9f726de28 (diff) | |
download | openembedded-core-d83b16dbf0862be387f84228710cb165c6d2b03b.tar.gz openembedded-core-d83b16dbf0862be387f84228710cb165c6d2b03b.tar.bz2 openembedded-core-d83b16dbf0862be387f84228710cb165c6d2b03b.zip |
Globally replace 'base_contains' calls with 'bb.utils.contains'
The base_contains is kept as a compatibility method and we ought to
not use it in OE-Core so we can remove it from base metadata in
future.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-options.inc | 74 | ||||
-rw-r--r-- | meta/recipes-core/eglibc/eglibc.inc | 2 |
2 files changed, 38 insertions, 38 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-options.inc b/meta/recipes-core/eglibc/eglibc-options.inc index 0432758417..259e752858 100644 --- a/meta/recipes-core/eglibc/eglibc-options.inc +++ b/meta/recipes-core/eglibc/eglibc-options.inc @@ -14,43 +14,43 @@ def eglibc_cfg(feature, tokens, cnf): def features_to_eglibc_settings(d): cnf = ([]) - ipv4 = base_contains('DISTRO_FEATURES', 'ipv4', True, False, d) - ipv6 = base_contains('DISTRO_FEATURES', 'ipv6', True, False, d) - libc_backtrace = base_contains('DISTRO_FEATURES', 'libc-backtrace', True, False, d) - libc_big_macros = base_contains('DISTRO_FEATURES', 'libc-big-macros', True, False, d) - libc_bsd = base_contains('DISTRO_FEATURES', 'libc-bsd', True, False, d) - libc_cxx_tests = base_contains('DISTRO_FEATURES', 'libc-cxx-tests', True, False, d) - libc_catgets = base_contains('DISTRO_FEATURES', 'libc-catgets', True, False, d) - libc_charsets = base_contains('DISTRO_FEATURES', 'libc-charsets', True, False, d) - libc_crypt = base_contains('DISTRO_FEATURES', 'libc-crypt', True, False, d) - libc_crypt_ufc = base_contains('DISTRO_FEATURES', 'libc-crypt-ufc', True, False, d) - libc_db_aliases = base_contains('DISTRO_FEATURES', 'libc-db-aliases', True, False, d) - libc_envz = base_contains('DISTRO_FEATURES', 'libc-envz', True, False, d) - libc_fcvt = base_contains('DISTRO_FEATURES', 'libc-fcvt', True, False, d) - libc_fmtmsg = base_contains('DISTRO_FEATURES', 'libc-fmtmsg', True, False, d) - libc_fstab = base_contains('DISTRO_FEATURES', 'libc-fstab', True, False, d) - libc_ftraverse = base_contains('DISTRO_FEATURES', 'libc-ftraverse', True, False, d) - libc_getlogin = base_contains('DISTRO_FEATURES', 'libc-getlogin', True, False, d) - libc_idn = base_contains('DISTRO_FEATURES', 'libc-idn', True, False, d) - libc_inet_anl = base_contains('DISTRO_FEATURES', 'libc-inet-anl', True, False, d) - libc_libm = base_contains('DISTRO_FEATURES', 'libc-libm', True, False, d) - libc_locales = base_contains('DISTRO_FEATURES', 'libc-locales', True, False, d) - libc_locale_code = base_contains('DISTRO_FEATURES', 'libc-locale-code', True, False, d) - libc_memusage = base_contains('DISTRO_FEATURES', 'libc-memusage', True, False, d) - libc_nis = base_contains('DISTRO_FEATURES', 'libc-nis', True, False, d) - libc_nsswitch = base_contains('DISTRO_FEATURES', 'libc-nsswitch', True, False, d) - libc_rcmd = base_contains('DISTRO_FEATURES', 'libc-rcmd', True, False, d) - libc_rtld_debug = base_contains('DISTRO_FEATURES', 'libc-rtld-debug', True, False, d) - libc_spawn = base_contains('DISTRO_FEATURES', 'libc-spawn', True, False, d) - libc_streams = base_contains('DISTRO_FEATURES', 'libc-streams', True, False, d) - libc_sunrpc = base_contains('DISTRO_FEATURES', 'libc-sunrpc', True, False, d) - libc_utmp = base_contains('DISTRO_FEATURES', 'libc-utmp', True, False, d) - libc_utmpx = base_contains('DISTRO_FEATURES', 'libc-utmpx', True, False, d) - libc_wordexp = base_contains('DISTRO_FEATURES', 'libc-wordexp', True, False, d) - libc_posix_clang_wchar = base_contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', True, False, d) - libc_posix_regexp = base_contains('DISTRO_FEATURES', 'libc-posix-regexp', True, False, d) - libc_posix_regexp_glibc = base_contains('DISTRO_FEATURES', 'libc-posix-regexp-glibc', True, False, d) - libc_posix_wchar_io = base_contains('DISTRO_FEATURES', 'libc-posix-wchar-io', True, False, d) + ipv4 = bb.utils.contains('DISTRO_FEATURES', 'ipv4', True, False, d) + ipv6 = bb.utils.contains('DISTRO_FEATURES', 'ipv6', True, False, d) + libc_backtrace = bb.utils.contains('DISTRO_FEATURES', 'libc-backtrace', True, False, d) + libc_big_macros = bb.utils.contains('DISTRO_FEATURES', 'libc-big-macros', True, False, d) + libc_bsd = bb.utils.contains('DISTRO_FEATURES', 'libc-bsd', True, False, d) + libc_cxx_tests = bb.utils.contains('DISTRO_FEATURES', 'libc-cxx-tests', True, False, d) + libc_catgets = bb.utils.contains('DISTRO_FEATURES', 'libc-catgets', True, False, d) + libc_charsets = bb.utils.contains('DISTRO_FEATURES', 'libc-charsets', True, False, d) + libc_crypt = bb.utils.contains('DISTRO_FEATURES', 'libc-crypt', True, False, d) + libc_crypt_ufc = bb.utils.contains('DISTRO_FEATURES', 'libc-crypt-ufc', True, False, d) + libc_db_aliases = bb.utils.contains('DISTRO_FEATURES', 'libc-db-aliases', True, False, d) + libc_envz = bb.utils.contains('DISTRO_FEATURES', 'libc-envz', True, False, d) + libc_fcvt = bb.utils.contains('DISTRO_FEATURES', 'libc-fcvt', True, False, d) + libc_fmtmsg = bb.utils.contains('DISTRO_FEATURES', 'libc-fmtmsg', True, False, d) + libc_fstab = bb.utils.contains('DISTRO_FEATURES', 'libc-fstab', True, False, d) + libc_ftraverse = bb.utils.contains('DISTRO_FEATURES', 'libc-ftraverse', True, False, d) + libc_getlogin = bb.utils.contains('DISTRO_FEATURES', 'libc-getlogin', True, False, d) + libc_idn = bb.utils.contains('DISTRO_FEATURES', 'libc-idn', True, False, d) + libc_inet_anl = bb.utils.contains('DISTRO_FEATURES', 'libc-inet-anl', True, False, d) + libc_libm = bb.utils.contains('DISTRO_FEATURES', 'libc-libm', True, False, d) + libc_locales = bb.utils.contains('DISTRO_FEATURES', 'libc-locales', True, False, d) + libc_locale_code = bb.utils.contains('DISTRO_FEATURES', 'libc-locale-code', True, False, d) + libc_memusage = bb.utils.contains('DISTRO_FEATURES', 'libc-memusage', True, False, d) + libc_nis = bb.utils.contains('DISTRO_FEATURES', 'libc-nis', True, False, d) + libc_nsswitch = bb.utils.contains('DISTRO_FEATURES', 'libc-nsswitch', True, False, d) + libc_rcmd = bb.utils.contains('DISTRO_FEATURES', 'libc-rcmd', True, False, d) + libc_rtld_debug = bb.utils.contains('DISTRO_FEATURES', 'libc-rtld-debug', True, False, d) + libc_spawn = bb.utils.contains('DISTRO_FEATURES', 'libc-spawn', True, False, d) + libc_streams = bb.utils.contains('DISTRO_FEATURES', 'libc-streams', True, False, d) + libc_sunrpc = bb.utils.contains('DISTRO_FEATURES', 'libc-sunrpc', True, False, d) + libc_utmp = bb.utils.contains('DISTRO_FEATURES', 'libc-utmp', True, False, d) + libc_utmpx = bb.utils.contains('DISTRO_FEATURES', 'libc-utmpx', True, False, d) + libc_wordexp = bb.utils.contains('DISTRO_FEATURES', 'libc-wordexp', True, False, d) + libc_posix_clang_wchar = bb.utils.contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', True, False, d) + libc_posix_regexp = bb.utils.contains('DISTRO_FEATURES', 'libc-posix-regexp', True, False, d) + libc_posix_regexp_glibc = bb.utils.contains('DISTRO_FEATURES', 'libc-posix-regexp-glibc', True, False, d) + libc_posix_wchar_io = bb.utils.contains('DISTRO_FEATURES', 'libc-posix-wchar-io', True, False, d) # arrange the dependencies among eglibc configuable options according to file option-groups.def from eglibc source code new_dep = True diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc index 04c5d9a237..5008cf2931 100644 --- a/meta/recipes-core/eglibc/eglibc.inc +++ b/meta/recipes-core/eglibc/eglibc.inc @@ -12,7 +12,7 @@ TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" # entire image as -O0, we override it with -O2 here and give a note about it. def get_optimization(d): selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True) - if base_contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": + if bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": bb.note("eglibc can't be built with -O0, -O2 will be used instead.") return selected_optimization.replace("-O0", "-O2") return selected_optimization |