TI Graphics SDK
v6 cover TI Graphics SDK
These patches integrate the TI Graphics SDK.
v6:
- Fix whitespace errors
- Minor bug fixes
- Fix typo in qt patch
v5:
- Fixed build issues on hard float (and non-CS toolchains)
- added powervr virtual package
v4:
- Fix header issue with qt.
- Add eglimage version installation.
v3:
- integrate reviews from thomas.
- Add qt patch
v2:
- Take into account reviews.
- Simplfy init script.
- Fix header installation.
v1:
- Added .pc files
- all review issues addressed
RFC v3:
- all reviews addressed
- added demos
- added hard float (not runtime tested)
- added init script
- added SGX detection script (untested)
- tested on beaglexm using demos
RFC v2:
- basic working with minor issues during tests
RFC v1:
- inital revision
Spenser Gilliland (3):
powervr: add powervr virtual package
ti-gfx: add new package
qt: add powervr and opengl
package/Config.in | 2 + package/opengl/libegl/libegl.mk | 4 + package/opengl/libgles/libgles.mk | 4 + package/powervr/Config.in | 2 + package/powervr/powervr.mk | 20 + package/qt/Config.gfx.in | 5 + package/qt/Config.in | 8 + package/qt/powervr.ini | 2 + package/qt/qt-eglwsegl-use-system.patch | 802 +++++++++++++++++++++++++ package/qt/qt.mk | 29 +- package/ti-gfx/Config.in | 69 +++ package/ti-gfx/S80ti-gfx | 53 ++ package/ti-gfx/egl.pc | 11 + package/ti-gfx/esrev.sh | 59 ++ package/ti-gfx/glesv2.pc | 11 + package/ti-gfx/powervr.ini | 2 + package/ti-gfx/ti-gfx-km_install_modules.patch | 19 + package/ti-gfx/ti-gfx-newclkapi.patch | 143 +++++ package/ti-gfx/ti-gfx.mk | 197 ++++++ 19 files changed, 1441 insertions(+), 1 deletion(-) create mode 100644 package/powervr/Config.in create mode 100644 package/powervr/powervr.mk create mode 100644 package/qt/powervr.ini create mode 100644 package/qt/qt-eglwsegl-use-system.patch create mode 100644 package/ti-gfx/Config.in create mode 100644 package/ti-gfx/S80ti-gfx create mode 100644 package/ti-gfx/egl.pc create mode 100644 package/ti-gfx/esrev.sh create mode 100644 package/ti-gfx/glesv2.pc create mode 100644 package/ti-gfx/powervr.ini create mode 100644 package/ti-gfx/ti-gfx-km_install_modules.patch create mode 100644 package/ti-gfx/ti-gfx-newclkapi.patch create mode 100644 package/ti-gfx/ti-gfx.mk
Signature · 1 line
1.8.1.2
PATCH v6 1/3 powervr: add powervr virtual package
--- package/Config.in | 1 + package/powervr/Config.in | 2 ++ package/powervr/powervr.mk | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 package/powervr/Config.in create mode 100644 package/powervr/powervr.mk
package/Config.in +1 -0
@@ -472,6 +472,7 @@ source "package/opengl/Config.in" source "package/pango/Config.in" source "package/pixman/Config.in" source "package/poppler/Config.in" +source "package/powervr/Config.in" source "package/tiff/Config.in" source "package/wayland/Config.in" source "package/webkit/Config.in"
package/powervr/Config.in new file +2 -0
@@ -0,0 +1,2 @@ +config BR2_PACKAGE_HAS_POWERVR + bool
package/powervr/powervr.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# Virtual package for PowerVR driver +# +################################################################################ + +POWERVR_SOURCE = + +ifeq ($(BR2_PACKAGE_TI_GFX),y) +POWERVR_DEPENDENCIES += ti-gfx +endif + +ifeq ($(POWERVR_DEPENDENCIES),) +define POWERVR_CONFIGURE_CMDS + echo "No PowerVR implementation selected. Configuration error." + exit 1 +endef +endif + +$(eval $(generic-package))
Signature · 1 line
1.8.1.2
PATCH v6 2/3 ti-gfx: add new package
In reply to Spenser Gillilandadds accelerated GPU support for the OMAP35xx, AM35xx, AM37xx, DM37xx, AM387x, DM814x, AM389x, DM816x, and AM335x platforms.
--- package/Config.in | 1 + package/opengl/libegl/libegl.mk | 4 + package/opengl/libgles/libgles.mk | 4 + package/ti-gfx/Config.in | 69 +++++++++ package/ti-gfx/S80ti-gfx | 53 +++++++ package/ti-gfx/egl.pc | 11 ++ package/ti-gfx/esrev.sh | 59 ++++++++ package/ti-gfx/glesv2.pc | 11 ++ package/ti-gfx/powervr.ini | 2 + package/ti-gfx/ti-gfx-km_install_modules.patch | 19 +++ package/ti-gfx/ti-gfx-newclkapi.patch | 143 ++++++++++++++++++ package/ti-gfx/ti-gfx.mk | 197 +++++++++++++++++++++++++ 12 files changed, 573 insertions(+) create mode 100644 package/ti-gfx/Config.in create mode 100644 package/ti-gfx/S80ti-gfx create mode 100644 package/ti-gfx/egl.pc create mode 100644 package/ti-gfx/esrev.sh create mode 100644 package/ti-gfx/glesv2.pc create mode 100644 package/ti-gfx/powervr.ini create mode 100644 package/ti-gfx/ti-gfx-km_install_modules.patch create mode 100644 package/ti-gfx/ti-gfx-newclkapi.patch create mode 100644 package/ti-gfx/ti-gfx.mk
package/Config.in +1 -0
@@ -294,6 +294,7 @@ source "package/snowball-hdmiservice/Config.in" source "package/sredird/Config.in" source "package/statserial/Config.in" source "package/sysstat/Config.in" +source "package/ti-gfx/Config.in" source "package/ti-utils/Config.in" source "package/uboot-tools/Config.in" source "package/udev/Config.in"
package/opengl/libegl/libegl.mk +4 -0
@@ -10,6 +10,10 @@ ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) LIBEGL_DEPENDENCIES += rpi-userland endif +ifeq ($(BR2_PACKAGE_TI_GFX),y) +LIBEGL_DEPENDENCIES += ti-gfx +endif + ifeq ($(LIBEGL_DEPENDENCIES),) define LIBEGL_CONFIGURE_CMDS echo "No libEGL implementation selected. Configuration error."
package/opengl/libgles/libgles.mk +4 -0
@@ -10,6 +10,10 @@ ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) LIBGLES_DEPENDENCIES += rpi-userland endif +ifeq ($(BR2_PACKAGE_TI_GFX),y) +LIBGLES_DEPENDENCIES += ti-gfx +endif + ifeq ($(LIBGLES_DEPENDENCIES),) define LIBGLES_CONFIGURE_CMDS echo "No libGLES implementation selected. Configuration error."
package/ti-gfx/Config.in new file +69 -0
69 lines not on this page · raw message
package/ti-gfx/S80ti-gfx new file +53 -0
53 lines not on this page · raw message
package/ti-gfx/egl.pc new file +11 -0
@@ -0,0 +1,11 @@ +prefix=/usr/ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: TI Graphics SDK implementation of EGL +Version: 1.9.2188537 +Requires: +Libs: -L${libdir} -lEGL -lGLESv2 -lIMGegl +Cflags: -I{includedir}/EGL/ -I${includedir}
package/ti-gfx/esrev.sh new file +59 -0
59 lines not on this page · raw message
package/ti-gfx/glesv2.pc new file +11 -0
@@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv2 +Description: TI Graphics SDK implementation of OpenGL ESv2 +Version: 1.9.2188537 +Requires: +Libs: -L${libdir} -lGLESv2 -lGLES_CM -lsrv_um -lusc -lEGL -lIMGegl +Cflags: -I${includedir}/GLES2
package/ti-gfx/powervr.ini new file +2 -0
@@ -0,0 +1,2 @@ +[default] +WindowSystem=libpvrPVR2D_FRONTWSEGL.so
package/ti-gfx/ti-gfx-km_install_modules.patch new file +19 -0
@@ -0,0 +1,19 @@ +Patch to add modules_install target to the modules makefile. This makes +installation a little easier. + +Signed-off-by: Spenser Gilliland <[email protected]> +---- +Index: ti-gfx-4_09_00_01/GFX_Linux_KM/Makefile +=================================================================== +--- ti-gfx-4_09_00_01.orig/GFX_Linux_KM/Makefile 2013-03-07 11:00:11.000000000 -0600 ++++ ti-gfx-4_09_00_01/GFX_Linux_KM/Makefile 2013-05-23 01:36:29.356676281 -0500 +@@ -479,6 +479,9 @@ + all: + $(MAKE) -C $(KERNELDIR) M=`pwd` $* + ++install: ++ $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install ++ + clean: + @find . -name "*.o" -exec rm -r {} \; + @find . -name "*.ko" -exec rm -r {} \;
package/ti-gfx/ti-gfx-newclkapi.patch new file +143 -0
143 lines not on this page · raw message
package/ti-gfx/ti-gfx.mk new file +197 -0
197 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH v6 2/3 ti-gfx: add new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Spenser" == Spenser Gilliland <[email protected]> writes:
Spenser> adds accelerated GPU support for the OMAP35xx, AM35xx, AM37xx, DM37xx, Spenser> AM387x, DM814x, AM389x, DM816x, and AM335x platforms.
..
Spenser> + $(call TI_GFX_INSTALL_LIBS,$(STAGING_DIR))
Spenser> +
Spenser> + $(INSTALL) -D -m 0644 package/ti-gfx/egl.pc $(STAGING_DIR)/usr/lib/pkgconfig/
Spenser> + $(INSTALL) -D -m 0644 package/ti-gfx/glesv2.pc $(STAGING_DIR)/usr/lib/pkgconfig/
Whenever you use install -D you alway have to prove the destination file name, not just the directory.
Committed series with that fixed, thanks!
Signature · 1 line
Bye, Peter Korsgaard
PATCH v6 3/3 qt: add powervr and opengl
In reply to Spenser GillilandUse the following to test:/usr/share/qt/examples/opengl/hellogl_es2/hellogl_es2 -qws -display powervr
--- package/qt/Config.gfx.in | 5 + package/qt/Config.in | 8 + package/qt/powervr.ini | 2 + package/qt/qt-eglwsegl-use-system.patch | 802 ++++++++++++++++++++++++++++++++ package/qt/qt.mk | 29 +- 5 files changed, 845 insertions(+), 1 deletion(-) create mode 100644 package/qt/powervr.ini create mode 100644 package/qt/qt-eglwsegl-use-system.patch
package/qt/Config.gfx.in +5 -0
@@ -23,4 +23,9 @@ config BR2_PACKAGE_QT_GFX_DIRECTFB depends on BR2_PACKAGE_DIRECTFB bool "directFB" +config BR2_PACKAGE_QT_GFX_POWERVR + depends on BR2_PACKAGE_QT_OPENGL_ES + depends on BR2_PACKAGE_HAS_POWERVR + bool "powervr" + endmenu
package/qt/Config.in +8 -0
@@ -281,6 +281,14 @@ config BR2_PACKAGE_QT_PHONON_BACKEND help Build the platform Phonon plugin. If unsure, say n. + +config BR2_PACKAGE_QT_OPENGL_ES + bool "OpenGL ES v2.x support" + depends on BR2_PACKAGE_HAS_OPENGL_ES + depends on BR2_PACKAGE_HAS_OPENGL_EGL + help + Enable the OpenGL ES v2.x support. + endif config BR2_PACKAGE_QT_DBUS
package/qt/powervr.ini new file +2 -0
@@ -0,0 +1,2 @@ +[default] +WindowSystem=libpvrQWSWSEGL.so.1
package/qt/qt-eglwsegl-use-system.patch new file +802 -0
802 lines not on this page · raw message
package/qt/qt.mk +28 -1
@@ -136,7 +136,11 @@ QT_DEPENDENCIES += directfb else QT_CONFIGURE_OPTS += -no-gfx-directfb endif - +ifeq ($(BR2_PACKAGE_QT_GFX_POWERVR),y) +QT_CONFIGURE_OPTS += \ + -plugin-gfx-powervr -D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT +QT_DEPENDENCIES += powervr +endif ### Mouse drivers ifeq ($(BR2_PACKAGE_QT_MOUSE_PC),y)
@@ -313,6 +317,13 @@ else QT_CONFIGURE_OPTS += -no-openssl endif +ifeq ($(BR2_PACKAGE_QT_OPENGL_ES),y) +QT_CONFIGURE_OPTS += -opengl es2 -egl +QT_DEPENDENCIES += libgles libegl +else +QT_CONFIGURE_OPTS += -no-opengl +endif + # Qt SQL Drivers ifeq ($(BR2_PACKAGE_QT_SQL_MODULE),y) ifeq ($(BR2_PACKAGE_QT_IBASE),y)
@@ -564,6 +575,12 @@ endif ifeq ($(BR2_PACKAGE_QT_QT3SUPPORT),y) QT_INSTALL_LIBS += Qt3Support endif +ifeq ($(BR2_PACKAGE_QT_OPENGL_ES),y) +QT_INSTALL_LIBS += QtOpenGL +endif +ifeq ($(BR2_PACKAGE_QT_GFX_POWERVR),y) +QT_INSTALL_LIBS += pvrQWSWSEGL +endif QT_CONF_FILE=$(HOST_DIR)/usr/bin/qt.conf
@@ -640,12 +657,22 @@ define QT_INSTALL_TARGET_FONTS_TTF endef endif +ifeq ($(BR2_PACKAGE_QT_GFX_POWERVR),y) +define QT_INSTALL_TARGET_POWERVR + # Note: this overwrites the default powervr.ini provided by the ti-gfx + # package. + $(INSTALL) -D -m 0644 package/qt/powervr.ini \ + $(TARGET_DIR)/etc/powervr.ini +endef +endif + define QT_INSTALL_TARGET_CMDS $(QT_INSTALL_TARGET_LIBS) $(QT_INSTALL_TARGET_PLUGINS) $(QT_INSTALL_TARGET_IMPORTS) $(QT_INSTALL_TARGET_FONTS) $(QT_INSTALL_TARGET_FONTS_TTF) + $(QT_INSTALL_TARGET_POWERVR) endef define QT_CLEAN_CMDS
Signature · 1 line
1.8.1.2