From a11f1ae4c07d09be89be49f9094207abddad854e Mon Sep 17 00:00:00 2001 From: Prathap M S Date: Mon, 10 Oct 2011 15:09:46 +0530 Subject: [PATCH 1/2] libgles-omap3_4.04.00.02: added support for graphics sdk 04.04.00.02 * added support sgx ddk 1.6.16.4117 * included video driver as part of the kernel for accessing the fbdev in the sgx driver Signed-off-by: Prathap M S --- classes/kernel.bbclass | 2 +- .../powervr-drivers/libgles-omap3_4.04.00.02.bb | 29 +++++++++++++ .../omap3-sgx-modules_1.6.16.4117.bb | 44 ++++++++++++++++++++ 3 files changed, 74 insertions(+), 1 deletions(-) create mode 100644 recipes/powervr-drivers/libgles-omap3_4.04.00.02.bb create mode 100644 recipes/powervr-drivers/omap3-sgx-modules_1.6.16.4117.bb diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 0109ce6..bf731e6 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -168,7 +168,7 @@ sysroot_stage_all_append() { mkdir -p $kerneldir/include/asm-generic cp -fR include/asm-generic/* $kerneldir/include/asm-generic/ - for entry in drivers/crypto drivers/media include/generated include/linux include/net include/pcmcia include/media include/acpi include/sound include/video include/scsi include/trace include/mtd include/rdma include/drm include/xen crypto/ocf; do + for entry in drivers/crypto drivers/media drivers/video drivers/gpu drivers/base include/generated include/linux include/net include/pcmcia include/media include/acpi include/sound include/video include/scsi include/trace include/mtd include/rdma include/drm include/xen crypto/ocf; do if [ -d $entry ]; then mkdir -p $kerneldir/$entry cp -fR $entry/* $kerneldir/$entry/ diff --git a/recipes/powervr-drivers/libgles-omap3_4.04.00.02.bb b/recipes/powervr-drivers/libgles-omap3_4.04.00.02.bb new file mode 100644 index 0000000..c5062c1 --- /dev/null +++ b/recipes/powervr-drivers/libgles-omap3_4.04.00.02.bb @@ -0,0 +1,29 @@ +BINLOCATION_omap3 = "${S}/gfx_rel_es3.x" +BINLOCATION_ti816x = "${S}/gfx_rel_es6.x" + +ES2LOCATION = "${S}/gfx_rel_es2.x" +ES3LOCATION = "${S}/gfx_rel_es3.x" +ES5LOCATION = "${S}/gfx_rel_es5.x" +ES6LOCATION = "${S}/gfx_rel_es6.x" + +require libgles-omap3.inc + +# 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_04_00_02" +IMGPV = "1.6.16.4117" +BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin" + +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/Graphics_SDK_setuplinux_${SGXPV}.bin \ + file://cputype \ + file://rc.pvr \ + file://sample.desktop \ + file://99-bufferclass.rules \ +" +SRC_URI[md5sum] = "901327765c0991900afda91473f84725" +SRC_URI[sha256sum] = "2ced2329ec819e42d57eca1a11120b02ec9c332fb63baa0a41285eed07d4b48e" + +S = "${WORKDIR}/Graphics_SDK_${SGXPV}" + diff --git a/recipes/powervr-drivers/omap3-sgx-modules_1.6.16.4117.bb b/recipes/powervr-drivers/omap3-sgx-modules_1.6.16.4117.bb new file mode 100644 index 0000000..89e0f12 --- /dev/null +++ b/recipes/powervr-drivers/omap3-sgx-modules_1.6.16.4117.bb @@ -0,0 +1,44 @@ +DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs" +LICENSE = "GPLv2" + +# 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 + +TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" +require ../ti/ti-eula-unpack.inc + +SGXPV = "4_04_00_02" +IMGPV = "1.6.16.4117" +BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin" + +inherit module + +MACHINE_KERNEL_PR_append = "i" + +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/Graphics_SDK_setuplinux_${SGXPV}.bin \ + file://Compile-fixes-for-38-kernel.patch \ + " +SRC_URI[md5sum] = "901327765c0991900afda91473f84725" +SRC_URI[sha256sum] = "2ced2329ec819e42d57eca1a11120b02ec9c332fb63baa0a41285eed07d4b48e" + +S = "${WORKDIR}/Graphics_SDK_${SGXPV}/GFX_Linux_KM" + +PVRBUILD = "release" + +PACKAGE_STRIP = "no" + +TI_PLATFORM_omap3 = "omap3630" +TI_PLATFORM_ti816x = "ti81xx" + +MODULESLOCATION_omap3 = "dc_omapfb3_linux" +MODULESLOCATION_ti816x = "dc_ti81xx_linux" + +MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM}" + +do_install() { + mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + cp ${S}/pvrsrvkm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + cp ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + cp ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr +} -- 1.7.1