[meta-ti] [PATCH] libgles-omap3, omap3-sgx-modules: remove old 4.8.x and 5.x versions
Denys Dmytriyenko
denis at denix.org
Fri Jun 20 14:54:18 PDT 2014
From: Denys Dmytriyenko <denys at ti.com>
Leave 4.9 as the last release providing softfp binaries and x11 support.
Leave 4.5 for now as being widely used on legacy omap3 devices.
Signed-off-by: Denys Dmytriyenko <denys at ti.com>
---
.../omap3-sgx-modules_4.08.00.01.bb | 54 --------
.../omap3-sgx-modules_4.08.00.02.bb | 54 --------
.../omap3-sgx-modules_5.00.00.01.bb | 67 ----------
.../omap3-sgx-modules_5.01.00.01.bb | 67 ----------
.../libgles/libgles-omap3-4.08.00.01/rc.pvr | 124 ------------------
.../libgles/libgles-omap3-4.08.00.01/rc_dri.pvr | 136 -------------------
.../libgles/libgles-omap3-4.08.00.02/rc.pvr | 124 ------------------
.../libgles/libgles-omap3-4.08.00.02/rc_dri.pvr | 136 -------------------
.../libgles/libgles-omap3-5.00.00.01/rc.pvr | 134 -------------------
.../libgles/libgles-omap3-5.00.00.01/rc_dri.pvr | 145 ---------------------
.../libgles/libgles-omap3-5.01.00.01/rc.pvr | 134 -------------------
.../libgles/libgles-omap3-5.01.00.01/rc_dri.pvr | 145 ---------------------
.../libgles/libgles-omap3_4.08.00.01.bb | 74 -----------
.../libgles/libgles-omap3_4.08.00.02.bb | 74 -----------
.../libgles/libgles-omap3_5.00.00.01.bb | 50 -------
.../libgles/libgles-omap3_5.01.00.01.bb | 50 -------
16 files changed, 1568 deletions(-)
delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb
delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb
delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb
delete mode 100755 recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr
delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr
delete mode 100644 recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb
delete mode 100644 recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
delete mode 100644 recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
delete mode 100644 recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
deleted file mode 100644
index e9f7190..0000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
+++ /dev/null
@@ -1,54 +0,0 @@
-DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4"
-
-TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
-require ../../recipes-ti/includes/ti-eula-unpack.inc
-
-SGXPV = "4_08_00_01"
-IMGPV = "1.9.2139099"
-BINFILE = "Graphics_SDK_setuplinux_${SGXPV}.bin"
-
-inherit module
-
-MACHINE_KERNEL_PR_append = "a"
-PR = "${MACHINE_KERNEL_PR}"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}"
-
-SRC_URI[md5sum] = "dd0d994a48ecc4293f272a1fddddf159"
-SRC_URI[sha256sum] = "fd721288c95314e0d676dd89462e1dec994e185cb608bcb8ac4a4b5809f9693a"
-
-TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
-S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
-
-PVRBUILD = "release"
-export KERNELDIR = "${STAGING_KERNEL_DIR}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-
-TI_PLATFORM_omap3 = "omap3630"
-TI_PLATFORM_ti814x = "ti81xx"
-TI_PLATFORM_ti816x = "ti81xx"
-TI_PLATFORM_ti33x = "ti335x"
-
-MODULESLOCATION_omap3 = "dc_omapfb3_linux"
-MODULESLOCATION_ti814x = "dc_ti81xx_linux"
-MODULESLOCATION_ti816x = "dc_ti81xx_linux"
-MODULESLOCATION_ti33x = "dc_ti335x_linux"
-
-export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
-
-do_install() {
- mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
- cp ${S}/pvrsrvkm.ko \
- ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
- ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
- ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
-
- if [ "${SUPPORT_XORG}" = "1" ]; then
- cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
- fi
-}
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb
deleted file mode 100644
index d5737cd..0000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb
+++ /dev/null
@@ -1,54 +0,0 @@
-DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4"
-
-TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
-require ../../recipes-ti/includes/ti-eula-unpack.inc
-
-SGXPV = "4_08_00_02"
-IMGPV = "1.9.2188537"
-BINFILE = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
-
-inherit module
-
-MACHINE_KERNEL_PR_append = "a"
-PR = "${MACHINE_KERNEL_PR}"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}"
-
-SRC_URI[md5sum] = "0efa3a38266e6f41f8cc4fad0187f0d6"
-SRC_URI[sha256sum] = "c732044b515a598e1fab661b7463aa9c53d4fa37f4980dfa85cd02b7468d0cd9"
-
-TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
-S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
-
-PVRBUILD = "release"
-export KERNELDIR = "${STAGING_KERNEL_DIR}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-
-TI_PLATFORM_omap3 = "omap3630"
-TI_PLATFORM_ti814x = "ti81xx"
-TI_PLATFORM_ti816x = "ti81xx"
-TI_PLATFORM_ti33x = "ti335x"
-
-MODULESLOCATION_omap3 = "dc_omapfb3_linux"
-MODULESLOCATION_ti814x = "dc_ti81xx_linux"
-MODULESLOCATION_ti816x = "dc_ti81xx_linux"
-MODULESLOCATION_ti33x = "dc_ti335x_linux"
-
-export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
-
-do_install() {
- mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
- cp ${S}/pvrsrvkm.ko \
- ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
- ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
- ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
-
- if [ "${SUPPORT_XORG}" = "1" ]; then
- cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
- fi
-}
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb
deleted file mode 100644
index e18ce0c..0000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb
+++ /dev/null
@@ -1,67 +0,0 @@
-DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e"
-
-TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
-require ../../recipes-ti/includes/ti-eula-unpack.inc
-
-SGXPV = "5_00_00_01"
-IMGPV = "1.10.2359475"
-
-inherit module
-
-MACHINE_KERNEL_PR_append = "a"
-PR = "${MACHINE_KERNEL_PR}"
-
-BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_alpha_hardfp_minimal_demos.bin"
-MD5SUM_HARDFP = "ae6125d7f8a313ea5c02afded893052d"
-SHA256SUM_HARDFP = "c2782a2f85024741722b936ec9dca66b858ae8561aa71b693f11e12d8c0385e0"
-
-# For now we only have hardfp version
-python __anonymous() {
- tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
- if not tunes:
- return
- pkgn = bb.data.getVar("PN", d, 1)
- pkgv = bb.data.getVar("PV", d, 1)
- if "callconvention-hard" not in tunes:
- bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
- raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
-}
-
-BINFILE := "${BINFILE_HARDFP}"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
-
-SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
-SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
-
-TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
-S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
-
-PVRBUILD = "release"
-export KERNELDIR = "${STAGING_KERNEL_DIR}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-
-TI_PLATFORM_omap3 = "omap3630"
-TI_PLATFORM_ti814x = "ti81xx"
-TI_PLATFORM_ti816x = "ti81xx"
-TI_PLATFORM_ti33x = "ti335x"
-TI_PLATFORM_ti43x = "ti43xx"
-
-MODULESLOCATION_omap3 = "dc_omapfb3_linux"
-MODULESLOCATION_ti814x = "dc_ti81xx_linux"
-MODULESLOCATION_ti816x = "dc_ti81xx_linux"
-MODULESLOCATION_ti33x = "dc_ti335x_linux"
-MODULESLOCATION_ti43x = "dc_ti43xx_linux"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
-
-do_install() {
- mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
- cp ${S}/pvrsrvkm.ko \
- ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
- ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
- ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
-}
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb
deleted file mode 100644
index 162e4d5..0000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb
+++ /dev/null
@@ -1,67 +0,0 @@
-DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e"
-
-TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
-require ../../recipes-ti/includes/ti-eula-unpack.inc
-
-SGXPV = "5_01_00_01"
-IMGPV = "1.10.2359475"
-
-inherit module
-
-MACHINE_KERNEL_PR_append = "a"
-PR = "${MACHINE_KERNEL_PR}"
-
-BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
-MD5SUM_HARDFP = "0ee7d59808330d442a51c0990c2cb30e"
-SHA256SUM_HARDFP = "769daae439677a7a85bbbced14cee4f85b19823e0b99560078d0a864c525c128"
-
-# For now we only have hardfp version
-python __anonymous() {
- tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
- if not tunes:
- return
- pkgn = bb.data.getVar("PN", d, 1)
- pkgv = bb.data.getVar("PV", d, 1)
- if "callconvention-hard" not in tunes:
- bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
- raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
-}
-
-BINFILE := "${BINFILE_HARDFP}"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
-
-SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
-SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
-
-TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
-S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
-
-PVRBUILD = "release"
-export KERNELDIR = "${STAGING_KERNEL_DIR}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-
-TI_PLATFORM_omap3 = "omap3630"
-TI_PLATFORM_ti814x = "ti81xx"
-TI_PLATFORM_ti816x = "ti81xx"
-TI_PLATFORM_ti33x = "ti335x"
-TI_PLATFORM_ti43x = "ti43xx"
-
-MODULESLOCATION_omap3 = "dc_omapfb3_linux"
-MODULESLOCATION_ti814x = "dc_ti81xx_linux"
-MODULESLOCATION_ti816x = "dc_ti81xx_linux"
-MODULESLOCATION_ti33x = "dc_ti335x_linux"
-MODULESLOCATION_ti43x = "dc_ti43xx_linux"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
-
-do_install() {
- mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
- cp ${S}/pvrsrvkm.ko \
- ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
- ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
- ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
-}
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr
deleted file mode 100755
index 7b5cefa..0000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
- rmmod bufferclass_ti
- rmmod omaplfb 2>/dev/null
- rmmod pvrsrvkm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
-
- modprobe omaplfb
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- devmem2 0x44e01104 w 0x0 > /dev/null
- devmem2 0x44e00904 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr
deleted file mode 100755
index dd1e942..0000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
-
- # Stop the X Server.
- #
- [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
-
- rmmod bufferclass_ti
- rmmod pvrsrvkm 2>/dev/null
- rmmod drm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
-
- # Start the X Server.
- # The X Server will load the PVR Services module.
- #
- /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
-
- modprobe drm
-
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
-
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- devmem2 0x44e01104 w 0x0 > /dev/null
- devmem2 0x44e00904 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr
deleted file mode 100755
index 7b5cefa..0000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
- rmmod bufferclass_ti
- rmmod omaplfb 2>/dev/null
- rmmod pvrsrvkm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
-
- modprobe omaplfb
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- devmem2 0x44e01104 w 0x0 > /dev/null
- devmem2 0x44e00904 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr
deleted file mode 100755
index dd1e942..0000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
-
- # Stop the X Server.
- #
- [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
-
- rmmod bufferclass_ti
- rmmod pvrsrvkm 2>/dev/null
- rmmod drm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
-
- # Start the X Server.
- # The X Server will load the PVR Services module.
- #
- /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
-
- modprobe drm
-
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
-
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- devmem2 0x44e01104 w 0x0 > /dev/null
- devmem2 0x44e00904 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
deleted file mode 100755
index 132749a..0000000
--- a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
- rmmod bufferclass_ti
- rmmod omaplfb 2>/dev/null
- rmmod pvrsrvkm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
-
- lsmod | grep pvrsrvkm > /dev/null
-
- if [ "$?" != "0" ]
- then
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
- fi
-
- modprobe omaplfb
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI43XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
deleted file mode 100755
index 9b75aaf..0000000
--- a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
+++ /dev/null
@@ -1,145 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
-
- # Stop the X Server.
- #
- [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
-
- rmmod bufferclass_ti
- rmmod pvrsrvkm 2>/dev/null
- rmmod drm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
-
- # Start the X Server.
- # The X Server will load the PVR Services module.
- #
- /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
-
- modprobe drm
-
- lsmod | grep pvrsrvkm > /dev/null
-
- if [ "$?" != "0" ]
- then
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
- fi
-
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI43XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr
deleted file mode 100755
index 132749a..0000000
--- a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
- rmmod bufferclass_ti
- rmmod omaplfb 2>/dev/null
- rmmod pvrsrvkm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
-
- lsmod | grep pvrsrvkm > /dev/null
-
- if [ "$?" != "0" ]
- then
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
- fi
-
- modprobe omaplfb
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI43XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr
deleted file mode 100755
index 9b75aaf..0000000
--- a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr
+++ /dev/null
@@ -1,145 +0,0 @@
-#!/bin/sh
-PATH=$PATH:/usr/sbin
-
-# Check if an fb device is available. If not then just go ahead and
-# exit because we have no display.
-fbset > /dev/null 2>&1
-if [ "$?" == "1" ]
-then
- # looks like there is no display, so let's exit
- exit 0
-fi
-
-BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
-YRES="$(fbset | grep geom | awk '{print $3}')"
-
-CPUTYPE="$(cputype)"
-
-if [ "$1" = "" ]; then
- echo PVR-INIT: Please use start, stop, or restart.
- exit 1
-fi
-
-if [ "$1" = "stop" -o "$1" = "restart" ]; then
- echo Stopping PVR
-
- # Stop the X Server.
- #
- [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
-
- rmmod bufferclass_ti
- rmmod pvrsrvkm 2>/dev/null
- rmmod drm 2>/dev/null
-fi
-
-if [ "$1" = "stop" ]; then
- exit 0
-fi
-
-# Set RGBA ordering to something the drivers like
-if [ "$BITSPERPIXEL" = "32" ] ; then
- fbset -rgba 8/16,8/8,8/0,8/24
-fi
-
-# Try to enable triple buffering when there's enough VRAM
-fbset -vyres $(expr $YRES \* 3)
-
-sgxprepare () {
- echo Starting PVR
-
- # Start the X Server.
- # The X Server will load the PVR Services module.
- #
- /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
-
- modprobe drm
-
- lsmod | grep pvrsrvkm > /dev/null
-
- if [ "$?" != "0" ]
- then
- insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-
- if [ "$?" != "0" ]
- then
- echo "Could not find pvrsrvkm driver"
- exit 1
- fi
- fi
-
- modprobe bufferclass_ti
-
- pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
- bc_maj=`grep "bc" /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)"
-}
-
-sgxfinish () {
- # Fix up a bug in opkg
- if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
- cd /usr/lib
- ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
- fi
-
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
- echo -n "Starting SGX fixup for"
- echo " ES${ES_REVISION}.x"
- cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
- cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
- echo "${ES_REVISION}" > /etc/powervr-esrev
- fi
-
- if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
-}
-
-case $CPUTYPE in
-"OMAP3530")
- sgxprepare
-
- devmem2 0x48004B48 w 0x2 > /dev/null
- devmem2 0x48004B10 w 0x1 > /dev/null
- devmem2 0x48004B00 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI33XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI43XX")
- sgxprepare
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-"TI816x")
- sgxprepare
-
- devmem2 0x48180F04 w 0x0 > /dev/null
- devmem2 0x48180900 w 0x2 > /dev/null
- devmem2 0x48180920 w 0x2 > /dev/null
-
- ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
-
- sgxfinish
- ;;
-*)
- echo No SGX hardware, not starting PVR
- ;;
-esac
diff --git a/recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb b/recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb
deleted file mode 100644
index e466aab..0000000
--- a/recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb
+++ /dev/null
@@ -1,74 +0,0 @@
-require libgles-omap3.inc
-
-LICENSE = "TI-TSPA"
-
-BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
-BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
-
-PLATFORM = "LinuxARMV7"
-PVR_INIT = "pvrsrvctl"
-
-# download required binary distribution from:
-# http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
-# see libgles-omap3.inc for detailed installation instructions
-
-SGXPV = "4_08_00_01"
-IMGPV = "1.9.2139099"
-BINFILE = "Graphics_SDK_setuplinux_${SGXPV}.bin"
-TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
- file://cputype \
- file://rc.pvr \
- file://rc_dri.pvr \
- file://sample.desktop \
- file://99-bufferclass.rules \
-"
-
-SRC_URI[md5sum] = "dd0d994a48ecc4293f272a1fddddf159"
-SRC_URI[sha256sum] = "fd721288c95314e0d676dd89462e1dec994e185cb608bcb8ac4a4b5809f9693a"
-
-S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
-
-LIBGLESWINDOWSYSTEM ?= "${@base_contains('DISTRO_FEATURES', 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
-
-do_configure_append() {
-
- # Change PVR server's user mode library to point to DRI
- for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
- if [ "$drifile" != "" ]
- then
- dir=$(dirname ${drifile})
- if [ "$SUPPORT_XORG" = "1" ]
- then
- mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
- else
- rm -rf ${dir}/libsrv_um_dri.so
- fi
- fi
-
- done
-}
-
-do_install_append() {
-
- # In this version of the graphics SDK the following directories do not exist:
- # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h (doesn't exist)
- # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltypes.h (doesn't exist)
- # Therefore, need to copy these files manually at the only location that they do exist
- cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
- cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
-
- rm ${D}${sysconfdir}/init.d/pvr-init
-
- if [ "$SUPPORT_XORG" = "1" ]; then
- cp -pP ${WORKDIR}/rc_dri.pvr ${D}${sysconfdir}/init.d/pvr-init
- else
- cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
- fi
-
-}
-
-RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
-RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
diff --git a/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb b/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
deleted file mode 100644
index f4cd9ae..0000000
--- a/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
+++ /dev/null
@@ -1,74 +0,0 @@
-require libgles-omap3.inc
-
-LICENSE = "TI-TSPA"
-
-BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
-BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
-
-PLATFORM = "LinuxARMV7"
-PVR_INIT = "pvrsrvctl"
-
-# download required binary distribution from:
-# http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
-# see libgles-omap3.inc for detailed installation instructions
-
-SGXPV = "4_08_00_02"
-IMGPV = "1.9.2188537"
-BINFILE = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
-TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
- file://cputype \
- file://rc.pvr \
- file://rc_dri.pvr \
- file://sample.desktop \
- file://99-bufferclass.rules \
-"
-
-SRC_URI[md5sum] = "0efa3a38266e6f41f8cc4fad0187f0d6"
-SRC_URI[sha256sum] = "c732044b515a598e1fab661b7463aa9c53d4fa37f4980dfa85cd02b7468d0cd9"
-
-S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
-
-LIBGLESWINDOWSYSTEM ?= "${@base_contains('DISTRO_FEATURES', 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
-
-do_configure_append() {
-
- # Change PVR server's user mode library to point to DRI
- for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
- if [ "$drifile" != "" ]
- then
- dir=$(dirname ${drifile})
- if [ "$SUPPORT_XORG" = "1" ]
- then
- mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
- else
- rm -rf ${dir}/libsrv_um_dri.so
- fi
- fi
-
- done
-}
-
-do_install_append() {
-
- # In this version of the graphics SDK the following directories do not exist:
- # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h (doesn't exist)
- # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltypes.h (doesn't exist)
- # Therefore, need to copy these files manually at the only location that they do exist
- cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
- cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
-
- rm ${D}${sysconfdir}/init.d/pvr-init
-
- if [ "$SUPPORT_XORG" = "1" ]; then
- cp -pP ${WORKDIR}/rc_dri.pvr ${D}${sysconfdir}/init.d/pvr-init
- else
- cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
- fi
-
-}
-
-RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
-RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
diff --git a/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb b/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
deleted file mode 100644
index 22e510b..0000000
--- a/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
+++ /dev/null
@@ -1,50 +0,0 @@
-require libgles-omap3-no-x.inc
-
-LICENSE = "TI-TSPA"
-
-PR = "${INC_PR}.2"
-
-BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
-BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
-BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
-
-PLATFORM = "LinuxARMV7"
-PVR_INIT = "pvrsrvctl"
-
-SGXPV = "5_00_00_01"
-IMGPV = "1.10.2359475"
-
-TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
-
-BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_alpha_hardfp_minimal_demos.bin"
-MD5SUM_HARDFP = "ae6125d7f8a313ea5c02afded893052d"
-SHA256SUM_HARDFP = "c2782a2f85024741722b936ec9dca66b858ae8561aa71b693f11e12d8c0385e0"
-
-# For now we only have hardfp version
-python __anonymous() {
- tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
- if not tunes:
- return
- pkgn = bb.data.getVar("PN", d, 1)
- pkgv = bb.data.getVar("PV", d, 1)
- if "callconvention-hard" not in tunes:
- bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
- raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
-}
-
-BINFILE := "${BINFILE_HARDFP}"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
- file://cputype \
- file://rc.pvr \
- file://99-bufferclass.rules \
-"
-
-SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
-SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
-
-S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
-
-LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
diff --git a/recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb b/recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb
deleted file mode 100644
index 607b44a..0000000
--- a/recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb
+++ /dev/null
@@ -1,50 +0,0 @@
-require libgles-omap3-no-x.inc
-
-LICENSE = "TI-TSPA"
-
-PR = "${INC_PR}.2"
-
-BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
-BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
-BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
-BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
-
-PLATFORM = "LinuxARMV7"
-PVR_INIT = "pvrsrvctl"
-
-SGXPV = "5_01_00_01"
-IMGPV = "1.10.2359475"
-
-TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
-
-BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
-MD5SUM_HARDFP = "0ee7d59808330d442a51c0990c2cb30e"
-SHA256SUM_HARDFP = "769daae439677a7a85bbbced14cee4f85b19823e0b99560078d0a864c525c128"
-
-# For now we only have hardfp version
-python __anonymous() {
- tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
- if not tunes:
- return
- pkgn = bb.data.getVar("PN", d, 1)
- pkgv = bb.data.getVar("PV", d, 1)
- if "callconvention-hard" not in tunes:
- bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
- raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
-}
-
-BINFILE := "${BINFILE_HARDFP}"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
- file://cputype \
- file://rc.pvr \
- file://99-bufferclass.rules \
-"
-
-SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
-SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
-
-S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
-
-LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
--
2.0.0
More information about the meta-ti
mailing list