summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-05 19:23:11 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 10:16:43 (GMT)
commit7c5318e1a0e69331a727ef679ab7ff172e353862 (patch)
tree96193c4b4c72309d4a52e84197d319886c9c024d /meta/classes
parent88927f4f1f3aa09a8a76ce9cb41deb74161af4c1 (diff)
downloadpoky-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')
-rw-r--r--meta/classes/utils.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index fde8f44..cc3acfa 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
354def 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
354def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '): 363def 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 = []