diff options
| author | Franklin S. Cooper Jr <fcooper@ti.com> | 2012-11-16 13:19:41 -0600 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2012-11-16 22:54:12 -0500 |
| commit | 8ebfd2afe9cacc8178585f300032855834dd3a0e (patch) | |
| tree | 52a93db13338195bd34dc1ad292d3429647d17b4 /recipes-graphics/libgles/libgles-omap3.inc | |
| parent | 41691840eab371dc3fe7e18dca4c399e8a703bca (diff) | |
| download | meta-ti-8ebfd2afe9cacc8178585f300032855834dd3a0e.tar.gz | |
libgles-omap3: Adjust for non X11 distros
* Non X11 base distros are unable to build this Graphics SDK.
* This patch tweaks the libgles-omap3 include file to always build the
Graphics SDK in Raw mode and also build in X11 mode only if X11 is
a part of the DISTRO_FEATURE. Components are built, installed and packaged
based on which mode the Graphics SDK is built in.
* Create a new variable PVR_INIT that is by default set to pvrsrvinit. This is
needed for newer version of the Graphics SDK that replaced this file.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-graphics/libgles/libgles-omap3.inc')
| -rw-r--r-- | recipes-graphics/libgles/libgles-omap3.inc | 139 |
1 files changed, 89 insertions, 50 deletions
diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc index b7f563f6..64667e4a 100644 --- a/recipes-graphics/libgles/libgles-omap3.inc +++ b/recipes-graphics/libgles/libgles-omap3.inc | |||
| @@ -3,11 +3,15 @@ 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 |
| 4 | LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1" | 4 | LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1" |
| 5 | 5 | ||
| 6 | PR = "r33" | 6 | PR = "r34" |
| 7 | 7 | ||
| 8 | COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)" | 8 | COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)" |
| 9 | 9 | ||
| 10 | DEPENDS = "virtual/libx11 libxau libxdmcp libdrm" | 10 | X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm" |
| 11 | DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}" | ||
| 12 | |||
| 13 | export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}" | ||
| 14 | PVR_INIT ?= "pvrsrvinit" | ||
| 11 | 15 | ||
| 12 | PROVIDES += "virtual/egl" | 16 | PROVIDES += "virtual/egl" |
| 13 | 17 | ||
| @@ -31,11 +35,13 @@ export ES5LOCATION ?= "${S}/gfx_rel_es5.x" | |||
| 31 | export ES6LOCATION ?= "${S}/gfx_rel_es6.x" | 35 | export ES6LOCATION ?= "${S}/gfx_rel_es6.x" |
| 32 | export ES8LOCATION ?= "${S}/gfx_rel_es8.x" | 36 | export ES8LOCATION ?= "${S}/gfx_rel_es8.x" |
| 33 | 37 | ||
| 38 | LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1" | ||
| 39 | |||
| 34 | do_configure() { | 40 | do_configure() { |
| 35 | # Attempt to fix up the worst offenders for file permissions | 41 | # Attempt to fix up the worst offenders for file permissions |
| 36 | for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do | 42 | for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do |
| 37 | chmod 0644 $i | 43 | chmod 0644 $i |
| 38 | done | 44 | done |
| 39 | 45 | ||
| 40 | # Attempt to create proper library softlinks | 46 | # Attempt to create proper library softlinks |
| 41 | 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 | 47 | 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 |
| @@ -64,47 +70,67 @@ PARALLEL_MAKE = "" | |||
| 64 | PLATFORM ?= "LinuxOMAP3" | 70 | PLATFORM ?= "LinuxOMAP3" |
| 65 | 71 | ||
| 66 | do_compile() { | 72 | do_compile() { |
| 67 | export X11ROOT="${STAGING_DIR_HOST}/usr" | ||
| 68 | export TOOLCHAIN="${TOOLCHAIN_PATH}" | 73 | export TOOLCHAIN="${TOOLCHAIN_PATH}" |
| 69 | |||
| 70 | export PLAT_CC="${CC}" | 74 | export PLAT_CC="${CC}" |
| 71 | export PLAT_CPP="${CXX}" | 75 | export PLAT_CPP="${CXX}" |
| 72 | export PLAR_AR="${AR}" | 76 | export PLAR_AR="${AR}" |
| 73 | 77 | ||
| 78 | if [ ${SUPPORT_XORG} -eq 1 ] ; then | ||
| 79 | export X11ROOT="${STAGING_DIR_HOST}/usr" | ||
| 80 | mkdir -p ${S}/demos/x11 | ||
| 81 | mkdir -p ${S}/trainingcourses/x11 | ||
| 82 | fi | ||
| 83 | |||
| 74 | mkdir -p ${S}/demos/raw | 84 | mkdir -p ${S}/demos/raw |
| 75 | mkdir -p ${S}/demos/x11 | 85 | mkdir -p ${S}/trainingcourses/raw |
| 76 | 86 | ||
| 77 | # Rebuild demos for both Raw and X11 | 87 | # Rebuild demos |
| 78 | for X11BUILD in 0 1 ; do | 88 | for X11BUILD in 0 1 ; do |
| 89 | # Don't rebuild demos with X11 support for a non X11 distro | ||
| 90 | if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ; then | ||
| 91 | continue | ||
| 92 | fi | ||
| 93 | |||
| 79 | for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do | 94 | for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do |
| 80 | cd $demo/OGLES/Build/LinuxGeneric | 95 | cd $demo/OGLES/Build/LinuxGeneric |
| 81 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD | 96 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
| 82 | rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o | 97 | rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o |
| 83 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true | 98 | |
| 84 | sed -e s:NAME:$(basename $demo): \ | 99 | if [ $X11BUILD -eq 1 ] ; then |
| 85 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \ | 100 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true |
| 86 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | 101 | sed -e s:NAME:$(basename $demo): \ |
| 87 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | 102 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \ |
| 103 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | ||
| 104 | else | ||
| 105 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | ||
| 106 | fi | ||
| 88 | done | 107 | done |
| 108 | |||
| 89 | for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do | 109 | for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do |
| 90 | cd $demo/OGLES2/Build/LinuxGeneric | 110 | cd $demo/OGLES2/Build/LinuxGeneric |
| 91 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD | 111 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
| 92 | rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o | 112 | rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o |
| 93 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true | 113 | |
| 94 | sed -e s:NAME:$(basename $demo): \ | 114 | if [ $X11BUILD -eq 1 ] ; then |
| 95 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \ | 115 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true |
| 96 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | 116 | sed -e s:NAME:$(basename $demo): \ |
| 97 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | 117 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \ |
| 118 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | ||
| 119 | else | ||
| 120 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | ||
| 121 | fi | ||
| 98 | done | 122 | done |
| 99 | done | 123 | done |
| 100 | 124 | ||
| 101 | mkdir -p ${S}/trainingcourses/raw | ||
| 102 | mkdir -p ${S}/trainingcourses/x11 | ||
| 103 | |||
| 104 | find ${S} -name "*_org" -delete | 125 | find ${S} -name "*_org" -delete |
| 105 | 126 | ||
| 106 | # Build OGLES2 Trainingcourses for both Raw and X11 | 127 | # Build OGLES2 Trainingcourses |
| 107 | for X11BUILD in 0 1 ; do | 128 | for X11BUILD in 0 1 ; do |
| 129 | # Don't rebuild training courses with X11 support for a non X11 distro | ||
| 130 | if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ; then | ||
| 131 | continue | ||
| 132 | fi | ||
| 133 | |||
| 108 | for training in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do | 134 | for training in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do |
| 109 | if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then | 135 | if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then |
| 110 | cd $training/OGLES2/Build/LinuxGeneric | 136 | cd $training/OGLES2/Build/LinuxGeneric |
| @@ -112,12 +138,16 @@ do_compile() { | |||
| 112 | 138 | ||
| 113 | if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then | 139 | if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then |
| 114 | cd $training/OGLES2/Build/${PLATFORM} | 140 | cd $training/OGLES2/Build/${PLATFORM} |
| 115 | fi | 141 | fi |
| 116 | 142 | ||
| 117 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD | 143 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
| 118 | rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o | 144 | rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o |
| 119 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/trainingcourses/x11 || true | 145 | |
| 120 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true | 146 | if [ $X11BUILD -eq 1 ] ; then |
| 147 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/trainingcourses/x11 || true | ||
| 148 | else | ||
| 149 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true | ||
| 150 | fi | ||
| 121 | done | 151 | done |
| 122 | done | 152 | done |
| 123 | 153 | ||
| @@ -133,12 +163,13 @@ do_install () { | |||
| 133 | 163 | ||
| 134 | install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/ | 164 | install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/ |
| 135 | install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/ | 165 | install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/ |
| 136 | install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/ | 166 | install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/ |
| 137 | 167 | ||
| 138 | install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ | 168 | if [ ${SUPPORT_XORG} -eq 1 ] ; then |
| 139 | 169 | install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ | |
| 140 | install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true | 170 | install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true |
| 141 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/lib/*X11WS* ${D}${libdir} || true | 171 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/lib/*X11WS* ${D}${libdir} || true |
| 172 | fi | ||
| 142 | 173 | ||
| 143 | install -d ${D}${includedir} | 174 | install -d ${D}${includedir} |
| 144 | cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/ | 175 | cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/ |
| @@ -158,7 +189,7 @@ do_install () { | |||
| 158 | 189 | ||
| 159 | install -d ${D}${sysconfdir} | 190 | install -d ${D}${sysconfdir} |
| 160 | echo "[default]" > ${D}${sysconfdir}/powervr.ini | 191 | echo "[default]" > ${D}${sysconfdir}/powervr.ini |
| 161 | echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so.1" >> ${D}${sysconfdir}/powervr.ini | 192 | echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini |
| 162 | 193 | ||
| 163 | # The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace | 194 | # The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace |
| 164 | 195 | ||
| @@ -174,11 +205,15 @@ do_install () { | |||
| 174 | install -d ${D}${bindir}/ES3.0 | 205 | install -d ${D}${bindir}/ES3.0 |
| 175 | install -d ${D}${bindir}/ES2.0 | 206 | install -d ${D}${bindir}/ES2.0 |
| 176 | 207 | ||
| 208 | shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test" | ||
| 209 | raw_prog="gles1test1 gles2test1 ovg_unit_test" | ||
| 210 | x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest xovg_unit_test" | ||
| 211 | |||
| 177 | for esrev in 2 3 5 6 8 ; do | 212 | for esrev in 2 3 5 6 8 ; do |
| 178 | ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\})) | 213 | ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\})) |
| 179 | if [ -e ${ESLOCATION} ] ; then | 214 | if [ -e ${ESLOCATION} ] ; then |
| 180 | cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/ | 215 | cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/ |
| 181 | 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 | 216 | for esprog in $shared_prog $raw_prog ${@base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ; do |
| 182 | install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ || true | 217 | install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ || true |
| 183 | done | 218 | done |
| 184 | fi | 219 | fi |
| @@ -190,16 +225,19 @@ do_install () { | |||
| 190 | cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications | 225 | cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications |
| 191 | rm ${D}${prefix}/share/applications/sample.desktop | 226 | rm ${D}${prefix}/share/applications/sample.desktop |
| 192 | 227 | ||
| 193 | install -d ${D}${bindir}/SGX/demos/X11/ | 228 | if [ ${SUPPORT_XORG} -eq 1 ] ; then |
| 229 | install -d ${D}${bindir}/SGX/demos/X11/ | ||
| 230 | install -m 0755 ${S}/demos/x11/* ${D}${bindir}/SGX/demos/X11/ | ||
| 231 | install -d ${D}${bindir}/SGX/trainingcourses/X11 | ||
| 232 | install -m 0755 ${S}/trainingcourses/x11/* ${D}${bindir}/SGX/trainingcourses/X11/ | ||
| 233 | fi | ||
| 234 | |||
| 194 | install -d ${D}${bindir}/SGX/demos/Raw/ | 235 | install -d ${D}${bindir}/SGX/demos/Raw/ |
| 195 | install -m 0755 ${S}/demos/x11/* ${D}${bindir}/SGX/demos/X11/ | ||
| 196 | install -m 0755 ${S}/demos/raw/* ${D}${bindir}/SGX/demos/Raw/ | 236 | install -m 0755 ${S}/demos/raw/* ${D}${bindir}/SGX/demos/Raw/ |
| 197 | |||
| 198 | install -d ${D}${bindir}/SGX/trainingcourses/Raw | 237 | install -d ${D}${bindir}/SGX/trainingcourses/Raw |
| 199 | install -d ${D}${bindir}/SGX/trainingcourses/X11 | ||
| 200 | install -m 0755 ${S}/trainingcourses/x11/* ${D}${bindir}/SGX/trainingcourses/X11/ | ||
| 201 | install -m 0755 ${S}/trainingcourses/raw/* ${D}${bindir}/SGX/trainingcourses/Raw/ | 238 | install -m 0755 ${S}/trainingcourses/raw/* ${D}${bindir}/SGX/trainingcourses/Raw/ |
| 202 | 239 | ||
| 240 | |||
| 203 | # Delete objects and linker scripts hidden between the headers | 241 | # Delete objects and linker scripts hidden between the headers |
| 204 | find ${D} -name "*.o" -delete | 242 | find ${D} -name "*.o" -delete |
| 205 | find ${D} -name "*.o.cmd" -delete | 243 | find ${D} -name "*.o.cmd" -delete |
| @@ -209,15 +247,8 @@ do_install () { | |||
| 209 | 247 | ||
| 210 | } | 248 | } |
| 211 | 249 | ||
| 212 | PACKAGES =+ "${PN}-rawdemos \ | 250 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'x11',"${PN}-x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx" ,"", d)} \ |
| 213 | ${PN}-x11demos \ | 251 | ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-tests" |
| 214 | ${PN}-rawtrainingcourses \ | ||
| 215 | ${PN}-x11trainingcourses \ | ||
| 216 | " | ||
| 217 | |||
| 218 | PACKAGES += "xserver-kdrive-powervrsgx \ | ||
| 219 | ${PN}-tests " | ||
| 220 | |||
| 221 | # Package the base libraries per silicon revision | 252 | # Package the base libraries per silicon revision |
| 222 | PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" | 253 | PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" |
| 223 | RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" | 254 | RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" |
| @@ -234,7 +265,9 @@ PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so li | |||
| 234 | PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so" | 265 | PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so" |
| 235 | PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so" | 266 | PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so" |
| 236 | 267 | ||
| 237 | PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl ${PN}-x11wsegl ${PN}-driwsegl" | 268 | |
| 269 | PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl" | ||
| 270 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'x11',"${PN}-x11wsegl ${PN}-driwsegl" ,"", d)}" | ||
| 238 | FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*" | 271 | FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*" |
| 239 | FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*" | 272 | FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*" |
| 240 | FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*" | 273 | FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*" |
| @@ -242,7 +275,10 @@ FILES_${PN}-linuxfbwsegl = "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*" | |||
| 242 | FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so* ${bindir}/x* ${bindir}/*x" | 275 | FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so* ${bindir}/x* ${bindir}/*x" |
| 243 | FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so* ${libdir}/libsrv_um_dri*" | 276 | FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so* ${libdir}/libsrv_um_dri*" |
| 244 | 277 | ||
| 245 | PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8 ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-driwsegl-es8" | 278 | PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8" |
| 279 | |||
| 280 | X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-driwsegl-es8 " | ||
| 281 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'x11',"${X11_SEGL}" ,"", d)}" | ||
| 246 | FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*" | 282 | FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*" |
| 247 | FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*" | 283 | FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*" |
| 248 | FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*" | 284 | FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*" |
| @@ -287,7 +323,7 @@ RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driws | |||
| 287 | 323 | ||
| 288 | CONFFILES_${PN} = "${sysconfdir}/powervr.ini" | 324 | CONFFILES_${PN} = "${sysconfdir}/powervr.ini" |
| 289 | 325 | ||
| 290 | FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*" | 326 | FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/${PVR_INIT} ${bindir}/cputype ${bindir}/*" |
| 291 | 327 | ||
| 292 | FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx" | 328 | FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx" |
| 293 | FILES_${PN}-tests = "${bindir}/*test*" | 329 | FILES_${PN}-tests = "${bindir}/*test*" |
| @@ -335,8 +371,11 @@ INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." | |||
| 335 | pkg_postinst_${PN}_append() { | 371 | pkg_postinst_${PN}_append() { |
| 336 | rm -f $D${sysconfdir}/powervr-esrev | 372 | rm -f $D${sysconfdir}/powervr-esrev |
| 337 | 373 | ||
| 338 | ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 | 374 | if [ ${SUPPORT_XORG} -eq 1 ] ; then |
| 339 | ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 | 375 | ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 |
| 376 | ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 | ||
| 377 | fi | ||
| 378 | |||
| 340 | } | 379 | } |
| 341 | 380 | ||
| 342 | pkg_postinst_${PN}-blitwsegl() { | 381 | pkg_postinst_${PN}-blitwsegl() { |
