diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-12-30 17:15:49 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-12-30 17:15:49 +0000 |
commit | c8a24cd00235a4ccb501e2cdea606730e166c572 (patch) | |
tree | 02d76961863352ce43bbee08c6779ed825f4e8fd /meta-moblin/packages/xorg-driver | |
parent | 459a7f4a342bd9c74e2bc812cd1e6601a8095264 (diff) | |
download | poky-c8a24cd00235a4ccb501e2cdea606730e166c572.tar.gz |
meta-moblin: Add initial menlow support
Diffstat (limited to 'meta-moblin/packages/xorg-driver')
4 files changed, 79 insertions, 0 deletions
diff --git a/meta-moblin/packages/xorg-driver/files/104_disable_locks.diff b/meta-moblin/packages/xorg-driver/files/104_disable_locks.diff new file mode 100644 index 0000000000..1f0a5ba9c2 --- /dev/null +++ b/meta-moblin/packages/xorg-driver/files/104_disable_locks.diff | |||
@@ -0,0 +1,23 @@ | |||
1 | Index: git/src/psb_driver.c | ||
2 | =================================================================== | ||
3 | --- git.orig/src/psb_driver.c 2008-12-12 15:14:28.000000000 +0000 | ||
4 | +++ git/src/psb_driver.c 2008-12-30 14:18:16.000000000 +0000 | ||
5 | @@ -1326,7 +1326,7 @@ | ||
6 | |||
7 | pScrn->pScreen = pScreen; | ||
8 | |||
9 | - psbDRILock(pScrn, 0); | ||
10 | +/* psbDRILock(pScrn, 0);*/ | ||
11 | pPsb->front = psbScanoutCreate(pScrn, pScrn->bitsPerPixel >> 3, | ||
12 | pScrn->depth, pScrn->virtualX, | ||
13 | pScrn->virtualY, 0, -1, 0); | ||
14 | @@ -1489,7 +1489,9 @@ | ||
15 | |||
16 | return psbEnterVT(pScreen->myNum, 0); | ||
17 | out_err_unlock: | ||
18 | + /* Temporary Fix TBD | ||
19 | psbDRIUnlock(pScrn); | ||
20 | + */ | ||
21 | out_err: | ||
22 | psbRestoreHWState(pDevice); | ||
23 | return FALSE; | ||
diff --git a/meta-moblin/packages/xorg-driver/xf86-driver-common.inc b/meta-moblin/packages/xorg-driver/xf86-driver-common.inc new file mode 100644 index 0000000000..308d06e0b1 --- /dev/null +++ b/meta-moblin/packages/xorg-driver/xf86-driver-common.inc | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "X driver" | ||
2 | HOMEPAGE = "http://www.x.org" | ||
3 | SECTION = "x11/drivers" | ||
4 | LICENSE = "MIT-X" | ||
5 | |||
6 | PE = "1" | ||
7 | PR = "r0" | ||
8 | |||
9 | DEPENDS = "virtual/xserver-xf86 xproto randrproto" | ||
10 | |||
11 | XORG_PN = "${PN}" | ||
12 | SRC_URI = "${XORG_MIRROR}/individual/driver/${XORG_PN}-${PV}.tar.bz2" | ||
13 | |||
14 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
15 | |||
16 | FILES_${PN} += " ${libdir}/xorg/modules/drivers/*.so" | ||
17 | FILES_${PN}-dbg += " ${libdir}/xorg/modules/drivers/.debug" | ||
18 | |||
19 | inherit autotools pkgconfig | ||
20 | |||
21 | do_stage() { | ||
22 | autotools_stage_all | ||
23 | } | ||
24 | |||
25 | # AC_CHECK_FILE doesn't work when cross compiling, so we create a replacement | ||
26 | # macro that simply assumes the test succeeds. | ||
27 | do_configure_prepend () { | ||
28 | echo 'AC_DEFUN(CC_AC_CHECK_FILE, $2)' > configure.ac.new | ||
29 | sed 's/AC_CHECK_FILE/CC_AC_CHECK_FILE/g' configure.ac >> configure.ac.new | ||
30 | mv configure.ac.new configure.ac | ||
31 | } | ||
32 | |||
diff --git a/meta-moblin/packages/xorg-driver/xf86-video-common.inc b/meta-moblin/packages/xorg-driver/xf86-video-common.inc new file mode 100644 index 0000000000..f2e28170e7 --- /dev/null +++ b/meta-moblin/packages/xorg-driver/xf86-video-common.inc | |||
@@ -0,0 +1,4 @@ | |||
1 | include xf86-driver-common.inc | ||
2 | |||
3 | DEPENDS =+ "renderproto videoproto xextproto fontsproto" | ||
4 | |||
diff --git a/meta-moblin/packages/xorg-driver/xf86-video-psb_git.bb b/meta-moblin/packages/xorg-driver/xf86-video-psb_git.bb new file mode 100644 index 0000000000..c48215523a --- /dev/null +++ b/meta-moblin/packages/xorg-driver/xf86-video-psb_git.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | require xf86-video-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- PIntel i8xx, i9xx display driver" | ||
4 | DEPENDS += "virtual/libx11 libxvmc libdrm-psb dri2proto glproto \ | ||
5 | virtual/libgl xineramaproto libpciaccess" | ||
6 | RDEPENDS += linux-psb-modules | ||
7 | |||
8 | PV = "0.2.6+git${SRCREV}" | ||
9 | PR = "r4" | ||
10 | |||
11 | SRC_URI = "git://git.moblin.org/projects/xf86-video-psb;protocol=git \ | ||
12 | file://104_disable_locks.diff;patch=1" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | COMPATIBLE_HOST = '(i.86.*-linux)' | ||
17 | COMPATIBLE_MACHINE = "menlow" | ||
18 | |||
19 | EXTRA_OECONF = "--enable-dri --disable-static" | ||
20 | |||