support/dependencies: use the new kconfig option to check UTF8 locale
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Dec 2016 09:43:06 +0000 (10:43 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 4 Dec 2016 14:38:16 +0000 (15:38 +0100)
Currently, we require a host with an UTF-8 locale as soone as we build a
Buildroot toolchain with support for locales. This means that we do
erquire such a locale when building a toolchain with either uClibc,
glibc or musl.

However, glibc and musl do not require such a locale to be present.

Use the new option to check if an UTF8 locale is needed on the host,
rather than deriving that from toolchain settings.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/dependencies/dependencies.sh

index e632a14326a654ea1ca87c4fed707a2ef384c3e3..bfd65960ce8ed5d79de3fdfbc9985bbff7e800ce 100755 (executable)
@@ -178,8 +178,7 @@ if test "${missing_progs}" = "yes" ; then
        exit 1
 fi
 
-if grep ^BR2_TOOLCHAIN_BUILDROOT=y $BR2_CONFIG > /dev/null && \
-       grep ^BR2_ENABLE_LOCALE=y       $BR2_CONFIG > /dev/null ; then
+if grep ^BR2_NEEDS_HOST_UTF8_LOCALE=y $BR2_CONFIG > /dev/null; then
        if ! which locale > /dev/null ; then
                echo
                echo "You need locale support on your build machine to build a toolchain supporting locales"