From 99875e2e1a09fe5e9fb9b6eac0ad28fb3f79d74a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 12 Sep 2013 15:27:35 +0000 Subject: xf86-video-vmware: disable VMWGFX Our Mesa doesn't yet ship the XA Gallium state tracker that the VMWGFX sub-driver needs, so just disable vmwgfx. Also remove a spurious xvmc dependency. (From OE-Core rev: a6f84a0317997c3f49e136381f8d2f2f5cadd292) Signed-off-by: Ross Burton Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- .../xf86-video-vmware/vmwgfx-option.patch | 72 ++++++++++++++++++++++ .../xorg-driver/xf86-video-vmware_13.0.1.bb | 7 ++- 2 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-graphics/xorg-driver/xf86-video-vmware/vmwgfx-option.patch (limited to 'meta') diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-vmware/vmwgfx-option.patch b/meta/recipes-graphics/xorg-driver/xf86-video-vmware/vmwgfx-option.patch new file mode 100644 index 0000000000..4b3a3094d9 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-vmware/vmwgfx-option.patch @@ -0,0 +1,72 @@ +Upstream-Status: Submitted (http://lists.x.org/archives/xorg-devel/2013-September/037762.html) +Signed-off-by: Ross Burton + +From 5ec0aae666feb88d01256cdebbf94a6b373bf4c4 Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Wed, 11 Sep 2013 21:40:44 +0100 +Subject: [PATCH] build: add explicit option to enable/disable VMWGFX + +Signed-off-by: Ross Burton +--- + configure.ac | 31 ++++++++++++++----------------- + 1 file changed, 14 insertions(+), 17 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 0631bcc..3e14abd 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -85,11 +85,6 @@ PKG_CHECK_EXISTS([xorg-server >= 1.4.99], + [AC_DEFINE([HAVE_XORG_SERVER_1_5_0], 1, + [Has version 1.5.0 or greater of the Xserver])]) + +-PKG_CHECK_EXISTS([xorg-server >= 1.7.0], +- [AC_DEFINE([HAVE_XORG_SERVER_1_7_0], 1, +- [Has version 1.7.0 or greater of the Xserver]) +- BUILD_VMWGFX=yes],[BUILD_VMWGFX=no]) +- + PKG_CHECK_EXISTS([xorg-server >= 1.12.0], + [AC_DEFINE([HAVE_XORG_SERVER_1_12_0], 1, + [Has version 1.12.0 or greater of the Xserver])]) +@@ -114,25 +109,27 @@ AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes) + + AC_SUBST([moduledir]) + +-if test x$BUILD_VMWGFX = xyes; then +- PKG_CHECK_MODULES([LIBDRM], [libdrm],[],[BUILD_VMWGFX=no]) +-fi +-if test x$BUILD_VMWGFX = xyes; then +- PKG_CHECK_MODULES([XATRACKER], [xatracker >= 0.4.0],[],[BUILD_VMWGFX=no]) +-fi +- + DRIVER_NAME=vmware + AC_SUBST([DRIVER_NAME]) + ++AC_ARG_ENABLE(vmwgfx, ++ AS_HELP_STRING([--disable-vmwgfx], ++ [Disable vmwgfx driver (KMS/3D) (default: enabled)]), ++ [VMWGFX="$enableval"], [VMWGFX="yes"]) ++ + AC_MSG_CHECKING([whether to build Kernel Mode Setting and 3D]) +-if test x$BUILD_VMWGFX = xyes; then +- AC_MSG_RESULT([yes]) ++if test "x$VMWGFX" = xyes; then ++ AC_MSG_RESULT([yes]) ++ PKG_CHECK_EXISTS([xorg-server >= 1.7.0], ++ [AC_DEFINE([HAVE_XORG_SERVER_1_7_0], 1, ++ [Has version 1.7.0 or greater of the Xserver])]) ++ PKG_CHECK_MODULES([LIBDRM], [libdrm]) ++ PKG_CHECK_MODULES([XATRACKER], [xatracker >= 0.4.0]) + AC_DEFINE([BUILD_VMWGFX], 1, [Building the vmwgfx driver path]) + else +- AC_MSG_RESULT([no]) ++ AC_MSG_RESULT([no]) + fi +- +-AM_CONDITIONAL(BUILD_VMWGFX, test "x$BUILD_VMWGFX" = xyes) ++AM_CONDITIONAL(BUILD_VMWGFX, test "x$VMWGFX" = xyes) + + AC_CONFIG_FILES([ + Makefile +-- +1.7.10.4 + diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-vmware_13.0.1.bb b/meta/recipes-graphics/xorg-driver/xf86-video-vmware_13.0.1.bb index 0d8c8d22c9..7b48e0c101 100644 --- a/meta/recipes-graphics/xorg-driver/xf86-video-vmware_13.0.1.bb +++ b/meta/recipes-graphics/xorg-driver/xf86-video-vmware_13.0.1.bb @@ -6,10 +6,13 @@ DESCRIPTION = "vmware is an Xorg driver for VMware virtual video cards." LIC_FILES_CHKSUM = "file://COPYING;md5=5fcd7d437a959a15fbee8707747c6b53" -DEPENDS += "virtual/libx11 libxvmc xineramaproto libpciaccess \ - ${@base_contains('DISTRO_FEATURES', 'opengl', 'drm virtual/libgl', '', d)}" +DEPENDS += "virtual/libx11 xineramaproto videoproto libpciaccess" + +SRC_URI += "file://vmwgfx-option.patch" SRC_URI[md5sum] = "b08e0195ebf3f88a82129322cb93da08" SRC_URI[sha256sum] = "802dda415c22412edad6c3df44fe18a06e91d0f8456d9a58bac0d340fdf8fe3d" COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' + +EXTRA_OECONF += "--disable-vmwgfx" -- cgit v1.2.3-54-g00ecf