diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-05 14:23:11 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-09 16:58:58 +0100 |
commit | 27173095011f19c261eb76d8545b2453bd74702d (patch) | |
tree | a860ed424616bdcb57ca2a87b61c261cec4626c6 | |
parent | fe5feba665980b515a624bf6f07fff864a9edcfa (diff) | |
download | poky-27173095011f19c261eb76d8545b2453bd74702d.tar.gz |
utils.bbclass: add helper function to add all multilib variants of a specific package
This is useful for the scenario where we want to add 'gcc' to
the root file system for all multilib variants
(From OE-Core rev: 7cd54693363882854cd026ebe071e9f2e03d364e)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/utils.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index f8b09b423c..ccf78fcfee 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -325,6 +325,15 @@ def extend_variants(d, var, extend, delim=':'): | |||
325 | variants.append(eext[1]) | 325 | variants.append(eext[1]) |
326 | return " ".join(variants) | 326 | return " ".join(variants) |
327 | 327 | ||
328 | def multilib_pkg_extend(d, pkg): | ||
329 | variants = (d.getVar("MULTILIB_VARIANTS", True) or "").split() | ||
330 | if not variants: | ||
331 | return pkg | ||
332 | pkgs = pkg | ||
333 | for v in variants: | ||
334 | pkgs = pkgs + " " + v + "-" + pkg | ||
335 | return pkgs | ||
336 | |||
328 | def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '): | 337 | def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '): |
329 | """Return a string of all ${var} in all multilib tune configuration""" | 338 | """Return a string of all ${var} in all multilib tune configuration""" |
330 | values = [] | 339 | values = [] |