From 833390e533ee997600f37ec87192f05e49e26db3 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Thu, 22 Jul 2010 17:30:49 -0400 Subject: libdrm-poulsbo: Provide libdrm-poulsbo instead of libdrm In order to allow this package to be build alongside the regular libdrm, it was made to export libdrm-poulsbo and its users make to use libdrm-poulsbo instead of libdrm. libva and xserver-psb were make to build against libdrm-poulsbo. While I was in there, I changed a couple of misspellings of COMPATIBLE and removed a bunch of ';patch=1'. Signed-off-by: Jeff Dike --- .../xorg-xserver/files/libdrm-poulsbo.patch | 26 ++++++++++++++++++++++ .../packages/xorg-xserver/xserver-psb_1.7.99.2.bb | 11 ++++----- 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 meta-emenlow/packages/xorg-xserver/files/libdrm-poulsbo.patch (limited to 'meta-emenlow/packages/xorg-xserver') diff --git a/meta-emenlow/packages/xorg-xserver/files/libdrm-poulsbo.patch b/meta-emenlow/packages/xorg-xserver/files/libdrm-poulsbo.patch new file mode 100644 index 0000000..2f036f1 --- /dev/null +++ b/meta-emenlow/packages/xorg-xserver/files/libdrm-poulsbo.patch @@ -0,0 +1,26 @@ +# Make the server depend on libdrm-poulsbo instead of libdrm so that the +# emenlow libdrm can coexist with the normal libdrm. +# jdike@linux.intel.com + +Index: xorg-server-1.7.99.2/configure.ac +=================================================================== +--- xorg-server-1.7.99.2.orig/configure.ac ++++ xorg-server-1.7.99.2/configure.ac +@@ -763,7 +763,7 @@ dnl List of libraries that require a spe + LIBAPPLEWM="applewm >= 1.4" + LIBDMX="dmx >= 1.0.99.1" + LIBDRI="dri >= 7.1.0" +-LIBDRM="libdrm >= 2.3.0" ++LIBDRM="libdrm-poulsbo >= 2.3.0" + LIBGL="gl >= 7.1.0" + LIBXEXT="xext >= 1.0.99.4" + LIBXI="xi >= 1.2.99.1" +@@ -2002,7 +2002,7 @@ if test "$KDRIVE" = yes; then + XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv" + fi + if test "x$DRI" = xyes && test "x$GLX" = xyes; then +- XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm" ++ XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm-poulsbo" + fi + + PKG_CHECK_MODULES(XEPHYR, $XEPHYR_REQUIRED_LIBS, [xephyr="yes"], [xephyr="no"]) diff --git a/meta-emenlow/packages/xorg-xserver/xserver-psb_1.7.99.2.bb b/meta-emenlow/packages/xorg-xserver/xserver-psb_1.7.99.2.bb index a732f08..6090691 100644 --- a/meta-emenlow/packages/xorg-xserver/xserver-psb_1.7.99.2.bb +++ b/meta-emenlow/packages/xorg-xserver/xserver-psb_1.7.99.2.bb @@ -1,19 +1,20 @@ require ../meta/packages/xorg-xserver/xserver-xf86-dri-lite.inc -PR = "r1" +PR = "r2" PROTO_DEPS += "xf86driproto dri2proto" DEPENDS += "font-util" -SRC_URI += "file://nodolt.patch;patch=1 \ - file://crosscompile.patch;patch=1" +SRC_URI += "file://nodolt.patch \ + file://crosscompile.patch \ + file://libdrm-poulsbo.patch" # Misc build failure for master HEAD -SRC_URI += "file://fix_open_max_preprocessor_error.patch;patch=1" +SRC_URI += "file://fix_open_max_preprocessor_error.patch" EXTRA_OECONF += "--enable-dri --enable-dri2 --enable-dga --enable-glx" DEPENDS += "psb-firmware xpsb-glx psb-kernel-source libdrm-poulsbo libva" -COMPATBILE_MACHINE = "emenlow" +COMPATIBLE_MACHINE = "emenlow" -- cgit v1.1