Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Alex DAMIAN <alexandru.damian@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 3/3] Prepare mesa-dri for weston compatibility
Date: Thu, 20 Dec 2012 18:17:53 +0100	[thread overview]
Message-ID: <20121220171753.GP14543@jama.palm1.palmone.com> (raw)
In-Reply-To: <5f9c3b67176f90714a2fd394e64f7d8da3cb0258.1356021837.git.alexandru.damian@intel.com>

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

On Thu, Dec 20, 2012 at 06:48:38PM +0200, Alex DAMIAN wrote:
> From: Alexandru DAMIAN <alexandru.damian@intel.com>
> 
> This patch enables mesa-git to build wayland-compatible
> packages for usage with weston.
> 
> It adds wayland platform support, packs the wayland-egl
> files, and sets the -git version as preffered provider.
> 
> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
> ---
>  meta/recipes-graphics/mesa/mesa-common.inc |    5 ++++-
>  meta/recipes-graphics/mesa/mesa-dri.inc    |    1 +
>  meta/recipes-graphics/mesa/mesa-dri_git.bb |    3 ++-
>  3 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc
> index 70957eb..db1bec4 100644
> --- a/meta/recipes-graphics/mesa/mesa-common.inc
> +++ b/meta/recipes-graphics/mesa/mesa-common.inc
> @@ -18,7 +18,7 @@ PE = "2"
>  DEPENDS = "libxml2-native makedepend-native flex-native bison-native"
>  
>  PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
> -
> +PROVIDES += "wayland-egl libgbm libglapi"
>  # for mesa-dri and mesa-xlib
>  FILESEXTRAPATHS_append := "${THISDIR}/mesa:"
>  
> @@ -49,6 +49,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
>               libgles1-mesa libgles1-mesa-dev \
>               libgles2-mesa libgles2-mesa-dev \
>               libgles3-mesa libgles3-mesa-dev \
> +             wayland-egl wayland-egl-dev \
>              "
>  
>  do_install_append () {
> @@ -90,8 +91,10 @@ FILES_libgles2-mesa = "${libdir}/libGLESv2.so.*"
>  FILES_libgl-mesa = "${libdir}/libGL.so.*"
>  FILES_libglapi = "${libdir}/libglapi.so.*"
>  FILES_libosmesa = "${libdir}/libOSMesa.so.*"
> +FILES_wayland-egl = "${libdir}/libwayland-egl.so.*"
>  
>  FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc"
> +FILES_wayland-egl-dev = "${libdir}/pkgconfig/wayland-egl.pc ${libdir}/libwayland-egl.*"
>  FILES_libdricore-dev = "${libdir}/libdricore*.*"
>  FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
>  FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h"
> diff --git a/meta/recipes-graphics/mesa/mesa-dri.inc b/meta/recipes-graphics/mesa/mesa-dri.inc
> index 07544ab..1f6ec78 100644
> --- a/meta/recipes-graphics/mesa/mesa-dri.inc
> +++ b/meta/recipes-graphics/mesa/mesa-dri.inc
> @@ -13,6 +13,7 @@ PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-
>  
>  EGL_PLATFORMS  = "drm"
>  EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'x11', ',x11', '', d)}"
> +EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'wayland', ',wayland', '', d)}"
>  PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl"
>  
>  python populate_packages_prepend() {
> diff --git a/meta/recipes-graphics/mesa/mesa-dri_git.bb b/meta/recipes-graphics/mesa/mesa-dri_git.bb
> index 69a433e..7fd0d39 100644
> --- a/meta/recipes-graphics/mesa/mesa-dri_git.bb
> +++ b/meta/recipes-graphics/mesa/mesa-dri_git.bb
> @@ -3,6 +3,7 @@ require mesa-git.inc
>  require mesa-dri.inc
>  
>  # this needs to be lower than -1 because all mesa-dri have -1 and git version has highest PV, but shouldn't be default
> -DEFAULT_PREFERENCE = "-2"
> +# adamian - switch to git version
> +DEFAULT_PREFERENCE = "1"

Isn't default preference 0 good enough? as meta-dri_git also has highest
PV?

>  
>  PR = "${INC_PR}.0"
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2012-12-20 17:32 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-20 16:48 [PATCH 0/3] Initial wayland integration Alex DAMIAN
2012-12-20 16:48 ` [PATCH 1/3] Wayland userspace library initial 1.0.3 Alex DAMIAN
2012-12-20 16:48 ` [PATCH 2/3] Initial commit for wayland/weston 1.0.3 Alex DAMIAN
2012-12-20 16:48 ` [PATCH 3/3] Prepare mesa-dri for weston compatibility Alex DAMIAN
2012-12-20 17:17   ` Martin Jansa [this message]
2012-12-20 17:20   ` Burton, Ross
2012-12-21 10:10     ` Damian, Alexandru
2012-12-21 10:53       ` Burton, Ross
2012-12-21 11:37 ` [PATCH v2 0/3] Initial wayland integration Alex DAMIAN
2012-12-21 11:38   ` [PATCH 1/3] Wayland userspace library initial 1.0.3 Alex DAMIAN
2012-12-21 11:46     ` Burton, Ross
2012-12-21 11:38   ` [PATCH 2/3] Initial commit for wayland/weston 1.0.3 Alex DAMIAN
2012-12-21 11:49     ` Burton, Ross
2012-12-21 11:38   ` [PATCH 3/3] Prepare mesa-dri for weston compatibility Alex DAMIAN
2012-12-21 11:51     ` Burton, Ross
2012-12-21 11:47 ` [PATCH 0/3] Initial wayland integration Burton, Ross
2012-12-21 12:38   ` Damian, Alexandru
2012-12-21 12:43     ` Burton, Ross
2012-12-21 12:45       ` Damian, Alexandru
2012-12-21 12:51 ` [PATCH v3 " Alex DAMIAN
2012-12-21 12:51   ` [PATCH 1/3] Wayland userspace library initial 1.0.3 Alex DAMIAN
2012-12-21 12:51   ` [PATCH 2/3] Prepare mesa-dri for weston compatibility Alex DAMIAN
2012-12-21 16:49     ` Burton, Ross
2012-12-21 12:51   ` [PATCH 3/3] Initial commit for wayland/weston 1.0.3 Alex DAMIAN
2012-12-21 15:46     ` Burton, Ross
2012-12-24  8:00       ` Damian, Alexandru
2012-12-24  9:14         ` Ross Burton
  -- strict thread matches above, loose matches on Subject: below --
2012-12-18 13:45 Wayland/Weston initial patches Alex DAMIAN
2012-12-18 13:45 ` [PATCH 3/3] Prepare mesa-dri for weston compatibility Alex DAMIAN

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=20121220171753.GP14543@jama.palm1.palmone.com \
    --to=martin.jansa@gmail.com \
    --cc=alexandru.damian@intel.com \
    --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