summaryrefslogtreecommitdiff
path: root/packages/powervr-drivers
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2009-02-13 14:12:54 -0500
committerPhilip Balister <philip@balister.org>2009-02-13 14:12:54 -0500
commit18992093169e9ebd2a61989b853986a77199be35 (patch)
treed08928e78b95ea9dcbd7a4f5a193b18e197e8a8d /packages/powervr-drivers
parent36001a65d7eb5f4432b999d24c29501834a3b431 (diff)
parent97b340db7c7b9ee3ed53e02eaa63c9873f4e1610 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/powervr-drivers')
-rw-r--r--packages/powervr-drivers/libgles-omap3.inc30
-rwxr-xr-xpackages/powervr-drivers/libgles-omap3/rc.pvr4
-rw-r--r--packages/powervr-drivers/libgles-omap3_3.00.00.05.bb4
-rw-r--r--packages/powervr-drivers/libgles-omap3_3.00.00.06.bb21
4 files changed, 48 insertions, 11 deletions
diff --git a/packages/powervr-drivers/libgles-omap3.inc b/packages/powervr-drivers/libgles-omap3.inc
index b9933aadfa..36c2b6e9dd 100644
--- a/packages/powervr-drivers/libgles-omap3.inc
+++ b/packages/powervr-drivers/libgles-omap3.inc
@@ -1,6 +1,8 @@
DESCRIPTION = "libGLES for the omap3"
LICENCE = "proprietary-binary"
+PROVIDES += "virtual/egl"
+
# Put "OMAP35x_Graphics_SDK_setuplinux_3_00_00_05.bin" in the same directory as this recipe
SRC_URI = "file://OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \
file://rc.pvr \
@@ -15,8 +17,6 @@ FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${bindir}/pvrsrvinit"
FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
FILES_${PN}-tests = "${bindir}/*"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
RRECOMMENDS_${PN} = "${PN}-tests \
omap3-sgx-modules"
@@ -32,16 +32,21 @@ Y
${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin
}
-addtask accept_license after do_unpack before do_compile
+addtask accept_license after do_unpack before do_configure
-do_compile () {
- :
+do_compile() {
+ for sofile in $(find ${S} -name "lib*Open*.so") $(find ${S} -name "lib*srv*.so") $(find ${S} -name "lib*gl*.so") $(find ${S} -name "libpvr*.so") $(find ${S} -name "lib*GL*.so"); do
+ if [ "$(readlink -n ${sofile})" = "" ] ; then
+ mv $sofile ${sofile}.${IMGPV}
+ ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}
+ fi
+ done
}
do_install () {
install -d ${D}${libdir}
- cp -pR ${BINLOCATION}/*.so* ${D}${libdir}
+ cp -pP ${BINLOCATION}/*.so* ${D}${libdir}
install -d ${D}${bindir}/
cp -pP ${BINLOCATION}/*_test ${D}${bindir}/
@@ -52,13 +57,21 @@ do_install () {
cp -pP ${BINLOCATION}/pvrsrvinit ${D}${bindir}/
cp -pP ${BINLOCATION}/xgles1test1 ${D}${bindir}/
- cp -pP ${BINLOCATION}/freedesktop/usr/X11R6_SGX/bin/Xsgx ${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
install -d ${D}${includedir}
cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/
+ cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
+ cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES/
+ cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES2/
install -d ${D}${sysconfdir}/init.d/
cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
+
+ install -d ${D}${sysconfdir}
+ echo "[default]" > ${D}${sysconfdir}/powervr.ini
+ echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so" >> ${D}${sysconfdir}/powervr.ini
}
do_stage () {
@@ -68,6 +81,9 @@ do_stage () {
install -d ${STAGING_INCDIR}
cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${STAGING_INCDIR}/
+ cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${STAGING_INCDIR}/
+ cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxOMAP3/Include/GLES/* ${STAGING_INCDIR}/GLES/
+ cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/Include/GLES/* ${STAGING_INCDIR}/GLES2/
}
pkg_postinst() {
diff --git a/packages/powervr-drivers/libgles-omap3/rc.pvr b/packages/powervr-drivers/libgles-omap3/rc.pvr
index 3fa0aff02f..4476a9d7e9 100755
--- a/packages/powervr-drivers/libgles-omap3/rc.pvr
+++ b/packages/powervr-drivers/libgles-omap3/rc.pvr
@@ -1,11 +1,11 @@
#!/bin/sh
-rmmod bc_example
+#rmmod bc_example
rmmod omaplfb
rmmod pvrsrvkm
insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-modprobe bc_example
+#modprobe bc_example
modprobe omaplfb
pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
diff --git a/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb b/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb
index 62c69a0ed0..814ca04637 100644
--- a/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb
+++ b/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb
@@ -2,11 +2,11 @@ require libgles-omap3.inc
# Not released yet
DEFAULT_PREFERENCE = "-1"
-PR = "r2"
+PR = "r3"
SGXPV = "3_00_00_05"
+IMGPV = "1.2.12.838"
# Quality control is really poor on these SDKs, so hack around the latest madness:
FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-dev = "${includedir}"
-
diff --git a/packages/powervr-drivers/libgles-omap3_3.00.00.06.bb b/packages/powervr-drivers/libgles-omap3_3.00.00.06.bb
new file mode 100644
index 0000000000..aba613c14b
--- /dev/null
+++ b/packages/powervr-drivers/libgles-omap3_3.00.00.06.bb
@@ -0,0 +1,21 @@
+require libgles-omap3.inc
+
+# Not released yet
+#DEFAULT_PREFERENCE = "-1"
+PR = "r5"
+
+SGXPV = "3_00_00_06"
+IMGPV = "1.3.13.1397"
+
+do_accept_license() {
+ export HOME="${WORKDIR}"
+ echo "Y
+q
+Y
+${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin
+}
+
+# Quality control is really poor on these SDKs, so hack around the latest madness:
+FILES_${PN} += "${libdir}/*.so"
+FILES_${PN}-dev = "${includedir}"
+