All of lore.kernel.org
 help / color / mirror / Atom feed
From: Diego <diego.ml@zoho.com>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: PACKAGECONFIG and related parameters
Date: Wed, 30 Apr 2014 17:25:10 +0200	[thread overview]
Message-ID: <1887615.4ieHDOx65x@localhost.localdomain> (raw)
In-Reply-To: <3051539.ZH0eHouhiy@peggleto-mobl5.ger.corp.intel.com>

Hi Paul,

In data mercoledì 30 aprile 2014 10:57:18, Paul Eggleton ha scritto:
> Hi Diego,
> 
> <snip>
> 
> You can't do this with PACKAGECONFIG alone, you'd need to use Python, i.e.
> something like this:
> 
> PACKAGECONFIG ?= "gl gles2"
> PACKAGECONFIG[gl] = "..."
> PACKAGECONFIG[gles2] = "..."
> ...
> 
> python __anonymous() {
>     packageconfig = (d.getVar("PACKAGECONFIG", True) or "").split()
>     flavors = []
>     if "gles2" in packageconfig:
>         flavors.append("x11-gles2")
>     if "gl" in packageconfig:
>         flavors.append("x11-gl")
>     if flavors:
>         d.appendVar("EXTRA_OECONF", " --with-flavors=%s" %
> ",".join(flavors)) }
> 

I tried that solution and it works, thank you so much.

For newcomers like me, this may help explaining how that works:
http://stackoverflow.com/a/17857952/813810

I'll do some testings and then I'll submit the patch for the new glmark 
release.

Bests,
Diego



  reply	other threads:[~2014-04-30 15:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 13:24 PACKAGECONFIG and related parameters Diego
2014-04-30  9:05 ` Diego
2014-04-30  9:57   ` Paul Eggleton
2014-04-30 15:25     ` Diego [this message]
2014-04-30  9:33 ` ChenQi

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=1887615.4ieHDOx65x@localhost.localdomain \
    --to=diego.ml@zoho.com \
    --cc=paul.eggleton@linux.intel.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.