toolchain: do not allow locale generation when locale support is not available
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 13 Nov 2014 22:17:26 +0000 (23:17 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 21 Nov 2014 20:50:59 +0000 (21:50 +0100)
When the C library being used is uClibc, the locale support can be
disabled. In this case, it does not make sense to show the "Generate
locales" option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
toolchain/toolchain-common.in

index 683c143c2d5fba746364881e6525aee7bae3a08a..ad04d6459e9d68c99c27c94d473484871515a362 100644 (file)
@@ -69,7 +69,7 @@ config BR2_GENERATE_LOCALE
        string "Generate locale data"
        default ""
        depends on \
-               BR2_TOOLCHAIN_BUILDROOT_UCLIBC || \
+               (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
                BR2_TOOLCHAIN_USES_GLIBC
        help
          Generate support for a list of locales. Locales can be