Patchwork [2/7] image.bbclass: Use ?= to set LINGUAS_INSTALL

login
register
mail settings
Submitter Dongxiao Xu
Date Jan. 6, 2012, 9:05 a.m.
Message ID <225babe546891342c9ea02c4d31fb97c2f143ed0.1325840474.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/18643/
State Accepted
Commit c5c3689b7102cc0c281de736c215d66dd4f1e874
Headers show

Comments

Dongxiao Xu - Jan. 6, 2012, 9:05 a.m.
Hob may dynamically sets BBLAYERS to bitbake server, thus we need a
flexible way to load LINGUAS_INSTALL value.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/classes/image.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 275b28f..295b653 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -119,7 +119,7 @@  ROOTFS_POSTPROCESS_COMMAND ?= ""
 # some default locales
 IMAGE_LINGUAS ?= "de-de fr-fr en-gb"
 
-LINGUAS_INSTALL = "${@" ".join(map(lambda s: "locale-base-%s" % s, d.getVar('IMAGE_LINGUAS', 1).split()))}"
+LINGUAS_INSTALL ?= "${@" ".join(map(lambda s: "locale-base-%s" % s, d.getVar('IMAGE_LINGUAS', 1).split()))}"
 
 PSEUDO_PASSWD = "${IMAGE_ROOTFS}"