mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
mesa-dri-git: Handle cross compiling of the glsl utils
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -11,8 +11,8 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat"
|
|||||||
|
|
||||||
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
|
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
|
||||||
|
|
||||||
PV = "7.5+git${SRCPV}"
|
PV = "7.7+git${SRCPV}"
|
||||||
PR = "r14"
|
PR = "r0"
|
||||||
|
|
||||||
# most of our targets do not have DRI so will use mesa-xlib
|
# most of our targets do not have DRI so will use mesa-xlib
|
||||||
DEFAULT_PREFERENCE = "-1"
|
DEFAULT_PREFERENCE = "-1"
|
||||||
@@ -35,6 +35,14 @@ do_configure_prepend () {
|
|||||||
touch ${S}/src/mesa/x86/matypes.h
|
touch ${S}/src/mesa/x86/matypes.h
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_compile () {
|
||||||
|
oe_runmake clean
|
||||||
|
oe_runmake -C src/glsl CC='${BUILD_CC}' CFLAGS=""
|
||||||
|
mv ${S}/src/glsl/apps/compile ${S}/host_compile
|
||||||
|
oe_runmake clean
|
||||||
|
oe_runmake GLSL_CL="${S}/host_compile"
|
||||||
|
}
|
||||||
|
|
||||||
do_install_append () {
|
do_install_append () {
|
||||||
install -d ${D}/usr/bin
|
install -d ${D}/usr/bin
|
||||||
install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/
|
install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/
|
||||||
|
|||||||
Reference in New Issue
Block a user