diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-05 14:23:11 -0500 |
|---|---|---|
| committer | Scott Garman <scott.a.garman@intel.com> | 2012-07-31 15:07:30 -0700 |
| commit | e82c2f0b91611f3e755985bb8d1608ca5792e825 (patch) | |
| tree | 993c67477ac6457b2c8913f732915c156b41bf24 | |
| parent | 15204a6cbcdbbb84e02da05b1fb15644fe7df332 (diff) | |
| download | openembedded-core-e82c2f0b91611f3e755985bb8d1608ca5792e825.tar.gz openembedded-core-e82c2f0b91611f3e755985bb8d1608ca5792e825.tar.bz2 openembedded-core-e82c2f0b91611f3e755985bb8d1608ca5792e825.zip | |
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
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 fde8f446ad..cc3acfa8cc 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -351,6 +351,15 @@ def extend_variants(d, var, extend, delim=':'): variants.append(eext[1]) return " ".join(variants) +def multilib_pkg_extend(d, pkg): + variants = (d.getVar("MULTILIB_VARIANTS", True) or "").split() + if not variants: + return pkg + pkgs = pkg + for v in variants: + pkgs = pkgs + " " + v + "-" + pkg + return pkgs + def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '): """Return a string of all ${var} in all multilib tune configuration""" values = [] |
