All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Marek Vasut <marex@denx.de>
Cc: Christophe Chapuis <chris.chapuis@gmail.com>,
	openembedded-devel@lists.openembedded.org,
	 Khem Raj <raj.khem@gmail.com>, Fabio Estevam <festevam@denx.de>
Subject: Re: [oe] [meta-oe][PATCH v4 6/7] lvgl: fix libdrm include
Date: Sun, 17 Mar 2024 08:46:19 +0100	[thread overview]
Message-ID: <CA+chaQdg+Qz2RVBS3jc16=WhNPBzRGEcV2RURzOcuFJTuTfjJw@mail.gmail.com> (raw)
In-Reply-To: <0bd7c695-e03d-4845-9172-54a574630705@denx.de>

The extra -I flag won't harm even when libdrm isn't there.

lvgl-demo-fb also doesn't do it conditionally based on drm PACKAGECONFIG.

If someone want's to fix this properly then should also use pkg-config
(and tests/FindLibDRM.cmake in the lvgl repo), but lets not block this
fix based on that.

This whole issue is just revealed by the typo fix in
https://patchwork.yoctoproject.org/project/oe/patch/20240316100056.409758-1-chris.chapuis@gmail.com/
which fixed lv-conf.inc to work for lvgl resulting in LV_USE_LINUX_DRM
being respected based on PACKAGECONFIG drm.

Acked-by: Martin Jansa <martin.jansa@gmail.com>

On Sun, Mar 17, 2024 at 6:45 AM Marek Vasut <marex@denx.de> wrote:
>
> On 3/16/24 10:55 PM, Christophe Chapuis wrote:
> > It could be conditional eventually; I just took the line from lvgl-demo-fb,
> > where it wasn't.
> >
> > Ideally, both should be moved in lv-conf.inc, where the lvgl drm setting is
> > activated. But I didn't want to expand again the scope of this patchset,
> > initially focused simply on adding some variables to lv-conf.inc.
>
> I think I will just defer that decision to Khem.
>
> My concern is that a system with SDL or fbdev backend may not have
> libdrm available, so I think it should be conditional.
>
> I think this will handle that concern:
>
> TARGET_CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'drm',
> '-I${STAGING_INCDIR}/libdrm', '', d)}"
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#109376): https://lists.openembedded.org/g/openembedded-devel/message/109376
> Mute This Topic: https://lists.openembedded.org/mt/104964303/3617156
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


  reply	other threads:[~2024-03-17  7:46 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-16 10:00 [meta-oe][PATCH v4 1/7] lvgl: fix typo in lv-conf.inc Christophe Chapuis
2024-03-16 10:00 ` [meta-oe][PATCH v4 2/7] lvgl: install lv_conf.h Christophe Chapuis
2024-03-16 20:41   ` Marek Vasut
2024-03-16 10:00 ` [meta-oe][PATCH v4 3/7] lvgl: remove useless FILES include Christophe Chapuis
2024-03-16 20:41   ` Marek Vasut
2024-03-16 10:00 ` [meta-oe][PATCH v4 4/7] lvgl: cleanup sed instructions in lv-conf.inc Christophe Chapuis
2024-03-16 20:43   ` Marek Vasut
2024-03-16 10:00 ` [meta-oe][PATCH v4 5/7] lvgl: add more variables to lv-conf.inc Christophe Chapuis
2024-03-16 20:45   ` Marek Vasut
2024-03-16 10:00 ` [meta-oe][PATCH v4 6/7] lvgl: fix libdrm include Christophe Chapuis
2024-03-16 16:08   ` Khem Raj
2024-03-16 16:17     ` Christophe Chapuis
2024-03-16 16:30       ` Khem Raj
2024-03-16 20:42   ` Marek Vasut
2024-03-16 21:55     ` Christophe Chapuis
2024-03-17  5:44       ` Marek Vasut
2024-03-17  7:46         ` Martin Jansa [this message]
2024-03-17 16:02           ` [oe] " Marek Vasut
2024-03-16 10:00 ` [meta-oe][PATCH v4 7/7] lvgl: lv-conf.inc: generalize sed instructions Christophe Chapuis
2024-03-16 20:44   ` Marek Vasut
2024-03-18 13:10   ` [oe] " Peter Kjellerstedt
2024-03-18 14:01     ` Marek Vasut
2024-03-18 15:42       ` Christophe Chapuis
2024-03-18 21:59         ` Marek Vasut
2024-03-21 20:49           ` Peter Kjellerstedt
2024-03-16 20:41 ` [meta-oe][PATCH v4 1/7] lvgl: fix typo in lv-conf.inc Marek Vasut

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='CA+chaQdg+Qz2RVBS3jc16=WhNPBzRGEcV2RURzOcuFJTuTfjJw@mail.gmail.com' \
    --to=martin.jansa@gmail.com \
    --cc=chris.chapuis@gmail.com \
    --cc=festevam@denx.de \
    --cc=marex@denx.de \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /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.