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 15:02:39 -0500 |
| commit | 3c3a59dcc79cbcc2cd8730bc37b108e217e85860 (patch) | |
| tree | 07c3bfaa8b9ca2899db051e9db01790ddceb0e7b /recipes-graphics | |
| parent | 37e525ba2cbde38f6429bc0876140fc5bceb1301 (diff) | |
| download | meta-ti-3c3a59dcc79cbcc2cd8730bc37b108e217e85860.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')
| -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 db0d1cb1..599070d4 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 virtual/libgles1 virtual/libgles2" | 16 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2" |
| 13 | 17 | ||
| @@ -35,11 +39,13 @@ export ES5LOCATION ?= "${S}/gfx_rel_es5.x" | |||
| 35 | export ES6LOCATION ?= "${S}/gfx_rel_es6.x" | 39 | export ES6LOCATION ?= "${S}/gfx_rel_es6.x" |
| 36 | export ES8LOCATION ?= "${S}/gfx_rel_es8.x" | 40 | export ES8LOCATION ?= "${S}/gfx_rel_es8.x" |
| 37 | 41 | ||
| 42 | LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1" | ||
| 43 | |||
| 38 | do_configure() { | 44 | do_configure() { |
| 39 | # Attempt to fix up the worst offenders for file permissions | 45 | # Attempt to fix up the worst offenders for file permissions |
| 40 | for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do | 46 | for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do |
| 41 | chmod 0644 $i | 47 | chmod 0644 $i |
| 42 | done | 48 | done |
| 43 | 49 | ||
| 44 | # Attempt to create proper library softlinks | 50 | # Attempt to create proper library softlinks |
| 45 | 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 | 51 | 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 |
| @@ -68,47 +74,67 @@ PARALLEL_MAKE = "" | |||
| 68 | PLATFORM ?= "LinuxOMAP3" | 74 | PLATFORM ?= "LinuxOMAP3" |
| 69 | 75 | ||
| 70 | do_compile() { | 76 | do_compile() { |
| 71 | export X11ROOT="${STAGING_DIR_HOST}/usr" | ||
| 72 | export TOOLCHAIN="${TOOLCHAIN_PATH}" | 77 | export TOOLCHAIN="${TOOLCHAIN_PATH}" |
| 73 | |||
| 74 | export PLAT_CC="${CC}" | 78 | export PLAT_CC="${CC}" |
| 75 | export PLAT_CPP="${CXX}" | 79 | export PLAT_CPP="${CXX}" |
| 76 | export PLAR_AR="${AR}" | 80 | export PLAR_AR="${AR}" |
| 77 | 81 | ||
| 82 | if [ ${SUPPORT_XORG} -eq 1 ] ; then | ||
| 83 | export X11ROOT="${STAGING_DIR_HOST}/usr" | ||
| 84 | mkdir -p ${S}/demos/x11 | ||
| 85 | mkdir -p ${S}/trainingcourses/x11 | ||
| 86 | fi | ||
| 87 | |||
| 78 | mkdir -p ${S}/demos/raw | 88 | mkdir -p ${S}/demos/raw |
| 79 | mkdir -p ${S}/demos/x11 | 89 | mkdir -p ${S}/trainingcourses/raw |
| 80 | 90 | ||
| 81 | # Rebuild demos for both Raw and X11 | 91 | # Rebuild demos |
| 82 | for X11BUILD in 0 1 ; do | 92 | for X11BUILD in 0 1 ; do |
| 93 | # Don't rebuild demos with X11 support for a non X11 distro | ||
| 94 | if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ; then | ||
| 95 | continue | ||
| 96 | fi | ||
| 97 | |||
| 83 | for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do | 98 | for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do |
| 84 | cd $demo/OGLES/Build/LinuxGeneric | 99 | cd $demo/OGLES/Build/LinuxGeneric |
| 85 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD | 100 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
| 86 | rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o | 101 | rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o |
| 87 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true | 102 | |
| 88 | sed -e s:NAME:$(basename $demo): \ | 103 | if [ $X11BUILD -eq 1 ] ; then |
| 89 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \ | 104 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true |
| 90 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | 105 | sed -e s:NAME:$(basename $demo): \ |
| 91 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | 106 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \ |
| 107 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | ||
| 108 | else | ||
| 109 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | ||
| 110 | fi | ||
| 92 | done | 111 | done |
| 112 | |||
| 93 | for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do | 113 | for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do |
| 94 | cd $demo/OGLES2/Build/LinuxGeneric | 114 | cd $demo/OGLES2/Build/LinuxGeneric |
| 95 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD | 115 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
| 96 | rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o | 116 | rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o |
| 97 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true | 117 | |
| 98 | sed -e s:NAME:$(basename $demo): \ | 118 | if [ $X11BUILD -eq 1 ] ; then |
| 99 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \ | 119 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true |
| 100 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | 120 | sed -e s:NAME:$(basename $demo): \ |
| 101 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | 121 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \ |
| 122 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | ||
| 123 | else | ||
| 124 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true | ||
| 125 | fi | ||
| 102 | done | 126 | done |
| 103 | done | 127 | done |
| 104 | 128 | ||
| 105 | mkdir -p ${S}/trainingcourses/raw | ||
| 106 | mkdir -p ${S}/trainingcourses/x11 | ||
| 107 | |||
| 108 | find ${S} -name "*_org" -delete | 129 | find ${S} -name "*_org" -delete |
| 109 | 130 | ||
| 110 | # Build OGLES2 Trainingcourses for both Raw and X11 | 131 | # Build OGLES2 Trainingcourses |
| 111 | for X11BUILD in 0 1 ; do | 132 | for X11BUILD in 0 1 ; do |
| 133 | # Don't rebuild training courses with X11 support for a non X11 distro | ||
| 134 | if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ; then | ||
| 135 | continue | ||
| 136 | fi | ||
| 137 | |||
| 112 | for training in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do | 138 | for training in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do |
| 113 | if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then | 139 | if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then |
| 114 | cd $training/OGLES2/Build/LinuxGeneric | 140 | cd $training/OGLES2/Build/LinuxGeneric |
| @@ -116,12 +142,16 @@ do_compile() { | |||
| 116 | 142 | ||
| 117 | if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then | 143 | if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then |
| 118 | cd $training/OGLES2/Build/${PLATFORM} | 144 | cd $training/OGLES2/Build/${PLATFORM} |
| 119 | fi | 145 | fi |
| 120 | 146 | ||
| 121 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD | 147 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
| 122 | rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o | 148 | rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o |
| 123 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/trainingcourses/x11 || true | 149 | |
| 124 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true | 150 | if [ $X11BUILD -eq 1 ] ; then |
| 151 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/trainingcourses/x11 || true | ||
| 152 | else | ||
| 153 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true | ||
| 154 | fi | ||
| 125 | done | 155 | done |
| 126 | done | 156 | done |
| 127 | 157 | ||
| @@ -137,12 +167,13 @@ do_install () { | |||
| 137 | 167 | ||
| 138 | install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/ | 168 | install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/ |
| 139 | install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/ | 169 | install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/ |
| 140 | install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/ | 170 | install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/ |
| 141 | 171 | ||
| 142 | install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ | 172 | if [ ${SUPPORT_XORG} -eq 1 ] ; then |
| 143 | 173 | install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ | |
| 144 | install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true | 174 | install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true |
| 145 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/lib/*X11WS* ${D}${libdir} || true | 175 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/lib/*X11WS* ${D}${libdir} || true |
| 176 | fi | ||
| 146 | 177 | ||
| 147 | install -d ${D}${includedir} | 178 | install -d ${D}${includedir} |
| 148 | cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/ | 179 | cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/ |
| @@ -162,7 +193,7 @@ do_install () { | |||
| 162 | 193 | ||
| 163 | install -d ${D}${sysconfdir} | 194 | install -d ${D}${sysconfdir} |
| 164 | echo "[default]" > ${D}${sysconfdir}/powervr.ini | 195 | echo "[default]" > ${D}${sysconfdir}/powervr.ini |
| 165 | echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so.1" >> ${D}${sysconfdir}/powervr.ini | 196 | echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini |
| 166 | 197 | ||
| 167 | # The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace | 198 | # The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace |
| 168 | 199 | ||
| @@ -178,11 +209,15 @@ do_install () { | |||
| 178 | install -d ${D}${bindir}/ES3.0 | 209 | install -d ${D}${bindir}/ES3.0 |
| 179 | install -d ${D}${bindir}/ES2.0 | 210 | install -d ${D}${bindir}/ES2.0 |
| 180 | 211 | ||
| 212 | 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" | ||
| 213 | raw_prog="gles1test1 gles2test1 ovg_unit_test" | ||
| 214 | x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest xovg_unit_test" | ||
| 215 | |||
| 181 | for esrev in 2 3 5 6 8 ; do | 216 | for esrev in 2 3 5 6 8 ; do |
| 182 | ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\})) | 217 | ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\})) |
| 183 | if [ -e ${ESLOCATION} ] ; then | 218 | if [ -e ${ESLOCATION} ] ; then |
| 184 | cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/ | 219 | cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/ |
| 185 | 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 | 220 | for esprog in $shared_prog $raw_prog ${@base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ; do |
| 186 | install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ || true | 221 | install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ || true |
| 187 | done | 222 | done |
| 188 | fi | 223 | fi |
| @@ -194,16 +229,19 @@ do_install () { | |||
| 194 | cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications | 229 | cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications |
| 195 | rm ${D}${prefix}/share/applications/sample.desktop | 230 | rm ${D}${prefix}/share/applications/sample.desktop |
| 196 | 231 | ||
| 197 | install -d ${D}${bindir}/SGX/demos/X11/ | 232 | if [ ${SUPPORT_XORG} -eq 1 ] ; then |
| 233 | install -d ${D}${bindir}/SGX/demos/X11/ | ||
| 234 | install -m 0755 ${S}/demos/x11/* ${D}${bindir}/SGX/demos/X11/ | ||
| 235 | install -d ${D}${bindir}/SGX/trainingcourses/X11 | ||
| 236 | install -m 0755 ${S}/trainingcourses/x11/* ${D}${bindir}/SGX/trainingcourses/X11/ | ||
| 237 | fi | ||
| 238 | |||
| 198 | install -d ${D}${bindir}/SGX/demos/Raw/ | 239 | install -d ${D}${bindir}/SGX/demos/Raw/ |
| 199 | install -m 0755 ${S}/demos/x11/* ${D}${bindir}/SGX/demos/X11/ | ||
| 200 | install -m 0755 ${S}/demos/raw/* ${D}${bindir}/SGX/demos/Raw/ | 240 | install -m 0755 ${S}/demos/raw/* ${D}${bindir}/SGX/demos/Raw/ |
| 201 | |||
| 202 | install -d ${D}${bindir}/SGX/trainingcourses/Raw | 241 | install -d ${D}${bindir}/SGX/trainingcourses/Raw |
| 203 | install -d ${D}${bindir}/SGX/trainingcourses/X11 | ||
| 204 | install -m 0755 ${S}/trainingcourses/x11/* ${D}${bindir}/SGX/trainingcourses/X11/ | ||
| 205 | install -m 0755 ${S}/trainingcourses/raw/* ${D}${bindir}/SGX/trainingcourses/Raw/ | 242 | install -m 0755 ${S}/trainingcourses/raw/* ${D}${bindir}/SGX/trainingcourses/Raw/ |
| 206 | 243 | ||
| 244 | |||
| 207 | # Delete objects and linker scripts hidden between the headers | 245 | # Delete objects and linker scripts hidden between the headers |
| 208 | find ${D} -name "*.o" -delete | 246 | find ${D} -name "*.o" -delete |
| 209 | find ${D} -name "*.o.cmd" -delete | 247 | find ${D} -name "*.o.cmd" -delete |
| @@ -213,15 +251,8 @@ do_install () { | |||
| 213 | 251 | ||
| 214 | } | 252 | } |
| 215 | 253 | ||
| 216 | PACKAGES =+ "${PN}-rawdemos \ | 254 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'x11',"${PN}-x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx" ,"", d)} \ |
| 217 | ${PN}-x11demos \ | 255 | ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-tests" |
| 218 | ${PN}-rawtrainingcourses \ | ||
| 219 | ${PN}-x11trainingcourses \ | ||
| 220 | " | ||
| 221 | |||
| 222 | PACKAGES += "xserver-kdrive-powervrsgx \ | ||
| 223 | ${PN}-tests " | ||
| 224 | |||
| 225 | # Package the base libraries per silicon revision | 256 | # Package the base libraries per silicon revision |
| 226 | PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" | 257 | PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" |
| 227 | RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" | 258 | RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8" |
| @@ -238,7 +269,9 @@ PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so li | |||
| 238 | 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" | 269 | 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" |
| 239 | 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" | 270 | 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" |
| 240 | 271 | ||
| 241 | PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl ${PN}-x11wsegl ${PN}-driwsegl" | 272 | |
| 273 | PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl" | ||
| 274 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'x11',"${PN}-x11wsegl ${PN}-driwsegl" ,"", d)}" | ||
| 242 | FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*" | 275 | FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*" |
| 243 | FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*" | 276 | FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*" |
| 244 | FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*" | 277 | FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*" |
| @@ -246,7 +279,10 @@ FILES_${PN}-linuxfbwsegl = "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*" | |||
| 246 | FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so* ${bindir}/x* ${bindir}/*x" | 279 | FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so* ${bindir}/x* ${bindir}/*x" |
| 247 | FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so* ${libdir}/libsrv_um_dri*" | 280 | FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so* ${libdir}/libsrv_um_dri*" |
| 248 | 281 | ||
| 249 | 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" | 282 | 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" |
| 283 | |||
| 284 | 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 " | ||
| 285 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'x11',"${X11_SEGL}" ,"", d)}" | ||
| 250 | FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*" | 286 | FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*" |
| 251 | FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*" | 287 | FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*" |
| 252 | FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*" | 288 | FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*" |
| @@ -291,7 +327,7 @@ RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driws | |||
| 291 | 327 | ||
| 292 | CONFFILES_${PN} = "${sysconfdir}/powervr.ini" | 328 | CONFFILES_${PN} = "${sysconfdir}/powervr.ini" |
| 293 | 329 | ||
| 294 | FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*" | 330 | FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/${PVR_INIT} ${bindir}/cputype ${bindir}/*" |
| 295 | 331 | ||
| 296 | FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx" | 332 | FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx" |
| 297 | FILES_${PN}-tests = "${bindir}/*test*" | 333 | FILES_${PN}-tests = "${bindir}/*test*" |
| @@ -339,8 +375,11 @@ INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." | |||
| 339 | pkg_postinst_${PN}_append() { | 375 | pkg_postinst_${PN}_append() { |
| 340 | rm -f $D${sysconfdir}/powervr-esrev | 376 | rm -f $D${sysconfdir}/powervr-esrev |
| 341 | 377 | ||
| 342 | ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 | 378 | if [ ${SUPPORT_XORG} -eq 1 ] ; then |
| 343 | ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 | 379 | ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 |
| 380 | ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 | ||
| 381 | fi | ||
| 382 | |||
| 344 | } | 383 | } |
| 345 | 384 | ||
| 346 | pkg_postinst_${PN}-blitwsegl() { | 385 | pkg_postinst_${PN}-blitwsegl() { |
