All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Armin Kuster <akuster808@gmail.com>,
	 openembeded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-oe][PATCH 8/9] libgpiod: ptest: warn if the gpio-mockup kernel module is not selected
Date: Mon, 7 Jun 2021 08:14:06 -0700	[thread overview]
Message-ID: <CAMKF1spmuj6ujbKF5JVWeixGmGtiY_zvjE32TVF79+3MKeTpxQ@mail.gmail.com> (raw)
In-Reply-To: <CAMRc=McX9H6GxvM9ejxUs4Eet6cSXxf63Ln0CkHO27M6iwRquw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]

On Mon, Jun 7, 2021 at 1:55 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> On Sun, Jun 6, 2021 at 12:17 AM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Wed, Jun 2, 2021 at 7:15 AM Bartosz Golaszewski <brgl@bgdev.pl>
> wrote:
> > >
> > > libgpiod test-suites work with the gpio-mockup kernel module. When
> using
> > > linux-yocto, it's enabled using the gpio/mockup.scc kernel feature.
> Check
> > > if this feature is present in KERNEL_FEATURE and warn if not.
> > >
> > > Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
> > > ---
> > >  meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 7 +++++++
> > >  1 file changed, 7 insertions(+)
> > >
> > > diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
> b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
> > > index 874453fbd..febf625a6 100644
> > > --- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
> > > +++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
> > > @@ -52,6 +52,13 @@ RRECOMMENDS_${PN} +=
> "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-py
> > >  PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES',
> 'ptest', 'tests', '', d)}"
> > >
> > >  do_install_ptest() {
> > > +    if [ "${PREFERRED_PROVIDER_virtual/kernel}" = "linux-yocto" ] && \
> > > +       ${@bb.utils.contains('KERNEL_FEATURES',
> 'features/gpio/mockup.scc', 'false', 'true',d)}; then
> > > +        bbwarn "libgpiod test-suites need the gpio-mockup
> > > +module and will not work without it. Consider adding
> > > +'features/gpio/mockup.scc' to KERNEL_FEATURES"
> > > +    fi
> > > +
> >
> > perhaps turn this into a bbnote something like what libbpf is doing see
> >
> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb?h=master
> >
>
> I really think that a warning is in order here. The ptests won't work
> without this module. At the same time we can't really skip the package
> altogether because the build may be using a different kernel recipe
> with its own defconfig - this is why we first check if we're using
> linux-yocto.


It should check for module being built in kernel irrespective of Linux
yocto that is right but we perhaps need a logic to consider the case where
I might have a kernel without this option and distro is using ptest feature

>
>
> Bart
>

[-- Attachment #2: Type: text/html, Size: 3880 bytes --]

  reply	other threads:[~2021-06-07 15:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 14:14 [meta-oe][PATCH 0/9] libgpiod: ptest improvements Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 1/9] libgpiod: coding style fixes Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 2/9] libgpiod: list all packages in a single assignment Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 3/9] libgpiod: fix RRECOMMENDS for python bindings Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 4/9] libgpiod: correctly split output files into packages Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 5/9] libgpiod: add RDEPENDS for tests Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 6/9] libgpiod: redirect stdout from the ptest executable to a file Bartosz Golaszewski
2021-06-02 14:14 ` [meta-oe][PATCH 7/9] libgpiod: ptest: run all test-suites if possible Bartosz Golaszewski
2021-06-02 14:15 ` [meta-oe][PATCH 8/9] libgpiod: ptest: warn if the gpio-mockup kernel module is not selected Bartosz Golaszewski
2021-06-05 22:16   ` Khem Raj
2021-06-07  8:55     ` Bartosz Golaszewski
2021-06-07 15:14       ` Khem Raj [this message]
2021-06-07 15:54         ` Bartosz Golaszewski
2021-06-08  0:31           ` Khem Raj
2021-06-08 20:00             ` Bartosz Golaszewski
2021-06-09 19:26               ` Bartosz Golaszewski
2021-06-02 14:15 ` [meta-oe][PATCH 9/9] libgpiod: ptest: add kernel-modules to RRECOMMENDS Bartosz Golaszewski
2021-06-03 16:48   ` Khem Raj
2021-06-04  8:04     ` Bartosz Golaszewski
2021-06-03  0:03 ` [meta-oe][PATCH 0/9] libgpiod: ptest improvements Khem Raj
2021-06-03  8:16   ` Bartosz Golaszewski
     [not found]   ` <CAMpxmJXBzL8QaAoLAB6cD8W8_mbBhjJ+d=gM8CGvQkBSPLDPtw@mail.gmail.com>
2021-06-03 15:11     ` Khem Raj

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=CAMKF1spmuj6ujbKF5JVWeixGmGtiY_zvjE32TVF79+3MKeTpxQ@mail.gmail.com \
    --to=raj.khem@gmail.com \
    --cc=akuster808@gmail.com \
    --cc=brgl@bgdev.pl \
    --cc=openembedded-devel@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 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.