[meta-intel] [PATCH] xf86-video-mga: respect opengl DISTRO_FEATURE

Darren Hart dvhart at linux.intel.com
Thu Sep 12 13:57:07 PDT 2013


On Thu, 2013-09-12 at 15:33 +0100, Ross Burton wrote:
> Respect the opengl DISTRO_FEATURE and enable/disable DRI as appropriate.
> 
> Signed-off-by: Ross Burton <ross.burton at intel.com>
> ---
>  common/recipes-graphics/xorg-driver/xf86-video-mga_1.6.2.bb |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/common/recipes-graphics/xorg-driver/xf86-video-mga_1.6.2.bb b/common/recipes-graphics/xorg-driver/xf86-video-mga_1.6.2.bb
> index 9ddf25f..8d9e4ae 100644
> --- a/common/recipes-graphics/xorg-driver/xf86-video-mga_1.6.2.bb
> +++ b/common/recipes-graphics/xorg-driver/xf86-video-mga_1.6.2.bb
> @@ -8,9 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"
>  
>  SRC_URI += "file://checkfile.patch"
>  
> -DEPENDS += "virtual/libx11 drm xf86driproto glproto virtual/libgl libpciaccess"
> -
> -EXTRA_OECONF += "--enable-dri"
> +DEPENDS += "virtual/libx11 libpciaccess"
>  
>  PR = "r1"
>  
> @@ -19,4 +17,7 @@ COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
>  SRC_URI[md5sum] = "f543877db4e260d8b43c7da3095605ed"
>  SRC_URI[sha256sum] = "3f89ce250eea93f0de890954687790e06c0bab9e3e303df393e8759a187eca6c"
>  
> +PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'opengl', 'dri', '', d)}"
> +PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"

So... if DISTRO_FEATURES does contain opengl and dri, how do we ensure
glproto, virtuial/libgl, etc. are built prior to this recipe? That's why
they were in DEPENDS right?

> +
>  RDEPENDS_${PN} = "xserver-xorg-module-exa"

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel





More information about the meta-intel mailing list