Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Matthew McClintock <msm@freescale.com>
Subject: Re: [PATCH] utils.bbclass: add helper function to add all multilib variants of a specific package
Date: Mon, 09 Jul 2012 09:57:48 -0700	[thread overview]
Message-ID: <4FFB0D8C.50702@linux.intel.com> (raw)
In-Reply-To: <1341516191-31573-1-git-send-email-msm@freescale.com>

On 07/05/2012 12:23 PM, Matthew McClintock wrote:
> From: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> 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>
> ---
> RP was the author of this patch via pastebin only... I thought
> I would properly attribute it to him
>
>   meta/classes/utils.bbclass |    9 +++++++++
>   1 file changed, 9 insertions(+)
>
> 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=':'):
>   			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 = []
>

Merged this along with the MakeMaker patch

Thanks
	Sau!





      reply	other threads:[~2012-07-09 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 19:23 [PATCH] utils.bbclass: add helper function to add all multilib variants of a specific package Matthew McClintock
2012-07-09 16:57 ` Saul Wold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFB0D8C.50702@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=msm@freescale.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox