mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
mesa-dri: move shared options to mesa-dri.inc
(From OE-Core rev: 184957c784d6dc93ab1b2f0c1ebc1cd0c807fde4) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f7a51d75e3
commit
8a46f88e3f
@@ -0,0 +1,20 @@
|
|||||||
|
PROTO_DEPS += "dri2proto"
|
||||||
|
LIB_DEPS += "libdrm expat"
|
||||||
|
|
||||||
|
# most of our targets do not have DRI so will use mesa-xlib
|
||||||
|
DEFAULT_PREFERENCE = "-1"
|
||||||
|
|
||||||
|
EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium --without-gallium-drivers"
|
||||||
|
|
||||||
|
python populate_packages_prepend() {
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri")
|
||||||
|
|
||||||
|
do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='')
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGES_DYNAMIC = "mesa-dri-driver-*"
|
||||||
|
|
||||||
|
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
|
||||||
|
|
||||||
@@ -1,28 +1,10 @@
|
|||||||
include mesa-common.inc
|
include mesa-common.inc
|
||||||
include mesa-${PV}.inc
|
include mesa-${PV}.inc
|
||||||
|
include mesa-dri.inc
|
||||||
PROTO_DEPS += "dri2proto"
|
|
||||||
LIB_DEPS += "libdrm expat"
|
|
||||||
|
|
||||||
PR = "${INC_PR}.0"
|
PR = "${INC_PR}.0"
|
||||||
|
|
||||||
# most of our targets do not have DRI so will use mesa-xlib
|
|
||||||
DEFAULT_PREFERENCE = "-1"
|
|
||||||
|
|
||||||
LEAD_SONAME = "libGL.so.1"
|
LEAD_SONAME = "libGL.so.1"
|
||||||
|
|
||||||
EXTRA_OECONF += "--with-driver=dri --disable-egl -with-dri-drivers=swrast,i915,i965 --without-gallium-drivers"
|
EXTRA_OECONF += "--with-dri-drivers=swrast,i915,i965"
|
||||||
|
|
||||||
python populate_packages_prepend() {
|
|
||||||
import os.path
|
|
||||||
|
|
||||||
dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri")
|
|
||||||
|
|
||||||
do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='')
|
|
||||||
}
|
|
||||||
|
|
||||||
COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
|
COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
|
||||||
|
|
||||||
PACKAGES_DYNAMIC = "mesa-dri-driver-*"
|
|
||||||
|
|
||||||
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
include mesa-common.inc
|
include mesa-common.inc
|
||||||
|
include mesa-dri.inc
|
||||||
|
|
||||||
SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \
|
SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \
|
||||||
file://cross2.patch \
|
file://cross2.patch \
|
||||||
@@ -6,26 +7,16 @@ SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \
|
|||||||
# file://mesa-DRI2Swapbuffer.patch "
|
# file://mesa-DRI2Swapbuffer.patch "
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
PROTO_DEPS += "dri2proto"
|
|
||||||
LIB_DEPS += "libdrm expat"
|
|
||||||
|
|
||||||
SRCREV = "1bf94d419805538ac23a4d0b04d31ac5e4487aca"
|
SRCREV = "1bf94d419805538ac23a4d0b04d31ac5e4487aca"
|
||||||
PV = "7.7+git${SRCPV}"
|
PV = "7.7+git${SRCPV}"
|
||||||
PR = "${INC_PR}.0"
|
PR = "${INC_PR}.0"
|
||||||
|
|
||||||
# most of our targets do not have DRI so will use mesa-xlib
|
|
||||||
DEFAULT_PREFERENCE = "-1"
|
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-xprogs"
|
PACKAGES =+ "${PN}-xprogs"
|
||||||
PACKAGES_DYNAMIC = "mesa-dri-driver-*"
|
|
||||||
|
|
||||||
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
|
|
||||||
FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo"
|
FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo"
|
||||||
|
|
||||||
LEAD_SONAME = "libGL.so.1"
|
LEAD_SONAME = "libGL.so.1"
|
||||||
|
|
||||||
EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium"
|
|
||||||
|
|
||||||
do_configure_prepend () {
|
do_configure_prepend () {
|
||||||
cp ${WORKDIR}/matypes.h ${S}/src/mesa/x86
|
cp ${WORKDIR}/matypes.h ${S}/src/mesa/x86
|
||||||
touch ${S}/src/mesa/x86/matypes.h
|
touch ${S}/src/mesa/x86/matypes.h
|
||||||
@@ -44,12 +35,4 @@ do_install_append () {
|
|||||||
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/
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_prepend() {
|
|
||||||
import os.path
|
|
||||||
|
|
||||||
dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri")
|
|
||||||
|
|
||||||
do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='')
|
|
||||||
}
|
|
||||||
|
|
||||||
COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
|
COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
|
||||||
|
|||||||
Reference in New Issue
Block a user