<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 12px;" lang="x-western">On 2013-09-02 18:13, Ross
      Burton wrote:
      <br>
      <br>
      Oh, nice to see my utility here again <span class="moz-smiley-s1"
        title=":)"></span> I have to admit, this was one of the first
      recipes I ever wrote. Somebody mentioned concerns about it being
      machine-specific. I think this is the case if EGLINFO_DEVICE is
      set to anything other than "generic". I faced a similar situation
      with the GStreamer 1.0 OpenMAX plugins, and solved this with
      python code: <a class="moz-txt-link-freetext"
href="https://github.com/dv1/meta-gstreamer1.0/blob/master/recipes-multimedia/gstreamer/gstreamer1.0-omx.inc#L20">https://github.com/dv1/meta-gstreamer1.0/blob/master/recipes-multimedia/gstreamer/gstreamer1.0-omx.inc#L20</a>
      <br>
      So, if EGLINFO_DEVICE is not set to generic, PACKAGE_ARCH is
      automatically set to MACHINE_ARCH. I would introduce this in the
      recipe, but do not have the time right now, unfortunately <span
        class="moz-smiley-s2" title=":("></span>
      <br>
      <br>
      The other concern is Wayland support. There isn't any yet.
      <br>
      <br>
      <blockquote type="cite" style="color: #000000;">eglinfo is a small
        utility for printing out information about EGL as well
        <br>
        as about its client APIs, OpenGL / OpenGLES 1.x / OpenGLES 2.x /
        OpenVG.
        <br>
        <br>
        Recipe originally by Carlos Rafael Giani <a
          class="moz-txt-link-rfc2396E"
          href="mailto:dv@pseudoterminal.org">&lt;dv@pseudoterminal.org&gt;</a>.
        <br>
        <br>
        Signed-off-by: Ross Burton <a class="moz-txt-link-rfc2396E"
          href="mailto:ross.burton@intel.com">&lt;ross.burton@intel.com&gt;</a>
        <br>
        ---
        <br>
        &nbsp; meta/recipes-graphics/eglinfo/eglinfo-fb_1.0.bb&nbsp; |&nbsp;&nbsp; 11
        ++++++++
        <br>
        &nbsp; meta/recipes-graphics/eglinfo/eglinfo-x11_1.0.bb |&nbsp;&nbsp;&nbsp; 8 ++++++
        <br>
        &nbsp; meta/recipes-graphics/eglinfo/eglinfo.inc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; 32
        ++++++++++++++++++++++
        <br>
        &nbsp; 3 files changed, 51 insertions(+)
        <br>
        &nbsp; create mode 100644
        meta/recipes-graphics/eglinfo/eglinfo-fb_1.0.bb
        <br>
        &nbsp; create mode 100644
        meta/recipes-graphics/eglinfo/eglinfo-x11_1.0.bb
        <br>
        &nbsp; create mode 100644 meta/recipes-graphics/eglinfo/eglinfo.inc
        <br>
        <br>
        diff --git a/meta/recipes-graphics/eglinfo/eglinfo-fb_1.0.bb
        b/meta/recipes-graphics/eglinfo/eglinfo-fb_1.0.bb
        <br>
        new file mode 100644
        <br>
        index 0000000..65b265f
        <br>
        --- /dev/null
        <br>
        +++ b/meta/recipes-graphics/eglinfo/eglinfo-fb_1.0.bb
        <br>
        @@ -0,0 +1,11 @@
        <br>
        +EGLINFO_PLATFORM ?= "fb"
        <br>
        +EGLINFO_BINARY_NAME ?= "eglinfo-fb"
        <br>
        +
        <br>
        +# .bbappend files in BSP meta layers can add EGLINFO_DEVICE
        <br>
        +# values if necessary. eglinfo.inc contains default values for
        <br>
        +# the currently supported devices.
        <br>
        +# Consult the eglinfo README.md for details
        <br>
        +
        <br>
        +include eglinfo.inc
        <br>
        +
        <br>
        +SUMMARY += "(Framebuffer version)"
        <br>
        diff --git a/meta/recipes-graphics/eglinfo/eglinfo-x11_1.0.bb
        b/meta/recipes-graphics/eglinfo/eglinfo-x11_1.0.bb
        <br>
        new file mode 100644
        <br>
        index 0000000..18fc893
        <br>
        --- /dev/null
        <br>
        +++ b/meta/recipes-graphics/eglinfo/eglinfo-x11_1.0.bb
        <br>
        @@ -0,0 +1,8 @@
        <br>
        +EGLINFO_PLATFORM ?= "x11"
        <br>
        +EGLINFO_BINARY_NAME ?= "eglinfo-x11"
        <br>
        +
        <br>
        +include eglinfo.inc
        <br>
        +
        <br>
        +DEPENDS += "virtual/libx11"
        <br>
        +
        <br>
        +SUMMARY += "(X11 version)"
        <br>
        diff --git a/meta/recipes-graphics/eglinfo/eglinfo.inc
        b/meta/recipes-graphics/eglinfo/eglinfo.inc
        <br>
        new file mode 100644
        <br>
        index 0000000..d53d0ff
        <br>
        --- /dev/null
        <br>
        +++ b/meta/recipes-graphics/eglinfo/eglinfo.inc
        <br>
        @@ -0,0 +1,32 @@
        <br>
        +SUMMARY = "Utility for printing information EGL and its client
        APIs (OpenGL, OpenGL ES, OpenVG)"
        <br>
        +SECTION = "graphics"
        <br>
        +LICENSE = "Zlib"
        <br>
        +HOMEPAGE = <a class="moz-txt-link-rfc2396E"
          href="https://github.com/dv1/eglinfo">"https://github.com/dv1/eglinfo"</a>
        <br>
        +LIC_FILES_CHKSUM = <a class="moz-txt-link-rfc2396E"
          href="file://LICENSE;md5=8d4f33bc3add976f7dfae85dab66f03c">"file://LICENSE;md5=8d4f33bc3add976f7dfae85dab66f03c"</a>
        <br>
        +
        <br>
        +DEPENDS = "virtual/egl"
        <br>
        +
        <br>
        +SRC_URI = "git://github.com/dv1/eglinfo.git;branch=master"
        <br>
        +SRCREV = "4a49ff59545d9b6a8222badab64115f89d3a6774"
        <br>
        +
        <br>
        +S = "${WORKDIR}/git"
        <br>
        +
        <br>
        +inherit waf
        <br>
        +
        <br>
        +# BSP layers should add .bbappend files for the -x11 and -fb
        .bb recipes,
        <br>
        +# which append the respective EGL/OpenGLES/OpenVG libraries to
        DEPENDS
        <br>
        +# not doing that here, since some platforms might not have
        OpenGL ES or OpenVG support
        <br>
        +# (in that case, the eglinfo build scripts automatically
        disable the relevant code paths)
        <br>
        +
        <br>
        +EGLINFO_DEVICE ?= "generic"
        <br>
        +EGLINFO_DEVICE_raspberrypi ?= "raspberrypi"
        <br>
        +EGLINFO_DEVICE_beagleboard ?= "beagleboard"
        <br>
        +EGLINFO_DEVICE_mx6 ?= "imx6"
        <br>
        +
        <br>
        +EXTRA_OECONF = "--platform=${EGLINFO_PLATFORM} \
        <br>
        +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --device=${EGLINFO_DEVICE} \
        <br>
        +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --sysroot ${STAGING_DIR_TARGET}"
        <br>
        +
        <br>
        +do_install_append() {
        <br>
        +&nbsp;&nbsp;&nbsp; mv ${D}/${bindir}/eglinfo
        ${D}/${bindir}/${EGLINFO_BINARY_NAME}
        <br>
        +}
        <br>
      </blockquote>
      <br>
    </div>
  </body>
</html>