[oe-commits] org.oe.dev glibc, local.conf.sample: Introduce and handle new OE variable, GLIBC_GENERATE_LOCALES
pfalcon commit
openembedded-commits at lists.openembedded.org
Sun Mar 25 18:11:06 UTC 2007
glibc, local.conf.sample: Introduce and handle new OE variable, GLIBC_GENERATE_LOCALES
to limit set of generated binary locales.
* If ENABLE_BINARY_LOCALE_GENERATION is set to "1", you can limit locales
generated to the list provided by GLIBC_GENERATE_LOCALES. This is huge
time-savior for developmental builds. Format: list of locale.encoding pairs
with spaces as separators, e.g.:
GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 de_DE.UTF-8"
* Check your distro for minimal set of locales required. Old-time default is
"en_GB.UTF-8 de_DE.UTF-8 fr_FR.UTF-8".
* Angstrom requires en_GB only.
* This commit does not changes the default, which is still generation of all
available locales.
* Closes #1966.
Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 1476457b393c6aacc4fd544df9be2a796115c8b0
ViewMTN: http://monotone.openembedded.org/revision.psp?id=1476457b393c6aacc4fd544df9be2a796115c8b0
Files:
1
conf/local.conf.sample
packages/glibc/glibc-package.bbclass
Diffs:
#
# mt diff -rb4f34bb5a0d575ac6c12607433bff14947de9d60 -r1476457b393c6aacc4fd544df9be2a796115c8b0
#
#
#
# patch "conf/local.conf.sample"
# from [8396feaa1c9772ecb13b511fb788690db557fcf9]
# to [1ff6d0cc7db3274777e6a8ed833701e308a6cb07]
#
# patch "packages/glibc/glibc-package.bbclass"
# from [35080b06da7ed29f923561784770ee574894cbc2]
# to [45250e3b9ed0bf25df8e696bed6078f4e20730ac]
#
============================================================
--- conf/local.conf.sample 8396feaa1c9772ecb13b511fb788690db557fcf9
+++ conf/local.conf.sample 1ff6d0cc7db3274777e6a8ed833701e308a6cb07
@@ -90,6 +90,12 @@ PREFERRED_PROVIDERS += " virtual/${TARGE
# ENABLE_BINARY_LOCALE_GENERATION = "0"
# ASSUME_PROVIDED += "qemu-native"
+# If ENABLE_BINARY_LOCALE_GENERATION is set to "1", you can limit locales
+# generated to the list provided by GLIBC_GENERATE_LOCALES. This is huge
+# time-savior for developmental builds. Format: list of locale.encoding pairs
+# with spaces as separators.
+# GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 de_DE.UTF-8"
+
# Uncomment this to select a particular major kernel version if the MACHINE setting
# supports more than one major kernel version. Currently this is suported by the
# following MACHINE types: poodle, tosa and simpad.
============================================================
--- packages/glibc/glibc-package.bbclass 35080b06da7ed29f923561784770ee574894cbc2
+++ packages/glibc/glibc-package.bbclass 45250e3b9ed0bf25df8e696bed6078f4e20730ac
@@ -202,9 +202,14 @@ python package_do_split_gconvs () {
do_split_packages(d, locales_dir, file_regex='(.*)', output_pattern='glibc-localedata-%s', description='locale definition for %s', hook=calc_locale_deps, extra_depends='')
bb.data.setVar('PACKAGES', bb.data.getVar('PACKAGES', d) + ' glibc-gconv', d)
- f = open(os.path.join(bb.data.getVar('WORKDIR', d, 1), "SUPPORTED"), "r")
- supported = f.readlines()
- f.close()
+ supported = bb.data.getVar('GLIBC_GENERATE_LOCALES', d, 1)
+ if not supported or supported == "all":
+ f = open(os.path.join(bb.data.getVar('WORKDIR', d, 1), "SUPPORTED"), "r")
+ supported = f.readlines()
+ f.close()
+ else:
+ supported = supported.split()
+ supported = map(lambda s:s.replace(".", " ") + "\n", supported)
dot_re = re.compile("(.*)\.(.*)")
More information about the Openembedded-commits
mailing list