summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-07-31 14:17:21 +0000
committerPhil Blundell <philb@gnu.org>2004-07-31 14:17:21 +0000
commit34a5f9f816a4a580569eaf3a2a219269e5a1639b (patch)
treeba7c38d87218defbc3dd22e685c6db1db2a475ee
parent1f9fe5b22710cb2c6701bfeed45ef38f6304e363 (diff)
add support for installing locale packages
BKrev: 410ba9f1zKSvmvH2TCwVXc7HhC1Anw
-rw-r--r--classes/rootfs_ipk.oeclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/rootfs_ipk.oeclass b/classes/rootfs_ipk.oeclass
index 0494969436..723712ab86 100644
--- a/classes/rootfs_ipk.oeclass
+++ b/classes/rootfs_ipk.oeclass
@@ -17,6 +17,11 @@ IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}"
IMAGE_POSTPROCESS_COMMAND ?= ""
+# some default locales
+IMAGE_LINGUAS ?= "de-de fr-fr en-gb"
+
+IPKG_INSTALL =+ "${@" ".join(map(lambda s: "locale-base-%s" % s, oe.data.getVar('IMAGE_LINGUAS', d, 1).split()))}"
+
real_do_rootfs () {
set -x
rm -rf ${IMAGE_ROOTFS}