summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-04-06 09:21:26 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-04-06 09:21:26 +0000
commitb87b4742e0b963e0c265cfd3eee02e79ff6041da (patch)
tree91b3a66d949a96edccd644118bbd985c9103f361 /toolchain
parent4d298a2d3771c177da606e00b916f58be7c629a0 (diff)
downloadbuildroot-novena-b87b4742e0b963e0c265cfd3eee02e79ff6041da.tar.gz
buildroot-novena-b87b4742e0b963e0c265cfd3eee02e79ff6041da.zip
Makefile: add BR2_ENABLE_LOCALE_PURGE to purge unwanted locales
Add BR2_ENABLE_LOCALE_PURGE / BR2_ENABLE_LOCALE_WHITELIST options to remove unwanted locales from the target rootfs. Handy for stuff like the gtk stack, which comes with ~25 MB locales. Works similar to localepurge in Debian, E.G. you provide a white list of wanted locales, and everything else is removed.
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/Config.in.222
1 files changed, 22 insertions, 0 deletions
diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.2
index 6daca62d8..a63e1141d 100644
--- a/toolchain/Config.in.2
+++ b/toolchain/Config.in.2
@@ -44,6 +44,28 @@ config BR2_ENABLE_LOCALE_PREGENERATED
Say N here unless your buildhost lacks locale support and you
desparately want to use internationalization on your target.
+config BR2_ENABLE_LOCALE_PURGE
+ bool "Purge unwanted locales"
+ depends on BR2_ENABLE_LOCALE
+ help
+ Explicitly specify what locales to install on target. If N
+ then all locales supported by packages are installed.
+
+config BR2_ENABLE_LOCALE_WHITELIST
+ string "Locales to keep"
+ default "C en_US de fr"
+ depends on BR2_ENABLE_LOCALE_PURGE
+ help
+ Whitespace seperated list of locales to allow on target.
+ Locales not listed here will be removed from the target.
+ See 'locale -a' on your host for a list of locales available
+ on your build host, or have a look in /usr/share/locale in
+ the target file system for available locales.
+
+ Notice that listing a locale here doesn't guarantee that it
+ will be available on the target - That purely depends on the
+ support for that locale in the selected packages.
+
config BR2_USE_WCHAR
bool "Enable WCHAR support"
help