mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 13:39:49 +02:00
PACKAGE_NO_GCONV is set in libc-package.bbclass if not all of 'libc-charsets libc-locale-code libc-locales' included in DISTRO_FEATURES. And then no packages glibc-gconv-* glibc-charmap-* and glibc-localedata-* is created. Update recipes and conf file which depend on these packages to check required distro features. (From OE-Core rev: 58446992de0f16a345f1f55b66d0d34d31dc341b) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
#
|
|
# glibc specific configuration
|
|
#
|
|
|
|
LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') != '']}"
|
|
|
|
LIBCOVERRIDE = ":libc-glibc"
|
|
|
|
PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
|
|
PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc"
|
|
PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc"
|
|
PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
|
|
PREFERRED_PROVIDER_virtual/libc ?= "glibc"
|
|
PREFERRED_PROVIDER_virtual/nativesdk-libc ?= "nativesdk-glibc"
|
|
PREFERRED_PROVIDER_virtual/libc-locale ?= "glibc-locale"
|
|
|
|
CXXFLAGS += "-fvisibility-inlines-hidden"
|
|
|
|
LIBC_DEPENDENCIES = "libsegfault \
|
|
glibc \
|
|
glibc-dbg \
|
|
glibc-dev \
|
|
glibc-utils \
|
|
glibc-thread-db \
|
|
${@get_libc_locales_dependencies(d)}"
|
|
|
|
LIBC_LOCALE_DEPENDENCIES = "\
|
|
glibc-localedata-i18n \
|
|
glibc-gconv-ibm850 \
|
|
glibc-gconv-cp1252 \
|
|
glibc-gconv-iso8859-1 \
|
|
glibc-gconv-iso8859-15"
|
|
|
|
def get_libc_locales_dependencies(d):
|
|
if bb.utils.contains('DISTRO_FEATURES', 'libc-charsets libc-locale-code libc-locales', True, False, d):
|
|
return d.getVar('LIBC_LOCALE_DEPENDENCIES') or ''
|
|
else:
|
|
return ''
|