aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-08 15:50:31 -0700
committerChris Larson <chris_larson@mentor.com>2010-11-08 15:50:31 -0700
commit0ad93ec8b5042894408078be53c39c4be768a49c (patch)
tree6e75999c0a532e09861e9eef80807148d96a3de4
parent728e072e5d4b3fd27b3609d3f72c716e77d7b44f (diff)
downloadopenembedded-0ad93ec8b5042894408078be53c39c4be768a49c.zip
openembedded-0ad93ec8b5042894408078be53c39c4be768a49c.tar.gz
openembedded-0ad93ec8b5042894408078be53c39c4be768a49c.tar.bz2
image: don't include glibc-localedata-i18n when IMAGE_LINGUAS is empty
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--classes/image.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 583e9c4..d98ba5c 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -33,7 +33,8 @@ IMAGE_BOOT ?= "${IMAGE_INITSCRIPTS} \
IMAGE_LINGUAS ?= "de-de fr-fr en-gb"
LINGUAS_INSTALL = ""
-LINGUAS_INSTALL_linux = "glibc-localedata-i18n"
+LINGUAS_INSTALL_linux = "${@base_ifelse(d.getVar('IMAGE_LINGUAS', True), \
+ 'glibc-localedata-i18n', '')}"
LINGUAS_INSTALL_linux += "${@' '.join(map(lambda s: 'locale-base-%s' % s, '${IMAGE_LINGUAS}'.split()))}"
LINGUAS_INSTALL_linux-gnueabi = "${LINGUAS_INSTALL_linux}"