diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-05 14:23:11 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-21 11:16:43 +0100 |
| commit | 7c5318e1a0e69331a727ef679ab7ff172e353862 (patch) | |
| tree | 96193c4b4c72309d4a52e84197d319886c9c024d /meta/classes/utils.bbclass | |
| parent | 88927f4f1f3aa09a8a76ce9cb41deb74161af4c1 (diff) | |
| download | poky-7c5318e1a0e69331a727ef679ab7ff172e353862.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: e82c2f0b91611f3e755985bb8d1608ca5792e825)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/utils.bbclass')
| -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=':'): | |||
| 351 | variants.append(eext[1]) | 351 | variants.append(eext[1]) |
| 352 | return " ".join(variants) | 352 | return " ".join(variants) |
| 353 | 353 | ||
| 354 | def multilib_pkg_extend(d, pkg): | ||
| 355 | variants = (d.getVar("MULTILIB_VARIANTS", True) or "").split() | ||
| 356 | if not variants: | ||
| 357 | return pkg | ||
| 358 | pkgs = pkg | ||
| 359 | for v in variants: | ||
| 360 | pkgs = pkgs + " " + v + "-" + pkg | ||
| 361 | return pkgs | ||
| 362 | |||
| 354 | def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '): | 363 | def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '): |
| 355 | """Return a string of all ${var} in all multilib tune configuration""" | 364 | """Return a string of all ${var} in all multilib tune configuration""" |
| 356 | values = [] | 365 | values = [] |
