diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-07-29 22:21:58 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-15 15:13:33 +0100 |
commit | 18bba910e04bff75460f408e4557d4bae21ad592 (patch) | |
tree | 6fa1bf589e7e8cb817a8a07cdbadfc8ab87a8ab9 /meta/classes/multilib.bbclass | |
parent | 5fc1e6d27f52e2032aa7a8ca20bb90d939d03c77 (diff) | |
download | openembedded-core-18bba910e04bff75460f408e4557d4bae21ad592.tar.gz openembedded-core-18bba910e04bff75460f408e4557d4bae21ad592.tar.bz2 openembedded-core-18bba910e04bff75460f408e4557d4bae21ad592.tar.xz openembedded-core-18bba910e04bff75460f408e4557d4bae21ad592.zip |
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.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/multilib.bbclass')
-rw-r--r-- | meta/classes/multilib.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass index 6e1669fb7..571b7be96 100644 --- a/meta/classes/multilib.bbclass +++ b/meta/classes/multilib.bbclass @@ -6,7 +6,12 @@ python multilib_virtclass_handler () { variant = e.data.getVar("BBEXTENDVARIANT", True) if cls != "multilib" or not variant: return - + save_var_name=e.data.getVar("MULTILIB_SAVE_VARNAME", True) or "" + for name in save_var_name.split(): + val=e.data.getVar(name, True) + if val: + e.data.setVar(name + "_MULTILIB_ORIGINAL", val) + override = ":virtclass-multilib-" + variant e.data.setVar("MLPREFIX", variant + "-") |