summaryrefslogtreecommitdiffstats
path: root/meta/classes/multilib.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-07-29 22:21:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-15 15:26:17 +0100
commit375cf1561c0c9356a629495256423b44ddced9b6 (patch)
tree9de44c4b9515654d168d4ea0610a34aa528dc0ec /meta/classes/multilib.bbclass
parent92ad22dc08dd5e615a242425a1d089c4892f5a43 (diff)
downloadpoky-375cf1561c0c9356a629495256423b44ddced9b6.tar.gz
utils.bbclass/multilib.class: Added misc supporting functions.
1. Added variable MULTILIB_VARIANTS to store all the instance variants for multilib extend. 2. Added function all_multilib_tune_values to collect the variable values for all multilib instance. 3. multilib bbclass handler will save the orignal value of all variables defined in MULTILIB_SAVE_VARNAME. (From OE-Core rev: 18bba910e04bff75460f408e4557d4bae21ad592) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/multilib.bbclass')
-rw-r--r--meta/classes/multilib.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 6e1669fb7f..571b7be961 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -6,7 +6,12 @@ python multilib_virtclass_handler () {
6 variant = e.data.getVar("BBEXTENDVARIANT", True) 6 variant = e.data.getVar("BBEXTENDVARIANT", True)
7 if cls != "multilib" or not variant: 7 if cls != "multilib" or not variant:
8 return 8 return
9 9 save_var_name=e.data.getVar("MULTILIB_SAVE_VARNAME", True) or ""
10 for name in save_var_name.split():
11 val=e.data.getVar(name, True)
12 if val:
13 e.data.setVar(name + "_MULTILIB_ORIGINAL", val)
14
10 override = ":virtclass-multilib-" + variant 15 override = ":virtclass-multilib-" + variant
11 16
12 e.data.setVar("MLPREFIX", variant + "-") 17 e.data.setVar("MLPREFIX", variant + "-")