package/glibc: install locale utility when NLS is enabled

Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Pascal de Bruijn 2019-11-26 09:55:41 +01:00 committed by Thomas Petazzoni
parent 8ef18c3b81
commit fb1ee93ca4
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ config BR2_PACKAGE_GLIBC_UTILS
depends on BR2_PACKAGE_BASH
help
Enabling this option will compile and install the getconf,
ldconfig and ldd glibc utilities for the target.
ldconfig, ldd and locale glibc utilities for the target.
comment "glibc utilities need bash"
depends on !BR2_PACKAGE_BASH

View File

@ -146,7 +146,10 @@ endif
ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
GLIBC_TARGET_UTILS_USR_BIN = posix/getconf elf/ldd
GLIBC_TARGET_UTILS_SBIN = elf/ldconfig
endif
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
GLIBC_TARGET_UTILS_USR_BIN += locale/locale
endif
define GLIBC_INSTALL_TARGET_CMDS