Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Anuj Mittal" <anuj.mittal@intel.com>
To: "arthur.she@linaro.org" <arthur.she@linaro.org>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core][PATCH] igt-gpu-tools: Add PACKAGECONFIG for Chamelium support
Date: Thu, 9 Jul 2020 01:29:17 +0000	[thread overview]
Message-ID: <3b9022a2bc437d6df7d2adecd951bc4988af9d32.camel@intel.com> (raw)
In-Reply-To: <CAJ8hLzGd7Yvxz6=56FSLXs3VMpX4vr5gcY3WwwVrYBzEuka0hA@mail.gmail.com>

On Tue, 2020-07-07 at 18:01 -0700, Arthur She wrote:
> Hi Anuj,
> Thanks for your review.
> I don't need to put "-Dchamelium=disabled" in the EXTRA_OEMESON.
> Because chamelium is disabled by default.
> Is it correct?

Yes, since it's disabled by default, -Dchamelium=disabled is already
being passed to EXTRA_OEMESON.

In this change, if you add chamelium to PACKAGECONFIG, it will pass
both -Dchamelium=enabled and -Dchamelium=disabled to EXTRA_OEMESON
which is incorrect. It probably works for you because PACKAGECONFIG
arguments are added last ...

Thanks,

Anuj

> 
> Thanks,
> Arthur
> 
> On Tue, Jul 7, 2020 at 4:43 PM Mittal, Anuj <anuj.mittal@intel.com>
> wrote:
> > On Tue, 2020-07-07 at 14:09 -0700, Arthur She wrote:
> > > Chamelium is a hardware device that can be used for external
> > display
> > > test automation [1].
> > > It is disabled by default and can be turned on through
> > PACKAGECONFIG.
> > > 
> > > [1] https://www.chromium.org/chromium-os/testing/chamelium
> > > 
> > > Signed-off-by: Arthur She <arthur.she@linaro.org>
> > > ---
> > >  meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb | 4
> > +++-
> > >  1 file changed, 3 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-
> > tools_git.bb 
> > > b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
> > > index f60880c292..29031e64dc 100644
> > > --- a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
> > > +++ b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
> > > @@ -20,7 +20,9 @@ RDEPENDS_${PN}-tests += "bash"
> > >  
> > >  PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests"
> > >  
> > > -EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled"
> > > +PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-
> > > Dchamelium=disabled,gsl xmlrpc-c"
> > > +
> > > +EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled
> > > -Dchamelium=disabled"
> > 
> > This is disabling chamelium even if it's enabled using
> > PACKAGECONFIG.
> > 
> > Thanks,
> > 
> > Anuj

  reply	other threads:[~2020-07-09  1:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07 21:09 [OE-core][PATCH] igt-gpu-tools: Add PACKAGECONFIG for Chamelium support Arthur She
2020-07-07 23:43 ` Anuj Mittal
2020-07-08  1:01   ` Arthur She
2020-07-09  1:29     ` Anuj Mittal [this message]
2020-07-09  2:19       ` Arthur She

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=3b9022a2bc437d6df7d2adecd951bc4988af9d32.camel@intel.com \
    --to=anuj.mittal@intel.com \
    --cc=arthur.she@linaro.org \
    --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