diff options
author | Jeff Dike <jdike@x86_64.user-mode-linux.org> | 2010-07-21 17:31:45 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 22:39:43 +0100 |
commit | e8e3ac9b1e0e4342fc3a6d7b435ddaf93f274304 (patch) | |
tree | c8ed16e490e2e30de292c8a10eedb084d5abdea8 /meta-emenlow/packages/xpsb-glx | |
parent | 0c3b1aa0a5461c9b5f3833feb091f7c8a459ca9b (diff) | |
download | poky-e8e3ac9b1e0e4342fc3a6d7b435ddaf93f274304.tar.gz |
meta-emenlow: Layer for eMenlow-based systems.
This layer provides a kernel suitable for booting on eMenlow-based systems,
plus support for Poulsbo graphics. The Poulsbo support includes a
kernel patch for the graphics driver, a couple of libraries, the 2D
and 3D X drivers, and a properly configured X server.
The closed portions of this support are in the 3D driver, xpsb-glx.
This package contains the binaries for the libraries that communicate
with the kernel driver and a mesa library which uses those libraries.
There is a README in meta-emenlow/ describing how to enable this layer.
Where possible, the recipes use bitbake's new .bbappend facility in
order to avoid copying recipes from meta/.
There are checksums and license information for all of the new packages.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Diffstat (limited to 'meta-emenlow/packages/xpsb-glx')
-rw-r--r-- | meta-emenlow/packages/xpsb-glx/xpsb-glx-0.18/cross-compile.patch | 58 | ||||
-rw-r--r-- | meta-emenlow/packages/xpsb-glx/xpsb-glx_0.18.bb | 40 |
2 files changed, 98 insertions, 0 deletions
diff --git a/meta-emenlow/packages/xpsb-glx/xpsb-glx-0.18/cross-compile.patch b/meta-emenlow/packages/xpsb-glx/xpsb-glx-0.18/cross-compile.patch new file mode 100644 index 0000000000..a231596810 --- /dev/null +++ b/meta-emenlow/packages/xpsb-glx/xpsb-glx-0.18/cross-compile.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | Index: mesa/configs/linux-dri | ||
2 | =================================================================== | ||
3 | --- mesa.orig/configs/linux-dri | ||
4 | +++ mesa/configs/linux-dri | ||
5 | @@ -3,11 +3,9 @@ | ||
6 | |||
7 | include $(TOP)/configs/default | ||
8 | |||
9 | -CONFIG_NAME = linux-dri | ||
10 | +$(warning ENVIRONMENT = $(shell printenv)) | ||
11 | |||
12 | -# Compiler and flags | ||
13 | -CC = gcc | ||
14 | -CXX = g++ | ||
15 | +CONFIG_NAME = linux-dri | ||
16 | |||
17 | #MKDEP = /usr/X11R6/bin/makedepend | ||
18 | #MKDEP = gcc -M | ||
19 | @@ -25,8 +23,6 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOU | ||
20 | -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \ | ||
21 | -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN | ||
22 | |||
23 | -X11_INCLUDES = -I/usr/X11R6/include | ||
24 | - | ||
25 | CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \ | ||
26 | $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS) | ||
27 | |||
28 | @@ -40,9 +36,6 @@ CXXFLAGS += -fno-strict-aliasing | ||
29 | |||
30 | ASM_SOURCES = | ||
31 | |||
32 | -# Library/program dependencies | ||
33 | -EXTRA_LIB_PATH=-L/usr/X11R6/lib | ||
34 | - | ||
35 | LIBDRM_CFLAGS = `pkg-config --cflags libdrm-poulsbo` | ||
36 | LIBDRM_LIB = `pkg-config --libs libdrm-poulsbo` | ||
37 | DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) | ||
38 | Index: mesa/configs/default | ||
39 | =================================================================== | ||
40 | --- mesa.orig/configs/default | ||
41 | +++ mesa/configs/default | ||
42 | @@ -17,8 +17,6 @@ MESA_VERSION = $(MESA_MAJOR).$(MESA_MINO | ||
43 | DRM_SOURCE_PATH=$(TOP)/../drm | ||
44 | |||
45 | # Compiler and flags | ||
46 | -CC = cc | ||
47 | -CXX = CC | ||
48 | CFLAGS = -O | ||
49 | CXXFLAGS = -O | ||
50 | LDFLAGS = | ||
51 | @@ -67,7 +65,6 @@ ASM_SOURCES = | ||
52 | # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in | ||
53 | # order to build the Motif widget too) | ||
54 | GLW_SOURCES = GLwDrawA.c | ||
55 | -MOTIF_CFLAGS = -I/usr/include/Motif1.2 | ||
56 | |||
57 | |||
58 | # Directories to build | ||
diff --git a/meta-emenlow/packages/xpsb-glx/xpsb-glx_0.18.bb b/meta-emenlow/packages/xpsb-glx/xpsb-glx_0.18.bb new file mode 100644 index 0000000000..41b15890fa --- /dev/null +++ b/meta-emenlow/packages/xpsb-glx/xpsb-glx_0.18.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "X11 drivers for Poulsbo (psb) 3D acceleration" | ||
2 | |||
3 | # There's a mesa implementation in this package, which is presumably | ||
4 | # not Intel proprietary, but it has no obvious license attached to it. | ||
5 | LICENSE = "Intel-binary-only" | ||
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/${PN}-${PV}/COPYING;md5=02c597a2f082b4581596065bb5a521a8" | ||
7 | PR = "r1" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
11 | PROVIDES = "virtual/libgl mesa-dri" | ||
12 | |||
13 | SRC_URI="https://launchpad.net/~gma500/+archive/ppa/+files/xpsb-glx_0.18-0ubuntu1netbook2~1004um1ubuntu1.tar.gz \ | ||
14 | file://cross-compile.patch;patch=1" | ||
15 | |||
16 | do_configure () { | ||
17 | chmod +x autogen.sh && ./autogen.sh && make realclean | ||
18 | } | ||
19 | |||
20 | do_install() { | ||
21 | make DESTDIR=${D} install | ||
22 | install -d -m 0755 ${D}/${libdir}/xorg/modules/dri \ | ||
23 | ${D}/${libdir}/xorg/modules/drivers | ||
24 | install -m 0644 ${WORKDIR}/${PN}-${PV}/dri/* \ | ||
25 | ${D}/${libdir}/xorg/modules/dri | ||
26 | install -m 0644 ${WORKDIR}/${PN}-${PV}/drivers/* \ | ||
27 | ${D}/${libdir}/xorg/modules/drivers | ||
28 | } | ||
29 | |||
30 | S = "${WORKDIR}/${PN}-${PV}/mesa" | ||
31 | |||
32 | EXTRA_OEMAKE = "linux-dri-x86" | ||
33 | |||
34 | DEPENDS += "libdrm-poulsbo libxxf86vm dri2proto libxmu libxi glproto" | ||
35 | |||
36 | FILES_${PN} = "${libdir}/* ${libdir}/xorg/modules/dri/* \ | ||
37 | ${libdir}/xorg/modules/drivers/*" | ||
38 | |||
39 | # Multiple virtual/gl providers being built breaks staging | ||
40 | EXCLUDE_FROM_WORLD = "1" | ||