Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] qt5base: don't enable KMS if it doesn't have udev
Date: Fri, 8 Jul 2016 20:53:19 +0200	[thread overview]
Message-ID: <20160708205319.13b5a01e@free-electrons.com> (raw)
In-Reply-To: <20160708011732.3949-1-akihiko.odaki.4i@stu.hosei.ac.jp>

Hello,

On Fri,  8 Jul 2016 10:17:32 +0900, Akihiko Odaki wrote:
> Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>

Thanks for this new iteration. When you send a patch that fixes an
autobuilder failure, please include something like this in the commit
log:

Fixes:

    http://autobuild.buildroot.org/results/....

(which should point to the autobuilder failure being fixed by this
patch).

However, I have some comments below.

> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
> index bf541b0..60b4e94 100644
> --- a/package/qt5/qt5base/qt5base.mk
> +++ b/package/qt5/qt5base/qt5base.mk
> @@ -30,8 +30,11 @@ QT5BASE_CONFIGURE_OPTS += \
>  
>  # Uses libgbm from mesa3d
>  ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
> -QT5BASE_CONFIGURE_OPTS += -kms -gbm
> +QT5BASE_CONFIGURE_OPTS += -gbm
>  QT5BASE_DEPENDENCIES += mesa3d
> +ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
> +QT5BASE_CONFIGURE_OPTS += -kms
> +endif

Does it really make sense to enable GBM without KMS? The only place
where I see GBM actually being used in Qt's configure script is:

if [ "$CFG_EGLFS" = "yes" ] && [ "$CFG_KMS" = "yes" ] && [ "$CFG_GBM" = "yes" ]; then
    QT_CONFIG="$QT_CONFIG eglfs_gbm"
    CFG_EGLFS_GBM="yes"

Which seems to indicate that *both* KMS and GBM are needed in order to
enable the eglfs_gbm module. Can you check this? If that's the case,
then a better patch would be:

ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL)$(BR2_PACKAGE_HAS_UDEV),yy)
QT5BASE_CONFIGURE_OPTS += -kms -gbm
else
...
endif

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2016-07-08 18:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08  0:07 [Buildroot] qt5base: don't enable KMS if it doesn't have udev Akihiko Odaki
2016-07-08  1:17 ` [Buildroot] [PATCH v2] " Akihiko Odaki
2016-07-08 18:53   ` Thomas Petazzoni [this message]
2016-07-17  2:05     ` Akihiko Odaki
2016-07-24 22:43       ` Akihiko Odaki
2016-08-20 19:27       ` Peter Seiderer

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=20160708205319.13b5a01e@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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