Openembedded Devel Discussions
 help / color / mirror / Atom feed
* Patches to add support for TI Linux Graphics SDK release 04.04.00.02
@ 2011-10-12  9:57 Srinivas, Prathap
  2011-10-12 10:06 ` Patches to add support for TI Linux Graphics SDK release04.04.00.02 Hauser, Wolfgang (external)
  2011-10-12 10:17 ` Patches to add support for TI Linux Graphics SDK release 04.04.00.02 Koen Kooi
  0 siblings, 2 replies; 16+ messages in thread
From: Srinivas, Prathap @ 2011-10-12  9:57 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

Hi All,
Attached are the patches for adding TI Linux Graphics SDK 04.04.00.02 Release support in OE. Please include these patches in the OE.

Details of patches -
1) 0001-libgles-omap3_4.04.00.02-added-support-for-graphics-.patch - Adds support for TI Linux graphics SDK release 04.04.00.02
2) 0002-Fix-for-library-linking-isssue-with-graphics-SDK.patch - Fix to link the appropriate graphics user library with TI Linux graphics SDK release 04.04.00.02.

Since I am sending through outlook, the patches may get mangled. So I am attaching the patches.

Thanks,
Prathap.


[-- Attachment #2: 0001-libgles-omap3_4.04.00.02-added-support-for-graphics-.patch --]
[-- Type: application/octet-stream, Size: 4995 bytes --]

From a11f1ae4c07d09be89be49f9094207abddad854e Mon Sep 17 00:00:00 2001
From: Prathap M S <msprathap@ti.com>
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 <msprathap@ti.com>
---
 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


[-- Attachment #3: 0002-Fix-for-library-linking-isssue-with-graphics-SDK.patch --]
[-- Type: application/octet-stream, Size: 1401 bytes --]

From 59227811f6d4364cb8cf254f527efd233bd10827 Mon Sep 17 00:00:00 2001
From: Prathap M S <msprathap@ti.com>
Date: Tue, 11 Oct 2011 10:58:34 +0530
Subject: [PATCH 2/2] Fix for library linking isssue with graphics SDK
 Signed-off-by: Prathap M S <msprathap@ti.com>

---
 recipes/powervr-drivers/libgles-omap3.inc |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/recipes/powervr-drivers/libgles-omap3.inc b/recipes/powervr-drivers/libgles-omap3.inc
index 36c311d..e605681 100644
--- a/recipes/powervr-drivers/libgles-omap3.inc
+++ b/recipes/powervr-drivers/libgles-omap3.inc
@@ -1,7 +1,7 @@
 DESCRIPTION = "libGLES for the omap3"
 LICENSE = "proprietary-binary"
 
-PR = "r15"
+PR = "r16"
 
 COMPATIBLE_MACHINE = "(omap3|ti816x)"
 
@@ -35,6 +35,13 @@ do_configure() {
 	for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do
 		chmod 0644 $i
 	done 
+	
+	for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
+                if [ "$drifile" != "" ] ; then
+                        dir=$(dirname ${drifile})
+                        rm -rf ${dir}/libsrv_um_dri.so
+                fi
+	done
 
 	# Attempt to create proper library softlinks
 	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
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-11-17 23:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12  9:57 Patches to add support for TI Linux Graphics SDK release 04.04.00.02 Srinivas, Prathap
2011-10-12 10:06 ` Patches to add support for TI Linux Graphics SDK release04.04.00.02 Hauser, Wolfgang (external)
2011-10-12 10:45   ` Srinivas, Prathap
2011-10-12 11:46     ` Patches to add support for TI Linux GraphicsSDK release04.04.00.02 Hauser, Wolfgang (external)
2011-10-13 15:41     ` Hauser, Wolfgang (external)
2011-10-13 18:44       ` Srinivas, Prathap
2011-10-12 10:17 ` Patches to add support for TI Linux Graphics SDK release 04.04.00.02 Koen Kooi
2011-10-12 10:42   ` Srinivas, Prathap
2011-10-12 10:57     ` Koen Kooi
2011-11-17 10:43       ` Srinivas, Prathap
2011-11-17 14:56         ` Koen Kooi
2011-11-17 16:00           ` Srinivas, Prathap
2011-11-17 23:09             ` Koen Kooi
     [not found]           ` <C2C4AB609E1BCF4689C1782E8F42E30A027AF8@DBDE01.ent.ti.com>
2011-11-17 16:09             ` Patches to add support for TI Linux Graphics SDK release 04.04.00.02 : Patch1-kernel.bbclass update Srinivas, Prathap
2011-11-17 16:12             ` Patches to add support for TI Linux Graphics SDK release 04.04.00.02 : Patch2-Graphics SDK release 04.04.00.02 build support Srinivas, Prathap
2011-11-17 16:16             ` Patches to add support for TI Linux Graphics SDK release 04.04.00.02 : Patch3-Fix for library linking issue with Graphics SDK Release 04.04.00.02 Srinivas, Prathap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox