summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-02-05 14:08:37 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-05 14:08:37 +0000
commit851267d2af857aa8211f7b7451fd4d2c41cc6f3a (patch)
treea730d1a00dbf141a65ede7932ee263d57f3d7058 /meta
parent173f02f3e8305af22fbeb321108d72ac077b8348 (diff)
downloadpoky-851267d2af857aa8211f7b7451fd4d2c41cc6f3a.tar.gz
mesa-dri-git: Handle cross compiling of the glsl utils
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/mesa/mesa-dri_git.bb12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/packages/mesa/mesa-dri_git.bb b/meta/packages/mesa/mesa-dri_git.bb
index 867bdce0b7..35cb7fa6ff 100644
--- a/meta/packages/mesa/mesa-dri_git.bb
+++ b/meta/packages/mesa/mesa-dri_git.bb
@@ -11,8 +11,8 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat"
11 11
12DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" 12DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
13 13
14PV = "7.5+git${SRCPV}" 14PV = "7.7+git${SRCPV}"
15PR = "r14" 15PR = "r0"
16 16
17# most of our targets do not have DRI so will use mesa-xlib 17# most of our targets do not have DRI so will use mesa-xlib
18DEFAULT_PREFERENCE = "-1" 18DEFAULT_PREFERENCE = "-1"
@@ -35,6 +35,14 @@ do_configure_prepend () {
35 touch ${S}/src/mesa/x86/matypes.h 35 touch ${S}/src/mesa/x86/matypes.h
36} 36}
37 37
38do_compile () {
39 oe_runmake clean
40 oe_runmake -C src/glsl CC='${BUILD_CC}' CFLAGS=""
41 mv ${S}/src/glsl/apps/compile ${S}/host_compile
42 oe_runmake clean
43 oe_runmake GLSL_CL="${S}/host_compile"
44}
45
38do_install_append () { 46do_install_append () {
39 install -d ${D}/usr/bin 47 install -d ${D}/usr/bin
40 install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ 48 install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/