summaryrefslogtreecommitdiff
path: root/recipes/powervr-drivers
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/powervr-drivers')
-rwxr-xr-xrecipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr41
-rw-r--r--recipes/powervr-drivers/libgles-omap3.inc45
-rw-r--r--recipes/powervr-drivers/libgles-omap3/chameleonman.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/evilskull.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/fivespheres.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/lighting.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/mouse.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/optimizemesh.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/particles.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/polybump.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/shaders.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/shadowtechniques.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/skybox.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/skybox2.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/trilinear.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/userclipplanes.desktop8
-rw-r--r--recipes/powervr-drivers/libgles-omap3/vase.desktop8
17 files changed, 199 insertions, 7 deletions
diff --git a/recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr b/recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr
new file mode 100755
index 0000000000..3505e63dfa
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+#rmmod bc_example
+rmmod omaplfb
+rmmod pvrsrvkm
+
+insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
+#modprobe bc_example
+modprobe omaplfb
+
+pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
+
+if [ -e /dev/pvrsrvkm ] ; then
+ rm -f /dev/pvrsrvkm
+fi
+
+mknod /dev/pvrsrvkm c $pvr_maj 0
+chmod 666 /dev/pvrsrvkm
+
+touch /etc/powervr-esrev
+
+SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
+ES_REVISION="$(cat /proc/cpuinfo | grep "CPU revision" | awk -F: '{print $2}')"
+
+if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
+ echo -n "Starting SGX fixup for"
+ if [ "${ES_REVISION}" = " 3" ] ; then
+ echo " ES3.x"
+ cp -a /usr/lib/ES3.0/* /usr/lib
+ cp -a /usr/bin/ES3.0/* /usr/bin
+ else
+ echo "ES 2.x"
+ cp -a /usr/lib/ES2.0/* /usr/lib
+ cp -a /usr/bin/ES2.0/* /usr/bin
+ fi
+
+ echo "${ES_REVISION}" > /etc/powervr-esrev
+fi
+
+/usr/bin/pvrsrvinit
+
diff --git a/recipes/powervr-drivers/libgles-omap3.inc b/recipes/powervr-drivers/libgles-omap3.inc
index 632afbaf23..6813b71aab 100644
--- a/recipes/powervr-drivers/libgles-omap3.inc
+++ b/recipes/powervr-drivers/libgles-omap3.inc
@@ -4,7 +4,8 @@ LICENCE = "proprietary-binary"
#HACK! These are binaries, so we can't guarantee that LDFLAGS match :(
INSANE_SKIP_${PN} = True
INSANE_SKIP_${PN}-tests = True
-
+INSANE_SKIP_${PN}-demos = True
+INSANE_SKIP_xserver-kdrive-powervrsgx = True
PROVIDES += "virtual/egl"
@@ -25,16 +26,37 @@ PROVIDES += "virtual/egl"
SRC_URI = "file://OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \
file://rc.pvr \
+ file://chameleonman.desktop \
+ file://evilskull.desktop \
+ file://fivespheres.desktop \
+ file://lighting.desktop \
+ file://mouse.desktop \
+ file://optimizemesh.desktop \
+ file://particles.desktop \
+ file://polybump.desktop \
+ file://shadowtechniques.desktop \
+ file://skybox.desktop \
+ file://trilinear.desktop \
+ file://userclipplanes.desktop \
+ file://vase.desktop \
+ file://shaders.desktop \
+ file://skybox2.desktop \
"
+
S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
BINLOCATION ?= "${S}/gfx_rel"
-PACKAGES += " xserver-kdrive-powervrsgx ${PN}-tests"
+PACKAGES += " xserver-kdrive-powervrsgx ${PN}-tests ${PN}-demos"
-FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${bindir}/pvrsrvinit"
+FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${libdir}/ES*/* ${bindir}/pvrsrvinit ${bindir}/*/*"
FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
-FILES_${PN}-tests = "${bindir}/*"
+FILES_${PN}-tests = "${bindir}"
+FILES_${PN}-demos = "${prefix}/demos ${prefix}/share/applications "
+FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* ${libdir}/ES*/.debug ${bindir}/*/.debug\
+ ${prefix}/demos/OGLES/*/.debug/* \
+ ${prefix}/demos/OGLES2/*/.debug/* \
+ "
RRECOMMENDS_${PN} = "${PN}-tests \
omap3-sgx-modules"
@@ -47,8 +69,9 @@ INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ."
do_accept_license() {
export HOME="${WORKDIR}"
echo "Y
+q
Y
-${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin
+${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin --mode console
}
addtask accept_license after do_unpack before do_configure
@@ -76,8 +99,7 @@ do_install () {
cp -pP ${BINLOCATION}/pvrsrvinit ${D}${bindir}/
cp -pP ${BINLOCATION}/xgles1test1 ${D}${bindir}/
- cp -pP ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx || true
- cp -pP ${BINLOCATION}/freedesktop/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/ || true
+ cp -pP ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true
install -d ${D}${includedir}
cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/
@@ -91,6 +113,15 @@ do_install () {
install -d ${D}${sysconfdir}
echo "[default]" > ${D}${sysconfdir}/powervr.ini
echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so" >> ${D}${sysconfdir}/powervr.ini
+
+ install -d ${D}${prefix}/demos/OGLES/
+ cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Binaries/CommonX11/Demos/* ${D}${prefix}/demos/OGLES/
+
+ install -d ${D}${prefix}/demos/OGLES2
+ cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Binaries/X11/Demos/* ${D}${prefix}/demos/OGLES2
+
+ install -d ${D}${prefix}/share/applications
+ cp -pPR ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
}
do_stage () {
diff --git a/recipes/powervr-drivers/libgles-omap3/chameleonman.desktop b/recipes/powervr-drivers/libgles-omap3/chameleonman.desktop
new file mode 100644
index 0000000000..23d4fc0b7d
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/chameleonman.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=ChameleonMan Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/ChameleonMan/OGLESChameleonMan
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/evilskull.desktop b/recipes/powervr-drivers/libgles-omap3/evilskull.desktop
new file mode 100644
index 0000000000..0590f7f7ff
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/evilskull.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=EvilSkull Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/EvilSkull/OGLESEvilSkull
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/fivespheres.desktop b/recipes/powervr-drivers/libgles-omap3/fivespheres.desktop
new file mode 100644
index 0000000000..569cad693c
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/fivespheres.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=FiveSpheres Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/FiveSpheres/OGLESFiveSpheres
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/lighting.desktop b/recipes/powervr-drivers/libgles-omap3/lighting.desktop
new file mode 100644
index 0000000000..39179b2408
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/lighting.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Lighting Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/Lighting/OGLESLighting
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/mouse.desktop b/recipes/powervr-drivers/libgles-omap3/mouse.desktop
new file mode 100644
index 0000000000..a56531014c
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/mouse.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Mouse Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/Mouse/OGLESMouse
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/optimizemesh.desktop b/recipes/powervr-drivers/libgles-omap3/optimizemesh.desktop
new file mode 100644
index 0000000000..9d7194a586
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/optimizemesh.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=OptimizeMesh Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/OptimizeMesh/OGLESOptimizeMesh
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/particles.desktop b/recipes/powervr-drivers/libgles-omap3/particles.desktop
new file mode 100644
index 0000000000..1d71b9d25c
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/particles.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Particles Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/Particles/OGLESParticles
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/polybump.desktop b/recipes/powervr-drivers/libgles-omap3/polybump.desktop
new file mode 100644
index 0000000000..d7cf1af8bd
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/polybump.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=PolyBump Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/PolyBump/OGLESPolyBump
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/shaders.desktop b/recipes/powervr-drivers/libgles-omap3/shaders.desktop
new file mode 100644
index 0000000000..bee8c92fb9
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/shaders.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Shaders Demo
+Comment=OGLES2 Demo
+Exec=/usr/demos/OGLES2/Shaders/OGLES2Shaders
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/shadowtechniques.desktop b/recipes/powervr-drivers/libgles-omap3/shadowtechniques.desktop
new file mode 100644
index 0000000000..0f228d5d27
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/shadowtechniques.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=ShadowTechniques Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/ShadowTechniques/OGLESShadowTechniques
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/skybox.desktop b/recipes/powervr-drivers/libgles-omap3/skybox.desktop
new file mode 100644
index 0000000000..69a7f9418b
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/skybox.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Skybox Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/Skybox/OGLESSkybox
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/skybox2.desktop b/recipes/powervr-drivers/libgles-omap3/skybox2.desktop
new file mode 100644
index 0000000000..a2b02f72f6
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/skybox2.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Skybox2 Demo
+Comment=OGLES2 Demo
+Exec=/usr/demos/OGLES2/Skybox2/OGLES2Skybox2
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/trilinear.desktop b/recipes/powervr-drivers/libgles-omap3/trilinear.desktop
new file mode 100644
index 0000000000..3e105ac182
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/trilinear.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Trilinear Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/Trilinear/OGLESTrilinear
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/userclipplanes.desktop b/recipes/powervr-drivers/libgles-omap3/userclipplanes.desktop
new file mode 100644
index 0000000000..9bad690555
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/userclipplanes.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=UserClipPlanes Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/UserClipPlanes/OGLESUserClipPlanes
+Icon=star
+Type=Application
+Categories=Demos;
+
diff --git a/recipes/powervr-drivers/libgles-omap3/vase.desktop b/recipes/powervr-drivers/libgles-omap3/vase.desktop
new file mode 100644
index 0000000000..06064349d6
--- /dev/null
+++ b/recipes/powervr-drivers/libgles-omap3/vase.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Vase Demo
+Comment=OGLES Demo
+Exec=/usr/demos/OGLES/Vase/OGLESVase
+Icon=star
+Type=Application
+Categories=Demos;
+