diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-08-02 20:24:09 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-02 16:33:51 +0100 |
commit | d9b1d4312cf1f981c5201b027b18594e9ad5a861 (patch) | |
tree | df639a4e0a4cf031777c04477ddcf523e4b03a4f /meta/packages | |
parent | a235e4195eed3e5c21f458c24f0964c8d5abb740 (diff) | |
download | poky-d9b1d4312cf1f981c5201b027b18594e9ad5a861.tar.gz |
mesa-dri: fix x86-64 target compilation
mesa-dri first generates glsl compiler and then use it to compile GL
shader sources. Target glsl compiler can't run on build system, and
thus port from openembedded by introducing a native recipe dedicated
to creating a native glsl-compiler.
This has to be an explicit -native recipe since its un-native sibling
is already part of mesa-dri
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/mesa/mesa-dri-glsl-native_7.8.2.bb | 24 | ||||
-rw-r--r-- | meta/packages/mesa/mesa-dri_7.8.2.bb | 13 |
2 files changed, 33 insertions, 4 deletions
diff --git a/meta/packages/mesa/mesa-dri-glsl-native_7.8.2.bb b/meta/packages/mesa/mesa-dri-glsl-native_7.8.2.bb new file mode 100644 index 0000000000..f6121c19a4 --- /dev/null +++ b/meta/packages/mesa/mesa-dri-glsl-native_7.8.2.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "gl shader language specific build from mesa-dri" | ||
2 | HOMEPAGE = "http://mesa3d.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
4 | SECTION = "x11" | ||
5 | LICENSE = "MIT" | ||
6 | PR = "r0" | ||
7 | |||
8 | DEPENDS = "makedepend-native" | ||
9 | |||
10 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2" | ||
11 | |||
12 | S = "${WORKDIR}/Mesa-7.8.2/src/glsl/" | ||
13 | |||
14 | inherit native | ||
15 | |||
16 | # use default config for native build | ||
17 | do_configure_prepend() { | ||
18 | ln -s ${S}/../../configs/default ${S}/../../configs/current | ||
19 | } | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}/${bindir} | ||
23 | install -m 755 ${S}/apps/compile ${D}/${bindir}/glsl-compile | ||
24 | } | ||
diff --git a/meta/packages/mesa/mesa-dri_7.8.2.bb b/meta/packages/mesa/mesa-dri_7.8.2.bb index 6c8c824fa0..ffd885f293 100644 --- a/meta/packages/mesa/mesa-dri_7.8.2.bb +++ b/meta/packages/mesa/mesa-dri_7.8.2.bb | |||
@@ -5,9 +5,9 @@ LIC_FILES_CHKSUM = "file://docs/license.html;md5=7a3373c039b6b925c427755a4f779c1 | |||
5 | PROTO_DEPS = "xf86driproto glproto dri2proto" | 5 | PROTO_DEPS = "xf86driproto glproto dri2proto" |
6 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | 6 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" |
7 | 7 | ||
8 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 8 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} mesa-dri-glsl-native" |
9 | 9 | ||
10 | PR = "r0" | 10 | PR = "r1" |
11 | 11 | ||
12 | SRC_URI += "file://crossfix.patch" | 12 | SRC_URI += "file://crossfix.patch" |
13 | 13 | ||
@@ -21,9 +21,14 @@ LEAD_SONAME = "libGL.so.1" | |||
21 | 21 | ||
22 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | 22 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" |
23 | 23 | ||
24 | # We need glsl-compile built for buildhost arch instead of target (is provided by mesa-dri-glsl-native)" | ||
25 | do_configure_prepend() { | ||
26 | sed -i "s#^GLSL_CL = .*\$#GLSL_CL = ${STAGING_BINDIR_NATIVE}/glsl-compile#g" ${S}/src/mesa/shader/slang/library/Makefile | ||
27 | } | ||
28 | |||
24 | do_install_append () { | 29 | do_install_append () { |
25 | install -d ${D}/usr/bin | 30 | install -d ${D}/usr/bin |
26 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | 31 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ |
27 | } | 32 | } |
28 | 33 | ||
29 | python populate_packages_prepend() { | 34 | python populate_packages_prepend() { |