1 require libgles-omap3.inc
3 LICENSE = "TSPA"
5 DEFAULT_PREFERENCE = "-1"
7 BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
8 BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
9 BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
10 BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
12 PLATFORM = "LinuxARMV7"
13 PVR_INIT = "pvrsrvctl"
15 # download required binary distribution from:
16 # http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
17 # see libgles-omap3.inc for detailed installation instructions
19 SGXPV = "4_08_00_01"
20 IMGPV = "1.9.2139099"
21 BINFILE = "Graphics_SDK_setuplinux_${SGXPV}.bin"
22 TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
23 SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
24 file://cputype \
25 file://rc.pvr \
26 file://rc_dri.pvr \
27 file://sample.desktop \
28 file://99-bufferclass.rules \
29 "
31 SRC_URI[md5sum] = "dd0d994a48ecc4293f272a1fddddf159"
32 SRC_URI[sha256sum] = "fd721288c95314e0d676dd89462e1dec994e185cb608bcb8ac4a4b5809f9693a"
34 S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
36 LIBGLESWINDOWSYSTEM ?= "${@base_contains('DISTRO_FEATURES', 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
38 do_configure_append() {
40 # Change PVR server's user mode library to point to DRI
41 for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
42 if [ "$drifile" != "" ]
43 then
44 dir=$(dirname ${drifile})
45 if [ "$SUPPORT_XORG" = "1" ]
46 then
47 mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
48 else
49 rm -rf ${dir}/libsrv_um_dri.so
50 fi
51 fi
53 done
54 }
56 do_install_append() {
58 # In this version of the graphics SDK the following directories do not exist:
59 # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h (doesn't exist)
60 # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltypes.h (doesn't exist)
61 # Therefore, need to copy these files manually at the only location that they do exist
62 cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
63 cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
65 rm ${D}${sysconfdir}/init.d/pvr-init
67 if [ "$SUPPORT_XORG" = "1" ]; then
68 cp -pP ${WORKDIR}/rc_dri.pvr ${D}${sysconfdir}/init.d/pvr-init
69 else
70 cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
71 fi
73 }
75 RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
76 RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"