All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Eric Ruei <e-ruei1@ti.com>
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
Date: Thu, 3 Dec 2015 13:21:28 -0500	[thread overview]
Message-ID: <20151203182128.GT6264@edge> (raw)
In-Reply-To: <1448984390-21457-3-git-send-email-e-ruei1@ti.com>

On Tue, Dec 01, 2015 at 10:39:50AM -0500, Eric Ruei wrote:
> From: Eric Ruei <a0850410@uda0850410>
> 
> 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 <a0850410@uda0850410>

^^^^


> ---
>  .../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


      reply	other threads:[~2015-12-03 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-01 15:39 [PATCH V2 0/2] Enable non-SGX build for AM3/AM4 Eric Ruei
2015-12-01 15:39 ` [PATCH V2 1/2] conf/layer.conf: Build omapdrm-pvr only if SGX is included Eric Ruei
2015-12-03 18:19   ` Denys Dmytriyenko
2015-12-01 15:39 ` [PATCH V2 2/2] omap5-sgx-ddk-um-linux: Configure DDK UM based on the availability of SGX Eric Ruei
2015-12-03 18:21   ` Denys Dmytriyenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151203182128.GT6264@edge \
    --to=denys@ti.com \
    --cc=e-ruei1@ti.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.