From: Denys Dmytriyenko <denys@ti.com>
To: "Ruei, Eric" <a0850410@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [thud/master][PATCH 1/2] qtbase: enable gbm/kms and fix compiling error
Date: Fri, 8 Mar 2019 20:06:52 -0500 [thread overview]
Message-ID: <20190309010652.GA28041@beryl> (raw)
In-Reply-To: <8655627d-a942-acb1-ab12-a0695ffa1ad1@ti.com>
On Fri, Mar 08, 2019 at 07:15:51PM -0500, Ruei, Eric wrote:
> On 3/8/2019 6:47 PM, Denys Dmytriyenko wrote:
> >On Fri, Mar 08, 2019 at 06:02:06PM -0500, Eric Ruei wrote:
> >>- enable gbm/kms for eglfs_kms
> >>- fix compiling error at platform/eglfs_kms
> >>- remove unused patch which has been upstreamed
> >>
> >>Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> >>---
> >>+
> >>diff --git a/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend b/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >>index 4cb8f9c..1570e1f 100644
> >>--- a/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >>+++ b/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >>@@ -4,7 +4,14 @@ GLES_EXTRA_DEPS = "libdrm wayland"
> >> PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl ${GLES_EXTRA_DEPS}"
> >>-PR_append = ".arago13"
> >>+# the orginal gbm packageconfig requires virtual/libgbm
> >
> >Shouldn't be doing this. Our own libgbm should now provide virtual/libgbm -
> >sent a patch to meta-ti.
> >
> >
> Got it. I shall remove this.
>
>
>
> >>+# Implement the patch here
> >>+
> >>+PACKAGECONFIG[gbm] = "-gbm,-no-gbm,drm virtual/egl"
> >>+PACKAGECONFIG += "gbm"
> >>+PACKAGECONFIG += "kms"
> >
> >Any PACKAGECONFIG settings should be done in the distro conf.
> >
> >
> I do not understand. This is addition to qtbase specific PACKAGECONFIG as
> defined at qtbase_git.bb:
A recipe defines different PACKAGECONFIG options and a sane default set of
them to be enabled by default:
PACKAGECONFIG[a] = "..."
PACKAGECONFIG[b] = "..."
PACKAGECONFIG[c] = "..."
PACKAGECONFIG = "a c"
It is not recommended to change the default set in the recipe itself or in a
bbappend. It is recommended to tweak it in a specific configuration - could be
distro.conf, could be local.conf, etc.
We do this in arago.conf:
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/conf/distro/arago.conf;hb=HEAD#l102
It also can be conditional based on DISTRO_FEATURES, or anything else...
> # separate some parts of PACKAGECONFIG which are often changed
> PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl',
> '', d)}"
> PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb',
> 'directfb', '', d)}"
> PACKAGECONFIG_X11 ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcb
> xinput2 glib xkb xkbcommon-evdev', '', d)}"
> PACKAGECONFIG_KDE ?= "${@bb.utils.contains('DISTRO_FEATURES', 'kde', 'sm
> cups fontconfig kms gbm libinput', '', d)}"
> PACKAGECONFIG_FONTS ?= ""
> PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib"
> PACKAGECONFIG_DISTRO ?= ""
> # Either release or debug, can be overridden in bbappends
> PACKAGECONFIG_RELEASE ?= "release"
> # This is in qt5.inc, because qtwebkit-examples are using it to enable
> ca-certificates dependency
> # PACKAGECONFIG_OPENSSL ?= "openssl"
> PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests
> \
> ${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size
> ltcg', '', d)} \
> ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}
> \
> "
>
> PACKAGECONFIG ?= " \
> ${PACKAGECONFIG_RELEASE} \
> ${PACKAGECONFIG_DEFAULT} \
> ${PACKAGECONFIG_OPENSSL} \
> ${PACKAGECONFIG_GL} \
> ${PACKAGECONFIG_FB} \
> ${PACKAGECONFIG_X11} \
> ${PACKAGECONFIG_KDE} \
> ${PACKAGECONFIG_FONTS} \
> ${PACKAGECONFIG_SYSTEM} \
> ${PACKAGECONFIG_DISTRO} \
> "
>
> Eric
>
> >>+
> >>+PR_append = ".arago14"
> >> QT_CONFIG_FLAGS += "-qpa ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', 'eglfs', d)}"
> >>@@ -14,12 +21,11 @@ QT_EGLFS_PATCHES = "\
> >> file://quit.png \
> >> "
> >>-# file://0001-QOpenGLTexture-Set-wrap-mode-if-NPOT-textures-are-no.patch
> >>-
> >> SRC_URI += "\
> >> ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', "${QT_EGLFS_PATCHES}", d)}\
> >> file://0001-deform-Fix-how-controls-are-shown.patch \
> >> file://0002-deform-disable-opengl-button.patch \
> >>+ file://0001-qtbase-plugins-platforms-eglfs_kms-fix-compiler-erro.patch \
> >> "
> >> python do_patch_append() {
> >>--
> >>1.9.1
> >>
> >>_______________________________________________
> >>meta-arago mailing list
> >>meta-arago@arago-project.org
> >>http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
>
prev parent reply other threads:[~2019-03-09 1:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-08 23:02 [thud/master][PATCH 1/2] qtbase: enable gbm/kms and fix compiling error Eric Ruei
2019-03-08 23:02 ` [thud/master][PATCH 2/2] atbase-config: add eglfs_kms configuration file and change wl shell Eric Ruei
2019-03-08 23:48 ` Denys Dmytriyenko
2019-03-09 0:16 ` Ruei, Eric
2019-03-09 1:09 ` Denys Dmytriyenko
2019-03-09 12:34 ` Ruei, Eric
2019-03-08 23:47 ` [thud/master][PATCH 1/2] qtbase: enable gbm/kms and fix compiling error Denys Dmytriyenko
2019-03-09 0:15 ` Ruei, Eric
2019-03-09 1:06 ` Denys Dmytriyenko [this message]
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=20190309010652.GA28041@beryl \
--to=denys@ti.com \
--cc=a0850410@ti.com \
--cc=meta-arago@arago-project.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.