diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/libc-package.bbclass | 11 | ||||
| -rw-r--r-- | meta/conf/distro/include/default-distrovars.inc | 1 | ||||
| -rw-r--r-- | meta/conf/documentation.conf | 1 |
3 files changed, 9 insertions, 4 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index adb423034d..467d567923 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
| @@ -332,6 +332,8 @@ python package_do_split_gconvs () { | |||
| 332 | bb.build.exec_func("do_prep_locale_tree", d) | 332 | bb.build.exec_func("do_prep_locale_tree", d) |
| 333 | 333 | ||
| 334 | utf8_only = int(d.getVar('LOCALE_UTF8_ONLY', True) or 0) | 334 | utf8_only = int(d.getVar('LOCALE_UTF8_ONLY', True) or 0) |
| 335 | utf8_is_default = int(d.getVar('LOCALE_UTF8_IS_DEFAULT', True) or 0) | ||
| 336 | |||
| 335 | encodings = {} | 337 | encodings = {} |
| 336 | for locale in to_generate: | 338 | for locale in to_generate: |
| 337 | charset = supported[locale] | 339 | charset = supported[locale] |
| @@ -344,10 +346,11 @@ python package_do_split_gconvs () { | |||
| 344 | else: | 346 | else: |
| 345 | base = locale | 347 | base = locale |
| 346 | 348 | ||
| 347 | # Precompiled locales are kept as is, obeying SUPPORTED, while | 349 | # Non-precompiled locales may be renamed so that the default |
| 348 | # others are adjusted, ensuring that the non-suffixed locales | 350 | # (non-suffixed) encoding is always UTF-8, i.e., instead of en_US and |
| 349 | # are utf-8, while the suffixed are not. | 351 | # en_US.UTF-8, we have en_US and en_US.ISO-8859-1. This implicitly |
| 350 | if use_bin == "precompiled": | 352 | # contradicts SUPPORTED. |
| 353 | if use_bin == "precompiled" or not utf8_is_default: | ||
| 351 | output_locale(locale, base, charset) | 354 | output_locale(locale, base, charset) |
| 352 | else: | 355 | else: |
| 353 | if charset == 'UTF-8': | 356 | if charset == 'UTF-8': |
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc index 0c6d018365..ce42bde4fd 100644 --- a/meta/conf/distro/include/default-distrovars.inc +++ b/meta/conf/distro/include/default-distrovars.inc | |||
| @@ -7,6 +7,7 @@ KEEPUIMAGE ??= "yes" | |||
| 7 | IMAGE_LINGUAS ?= "en-us en-gb" | 7 | IMAGE_LINGUAS ?= "en-us en-gb" |
| 8 | ENABLE_BINARY_LOCALE_GENERATION ?= "1" | 8 | ENABLE_BINARY_LOCALE_GENERATION ?= "1" |
| 9 | LOCALE_UTF8_ONLY ?= "0" | 9 | LOCALE_UTF8_ONLY ?= "0" |
| 10 | LOCALE_UTF8_IS_DEFAULT ?= "1" | ||
| 10 | 11 | ||
| 11 | DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11" | 12 | DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11" |
| 12 | DISTRO_FEATURES_LIBC_DEFAULT ?= "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \ | 13 | DISTRO_FEATURES_LIBC_DEFAULT ?= "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \ |
diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index a74da7769a..1e09b6577e 100644 --- a/meta/conf/documentation.conf +++ b/meta/conf/documentation.conf | |||
| @@ -266,6 +266,7 @@ LICENSE_PATH[doc] = "Path to additional licenses used during the build." | |||
| 266 | LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration." | 266 | LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration." |
| 267 | LINUX_VERSION[doc] = "The Linux version from kernel.org on which the Linux kernel image being built using the OpenEmbedded build system is based. You define this variable in the kernel recipe." | 267 | LINUX_VERSION[doc] = "The Linux version from kernel.org on which the Linux kernel image being built using the OpenEmbedded build system is based. You define this variable in the kernel recipe." |
| 268 | LINUX_VERSION_EXTENSION[doc] = "A string extension compiled into the version string of the Linux kernel built with the OpenEmbedded build system. You define this variable in the kernel recipe." | 268 | LINUX_VERSION_EXTENSION[doc] = "A string extension compiled into the version string of the Linux kernel built with the OpenEmbedded build system. You define this variable in the kernel recipe." |
| 269 | LOCALE_UTF8_IS_DEFAULT[doc] = "If set, locale names are renamed such that those lacking an explicit encoding (e.g. en_US) will always be UTF-8, and non-UTF-8 encodings are renamed to, e.g., en_US.ISO-8859-1. Otherwise, the encoding is specified by glibc's SUPPORTED file. Not supported for precompiled locales." | ||
| 269 | LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log" | 270 | LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log" |
| 270 | 271 | ||
| 271 | #M | 272 | #M |
