mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 13:39:49 +02:00
Only add locale package dependencies if the eglibc is configured with locale support. This avoids dependencies issues for distros such as poky-tiny [RP: Add PR bump] (From OE-Core rev: bcaea8ec9c9c333f76b368225f60d4fb54c1c7b2) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
#
|
|
# eglibc specific configuration
|
|
#
|
|
|
|
LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION', True) or '') != '']}"
|
|
|
|
# Add glibc overrides to the overrides for eglibc.
|
|
LIBCOVERRIDE = ":libc-glibc"
|
|
OVERRIDES .= "${LIBCOVERRIDE}"
|
|
|
|
PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc"
|
|
PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "eglibc-nativesdk"
|
|
PREFERRED_PROVIDER_virtual/libintl ?= "eglibc"
|
|
PREFERRED_PROVIDER_virtual/libc ?= "eglibc"
|
|
PREFERRED_PROVIDER_virtual/libc-nativesdk ?= "eglibc-nativesdk"
|
|
PREFERRED_PROVIDER_virtual/libc-locale ?= "eglibc-locale"
|
|
|
|
CXXFLAGS += "-fvisibility-inlines-hidden"
|
|
|
|
LIBC_DEPENDENCIES = "libsegfault \
|
|
eglibc \
|
|
eglibc-dbg \
|
|
eglibc-dev \
|
|
eglibc-utils \
|
|
eglibc-thread-db \
|
|
${@get_libc_locales_dependencies(d)}"
|
|
|
|
LIBC_LOCALE_DEPENDENCIES = "\
|
|
eglibc-localedata-i18n \
|
|
eglibc-gconv-ibm850 \
|
|
eglibc-gconv-cp1252 \
|
|
eglibc-gconv-iso8859-1 \
|
|
eglibc-gconv-iso8859-15 \
|
|
locale-base-en-us \
|
|
locale-base-en-gb"
|
|
|
|
def get_libc_locales_dependencies(d):
|
|
if 'libc-locales' in (d.getVar('DISTRO_FEATURES', True) or '').split() :
|
|
return d.getVar('LIBC_LOCALE_DEPENDENCIES', True) or ''
|
|
else:
|
|
return ''
|