From 239ca8ddd9786e9d546183b7902e9ac3a96e4057 Mon Sep 17 00:00:00 2001 From: Brijesh Singh Date: Thu, 29 Oct 2009 17:41:18 -0500 Subject: bc-cat-omap 0.1.0: add recipe to build bc-cat module. * adjust libgles-omap3 staging to stage more headers for thisi * bc-cat module complains about unresolved symbols during modprobe hence using modprobe -f to force the module loading. --- .../powervr-drivers/bc-cat-omap3-module/rc.bccat | 22 ++++++++++ .../powervr-drivers/bc-cat-omap3-module_0.1.0.bb | 2 + recipes/powervr-drivers/bc-cat.inc | 51 ++++++++++++++++++++++ recipes/powervr-drivers/libgles-omap3.inc | 3 ++ .../powervr-drivers/libgles-omap3_3.00.00.09.bb | 2 +- 5 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 recipes/powervr-drivers/bc-cat-omap3-module/rc.bccat create mode 100644 recipes/powervr-drivers/bc-cat-omap3-module_0.1.0.bb create mode 100644 recipes/powervr-drivers/bc-cat.inc (limited to 'recipes/powervr-drivers') diff --git a/recipes/powervr-drivers/bc-cat-omap3-module/rc.bccat b/recipes/powervr-drivers/bc-cat-omap3-module/rc.bccat new file mode 100644 index 0000000000..eeb3fdc141 --- /dev/null +++ b/recipes/powervr-drivers/bc-cat-omap3-module/rc.bccat @@ -0,0 +1,22 @@ +#!/bin/sh +# +# install bc-cat module and create device nodes +# +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +case "$1" in + start) echo -n "install bc-cat kernel module... " + modprobe -f bc-cat + rm -rf /dev/bc_cat + mknod /dev/bc_cat c `awk "\\$2==\"bc_cat\" {print \\$1}" /proc/devices` 0 + echo "done" + ;; + stop) echo -n "removing bc-cat kernel module... " + rmmod bc-cat + echo "done" + rm -rf /dev/bc_cat + ;; + *) echo "$0 " + ;; +esac + diff --git a/recipes/powervr-drivers/bc-cat-omap3-module_0.1.0.bb b/recipes/powervr-drivers/bc-cat-omap3-module_0.1.0.bb new file mode 100644 index 0000000000..7f5cc70b5d --- /dev/null +++ b/recipes/powervr-drivers/bc-cat-omap3-module_0.1.0.bb @@ -0,0 +1,2 @@ +require bc-cat.inc + diff --git a/recipes/powervr-drivers/bc-cat.inc b/recipes/powervr-drivers/bc-cat.inc new file mode 100644 index 0000000000..4213113393 --- /dev/null +++ b/recipes/powervr-drivers/bc-cat.inc @@ -0,0 +1,51 @@ +DESCRIPTION = "Video texture streaming via IMG 3rdparty bufferclass (bc-cat) module" +DEPENDS = "libgles-omap3" +inherit module + +SRC_URI="http://software-dl.ti.com/dsps/dsps_public_sw/apps_processors/OMAP35x_AM35x_Video_Texture_Streaming/1_0/exports/bc-cat-${PV}.tar.gz \ + file://rc.bccat \ +" + +S=${WORKDIR}/bc-cat-${PV} + +PACKAGES += " ${PN}-tests" +INSANE_SKIP_${PN}-tests = True +INSANE_SKIP_${PN} = True +FILES_${PN} = "${sysconfdir} /lib/modules/${KERNEL_VERSION}/drivers/gpu/bc-cat/bc_cat.ko" +FILES_${PN}-tests = "/usr/demos/bc-cat/*" +RDEPENDS_${PN}-tests += "${PN}" + +inherit update-rc.d + +INITSCRIPT_NAME = "bccat-init" +INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." + +do_compile () { + # build kernel module + cd ${S}/module + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + make GSDK_KM_DIR=${STAGING_INCDIR} \ + KERNEL_DIR=${STAGING_KERNEL_DIR} \ + CROSS_COMPILE=${TARGET_PREFIX} + + # build test application + cd ${S}/test + make GSDK_KM_DIR=${STAGING_INCDIR} \ + KERNEL_DIR=${STAGING_KERNEL_DIR} \ + CROSS_COMPILE=${TARGET_PREFIX} \ + X11BUILD=1 +} + +do_install () { + # install kernel module + install -d ${D}/lib/modules/${KERNEL_VERSION}/drivers/gpu/bc-cat + cp ${S}/module/bc_cat.ko ${D}/lib/modules/${KERNEL_VERSION}/drivers/gpu/bc-cat + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/rc.bccat ${D}${sysconfdir}/init.d/bccat-init + + # install test app + install -d ${D}/usr/demos/bc-cat + cp ${S}/test/gles1_bc_mmap ${D}/usr/demos/bc-cat/ + cp ${S}/test/gles1_bc_webcam ${D}/usr/demos/bc-cat/ +} + diff --git a/recipes/powervr-drivers/libgles-omap3.inc b/recipes/powervr-drivers/libgles-omap3.inc index 23c084c207..880732ad98 100644 --- a/recipes/powervr-drivers/libgles-omap3.inc +++ b/recipes/powervr-drivers/libgles-omap3.inc @@ -129,6 +129,9 @@ do_stage () { cp -pP ${BINLOCATION}/*.a ${STAGING_LIBDIR} install -d ${STAGING_INCDIR} + cp -pPR ${S}/GFX_Linux_KM/include4 ${STAGING_INCDIR}/ + cp -pPR ${S}/GFX_Linux_KM/services4 ${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/ diff --git a/recipes/powervr-drivers/libgles-omap3_3.00.00.09.bb b/recipes/powervr-drivers/libgles-omap3_3.00.00.09.bb index 3a90c4e68a..8b51813389 100644 --- a/recipes/powervr-drivers/libgles-omap3_3.00.00.09.bb +++ b/recipes/powervr-drivers/libgles-omap3_3.00.00.09.bb @@ -4,7 +4,7 @@ DEFAULT_PREFERENCE = "1" # download required binary distribution from: # http://software-dl.ti.com/dsps/forms/export.html?prod_no=/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin -PR = "r1" +PR = "r2" SGXPV = "3_00_00_09" IMGPV = "1.3.13.1832" -- cgit v1.2.3