summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-05-02 14:33:23 +0200
committerDenys Dmytriyenko <denys@ti.com>2012-05-03 00:03:04 -0400
commit6cff7f12d22523b44803b5e191dc18e4d9c93784 (patch)
treeefe12aa835801f2bf39d8199f0568d1ee702b28a /recipes-graphics
parent3c693c26087aa148b944166083b5336f05d1c15b (diff)
downloadmeta-ti-6cff7f12d22523b44803b5e191dc18e4d9c93784.tar.gz
libgles-omap3: copy over all binaries and abstract install process
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/libgles/libgles-omap3.inc51
1 files changed, 18 insertions, 33 deletions
diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index 93cb0911..6820aeaf 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
@@ -3,7 +3,7 @@ LICENSE = "proprietary-binary"
3# 'TSPA.txt' might not be the best file to md5sum 3# 'TSPA.txt' might not be the best file to md5sum
4LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1" 4LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1"
5 5
6PR = "r27" 6PR = "r28"
7 7
8COMPATIBLE_MACHINE = "(omap3|ti816x|ti33x)" 8COMPATIBLE_MACHINE = "(omap3|ti816x|ti33x)"
9 9
@@ -24,12 +24,12 @@ S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
24TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" 24TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
25require ../../recipes-ti/includes/ti-eula-unpack.inc 25require ../../recipes-ti/includes/ti-eula-unpack.inc
26 26
27BINLOCATION ?= "${S}/gfx_rel" 27export BINLOCATION ?= "${S}/gfx_rel"
28ES2LOCATION ?= "${S}/gfx_rel_es2.x" 28export ES2LOCATION ?= "${S}/gfx_rel_es2.x"
29ES3LOCATION ?= "${S}/gfx_rel_es3.x" 29export ES3LOCATION ?= "${S}/gfx_rel_es3.x"
30ES5LOCATION ?= "${S}/gfx_rel_es5.x" 30export ES5LOCATION ?= "${S}/gfx_rel_es5.x"
31ES6LOCATION ?= "${S}/gfx_rel_es6.x" 31export ES6LOCATION ?= "${S}/gfx_rel_es6.x"
32ES8LOCATION ?= "${S}/gfx_rel_es8.x" 32export ES8LOCATION ?= "${S}/gfx_rel_es8.x"
33 33
34do_configure() { 34do_configure() {
35 # Attempt to fix up the worst offenders for file permissions 35 # Attempt to fix up the worst offenders for file permissions
@@ -132,7 +132,8 @@ do_install () {
132 132
133 install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/ 133 install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/
134 install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/ 134 install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
135 install -m 0755 ${BINLOCATION}/p[dv]* ${D}${bindir}/ 135 install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/
136
136 install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ 137 install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/
137 138
138 install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true 139 install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true
@@ -172,31 +173,15 @@ do_install () {
172 install -d ${D}${bindir}/ES3.0 173 install -d ${D}${bindir}/ES3.0
173 install -d ${D}${bindir}/ES2.0 174 install -d ${D}${bindir}/ES2.0
174 175
175 176 for esrev in 2 3 5 6 8 ; do
176 if [ -e ${ES2LOCATION} ] ; then 177 ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\}))
177 cp -pPR ${ES2LOCATION}/lib*${IMGPV} ${D}${libdir}/ES2.0/ 178 if [ -e ${ESLOCATION} ] ; then
178 cp ${ES2LOCATION}/p[dv]* ${D}${bindir}/ES2.0/ 179 cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
179 fi 180 for esprog in eglinfo eglinfo_x gles1test1 gles2test1 ovg_unit_test pvr2d_test pvrsrvinit services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test xgles1test1 xgles2test1 xmultiegltest xovg_unit_test ; do
180 181 install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ || true
181 if [ -e ${ES3LOCATION} ] ; then 182 done
182 cp -pPR ${ES3LOCATION}/lib*${IMGPV} ${D}${libdir}/ES3.0/ 183 fi
183 cp ${ES3LOCATION}/p[dv]* ${D}${bindir}/ES3.0 184 done
184 fi
185
186 if [ -e ${ES5LOCATION} ] ; then
187 cp -pPR ${ES5LOCATION}/lib*${IMGPV} ${D}${libdir}/ES5.0/
188 cp ${ES5LOCATION}/p[dv]* ${D}${bindir}/ES5.0/
189 fi
190
191 if [ -e ${ES6LOCATION} ] ; then
192 cp -pPR ${ES6LOCATION}/lib*${IMGPV} ${D}${libdir}/ES6.0/
193 cp ${ES6LOCATION}/p[dv]* ${D}${bindir}/ES6.0/
194 fi
195
196 if [ -e ${ES8LOCATION} ] ; then
197 cp -pPR ${ES8LOCATION}/lib*${IMGPV} ${D}${libdir}/ES8.0/
198 cp ${ES8LOCATION}/p[dv]* ${D}${bindir}/ES8.0/
199 fi
200 185
201 rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm ${D}${bindir}/pdsasm -f || true 186 rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm ${D}${bindir}/pdsasm -f || true
202 187