From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5E990E005B3; Thu, 3 Dec 2015 10:22:10 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.94.94.41 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 14747E009EA for ; Thu, 3 Dec 2015 10:21:45 -0800 (PST) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id tB3ILiba001950 for ; Thu, 3 Dec 2015 12:21:44 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id tB3ILipx026285 for ; Thu, 3 Dec 2015 12:21:44 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.224.2; Thu, 3 Dec 2015 12:21:44 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id tB3ILiLS017271; Thu, 3 Dec 2015 12:21:44 -0600 Date: Thu, 3 Dec 2015 13:21:28 -0500 From: Denys Dmytriyenko To: Eric Ruei Message-ID: <20151203182128.GT6264@edge> References: <1448984390-21457-1-git-send-email-e-ruei1@ti.com> <1448984390-21457-3-git-send-email-e-ruei1@ti.com> MIME-Version: 1.0 In-Reply-To: <1448984390-21457-3-git-send-email-e-ruei1@ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: meta-ti@yoctoproject.org Subject: Re: [PATCH V2 2/2] omap5-sgx-ddk-um-linux: Configure DDK UM based on the availability of SGX X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2015 18:22:10 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Tue, Dec 01, 2015 at 10:39:50AM -0500, Eric Ruei wrote: > From: Eric Ruei > > Enable non-SGX build for AM3/AM4: > - Remove SGX init support if SGX is not included at MACHINE_FEATURES. > - For ti43x: Select DDK UM libaries based on whether SGX is available > NullDRM libraries if SGX is not available > DRM/Wayland libraries if SGX is available > Select plugin lists based on whether SGX is available > > Note: The nullDRM DDK libraries are still required for QT5 library and > application build for the non-SGX build, however, the SGX related > APIs will not be invoked at the software rendering mode. Why not use Mesa instead? Why do you need to patch libgles libraries for siftware rendering? > Signed-off-by: Eric Ruei ^^^^ > --- > .../libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff --git a/recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb b/recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb > index 8b032e3..0aefb33 100644 > --- a/recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb > +++ b/recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb > @@ -7,12 +7,12 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" > > BRANCH_omap-a15 = "master" > BRANCH_ti33x = "am3/k4.1" > -BRANCH_ti43x = "am4/k4.1" > +BRANCH_ti43x = "${@base_contains('MACHINE_FEATURES', 'sgx', 'am4/k4.1', 'am3/k4.1', d)}" > > SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" > SRCREV_omap-a15 = "d63cd6469fff610317a8e1c986f227bb3e7922f6" > SRCREV_ti33x = "84ae5444c7cbc3f4c65a226b9fea62d4a513f3e0" > -SRCREV_ti43x = "fdf4c0b594ca142a68aabb4c3f82b75be50b46cc" > +SRCREV_ti43x = "${@base_contains('MACHINE_FEATURES', 'sgx', 'fdf4c0b594ca142a68aabb4c3f82b75be50b46cc', '84ae5444c7cbc3f4c65a226b9fea62d4a513f3e0', d)}" > > INITSCRIPT_NAME = "pvr-init" > INITSCRIPT_PARAMS = "defaults 8" > @@ -44,15 +44,17 @@ do_install () { > install -m 0644 ${WORKDIR}/powervr.ini ${D}${sysconfdir}/ > } > > -FILES_${PN} = "${bindir}/*" > +FILES_${PN} = "${@base_contains('MACHINE_FEATURES', 'sgx', '${bindir}/*', '', d)}" > FILES_${PN} += " ${libdir}/*" > FILES_${PN} += "${includedir}/* /usr/share/sgx-lib/" > -FILES_${PN} += "${sysconfdir}/init.d/pvr-init" > -FILES_${PN} += "${sysconfdir}/powervr.ini" > +FILES_${PN} += "${@base_contains('MACHINE_FEATURES', 'sgx', '${sysconfdir}/init.d/pvr-init', '', d)}" > +FILES_${PN} += "${@base_contains('MACHINE_FEATURES', 'sgx', '${sysconfdir}/powervr.ini', '', d)}" > > PACKAGES =+ "${PN}-plugins" > +SGX_PLUGINS_FILES_NULLDRM = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrDRMWSEGL_FRONT.so " > +SGX_PLUGINS_FILES_DRM = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrws_WAYLAND.so ${libdir}/libpvrws_KMS.so " > FILES_${PN}-plugins = "" > -FILES_${PN}-plugins_ti43x = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrws_WAYLAND.so ${libdir}/libpvrws_KMS.so " > +FILES_${PN}-plugins_ti43x = "${@base_contains('MACHINE_FEATURES', 'sgx', SGX_PLUGINS_FILES_DRM, SGX_PLUGINS_FILES_NULLDRM, d)}" > FILES_${PN}-plugins_ti33x = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrDRMWSEGL_FRONT.so " > RDEPENDS_${PN} += "${PN}-plugins" > > -- > 1.9.1 > > -- > _______________________________________________ > meta-ti mailing list > meta-ti@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-ti