libgles-omap3: Pull in changes from arago to meta-ti
PATCH v2 1/1 libgles-omap3: Pull in changes from arago to meta-ti
* Package additional include files from pvr2d and OGLES/GLES. This is required when trying to build qt4-embedded-gles (currently being developed)
* Modify rc.pvr to check the return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend. (Taken from arago)
* Other minor tweaks.
--- recipes-graphics/libgles/libgles-omap3.inc | 30 +++++++++++++----------- recipes-graphics/libgles/libgles-omap3/rc.pvr | 7 +++++ 2 files changed, 23 insertions(+), 14 deletions(-)
recipes-graphics/libgles/libgles-omap3.inc +16 -14
@@ -3,7 +3,7 @@ LICENSE = "proprietary-binary" # 'TSPA.txt' might not be the best file to md5sum LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1" -PR = "r32" +PR = "r33" COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
@@ -15,10 +15,10 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gf file://cputype \ file://rc.pvr \ file://sample.desktop \ - file://99-bufferclass.rules \ + file://99-bufferclass.rules \ " -S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}" +S ?= "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}" # Logic to unpack installjammer file TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
@@ -31,11 +31,13 @@ export ES5LOCATION ?= "${S}/gfx_rel_es5.x" export ES6LOCATION ?= "${S}/gfx_rel_es6.x" export ES8LOCATION ?= "${S}/gfx_rel_es8.x" +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1" + do_configure() { # Attempt to fix up the worst offenders for file permissions for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do chmod 0644 $i - done + 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
@@ -112,7 +114,7 @@ do_compile() { if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then cd $training/OGLES2/Build/${PLATFORM} - fi + fi oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
@@ -120,7 +122,6 @@ do_compile() { install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true done done - } do_install () {
@@ -133,8 +134,7 @@ do_install () { install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/ install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/ - install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/ - + install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/ install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true
@@ -152,23 +152,25 @@ do_install () { cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ || true cp -pPr ${S}/include/*.h ${D}${includedir} || true cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true - + cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true + cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || true + install -d ${D}${sysconfdir}/init.d/ cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init install -d ${D}${sysconfdir} echo "[default]" > ${D}${sysconfdir}/powervr.ini - echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so.1" >> ${D}${sysconfdir}/powervr.ini + echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini # The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace - install -d ${D}${libdir}/ES8.0 + install -d ${D}${libdir}/ES8.0 install -d ${D}${libdir}/ES6.0 install -d ${D}${libdir}/ES5.0 install -d ${D}${libdir}/ES3.0 install -d ${D}${libdir}/ES2.0 - install -d ${D}${bindir}/ES8.0 + install -d ${D}${bindir}/ES8.0 install -d ${D}${bindir}/ES6.0 install -d ${D}${bindir}/ES5.0 install -d ${D}${bindir}/ES3.0
@@ -287,7 +289,7 @@ RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driws CONFFILES_${PN} = "${sysconfdir}/powervr.ini" -FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*" +FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*" FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx" FILES_${PN}-tests = "${bindir}/*test*"
@@ -335,7 +337,7 @@ INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." pkg_postinst_${PN}_append() { rm -f $D${sysconfdir}/powervr-esrev -ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 +ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 }
recipes-graphics/libgles/libgles-omap3/rc.pvr +7 -0
@@ -42,6 +42,13 @@ 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
Signature · 1 line
1.7.0.4
Op 3 sep. 2012, om 11:39 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:
recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 156
Quoted 4 lines
recipes-graphics/libgles/libgles-omap3.inc +2
-1- + cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true + cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || true
IIRC this is going to generate some file conflicts and in OE-classic we pointed qt to the proper place for the includes. Has something changed since then?
Are you referring to this commit http://cgit.openembedded.org/openembedded/commit/recipes/qt4?id=f63289cfa7e1d96cc7f5ab845e5764f0b853a022 ?
The point of that commit was to insure that the headers from the Graphics SDK is being used and not a Qt version. This patch is just making sure that the SXG version of the include files are available.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Monday, September 03, 2012 4:54 AM
To: [email protected]
Subject: Re: [meta-ti] [PATCH v2] libgles-omap3: Pull in changes from arago to meta-ti
Op 3 sep. 2012, om 11:39 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:
recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 156
Quoted 4 lines
recipes-graphics/libgles/libgles-omap3.inc +2
-1- + cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true + cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || true
IIRC this is going to generate some file conflicts and in OE-classic we pointed qt to the proper place for the includes. Has something changed since then?
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
You can ignore this patch for now while I investigate some more.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Monday, September 03, 2012 5:30 AM
To: Koen Kooi; [email protected]
Subject: Re: [meta-ti] [PATCH v2] libgles-omap3: Pull in changes from arago to meta-ti
Are you referring to this commit http://cgit.openembedded.org/openembedded/commit/recipes/qt4?id=f63289cfa7e1d96cc7f5ab845e5764f0b853a022 ?
The point of that commit was to insure that the headers from the Graphics SDK is being used and not a Qt version. This patch is just making sure that the SXG version of the include files are available.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Monday, September 03, 2012 4:54 AM
To: [email protected]
Subject: Re: [meta-ti] [PATCH v2] libgles-omap3: Pull in changes from arago to meta-ti
Op 3 sep. 2012, om 11:39 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:
recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 156
Quoted 4 lines
recipes-graphics/libgles/libgles-omap3.inc +2
-1- + cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true + cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || true
IIRC this is going to generate some file conflicts and in OE-classic we pointed qt to the proper place for the includes. Has something changed since then?
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Koen,
Quoted 4 lines
recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 156
Quoted 2 lines
recipes-graphics/libgles/libgles-omap3.inc +2
-0+ cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true + cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || trueIIRC this is going to generate some file conflicts and in OE-classic we pointed qt to the proper place for the includes. Has something changed since then?
Does the below answer your question?
http://arago-project.org/git/?p=arago.git;a=commit;h=02e8c5404184d258bcb8dadbdafb760bc1acb912
This is a result of change to the newer version of the graphics SDK.
Quoted 1 line
Quoted 1 line
+ cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || true
one of the files being installed here is wsegl.h. Qt can provide that file but shouldn't. This is what the below patch talks about
That patch does need to be submitted to oe-core. But since the qt embedded gles recipe should depend on the graphics SDK the wsegl.h should already exist which means Qt shouldn't be copying its own version.
Quoted 1 line
Quoted 1 line
+ cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true
Qt can also provide pvr2d.h but once again the one from the graphics SDK should be used instead.
From the graphics SDK point of view is there any other issues with those headers being installed?
Quoted 38 lines · Franklin
You can ignore this patch for now while I investigate some more.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Monday, September 03, 2012 5:30 AM
To: Koen Kooi; [email protected]
Subject: Re: [meta-ti] [PATCH v2] libgles-omap3: Pull in changes from arago to meta-tiAre you referring to this commit http://cgit.openembedded.org/openembedded/commit/recipes/qt4?id=f63289cfa7e1d96cc7f5ab845e5764f0b853a022 ?
The point of that commit was to insure that the headers from the Graphics SDK is being used and not a Qt version. This patch is just making sure that the SXG version of the include files are available.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Monday, September 03, 2012 4:54 AM
To: [email protected]
Subject: Re: [meta-ti] [PATCH v2] libgles-omap3: Pull in changes from arago to meta-tiOp 3 sep. 2012, om 11:39 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:
recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 156
Quoted 4 lines
recipes-graphics/libgles/libgles-omap3.inc +2
-1- + cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true + cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || trueIIRC this is going to generate some file conflicts and in OE-classic we pointed qt to the proper place for the includes. Has something changed since then?
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti