<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 2011&#24180;12&#26376;12&#26085; 19:40, Otavio Salvador wrote:
    <blockquote
cite="mid:CAP9ODKrGOc27fxR74Ops4YjF+vLAwU5kZRZFW4XZjiFBaS=hig@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div class="gmail_quote">On Mon, Dec 12, 2011 at 09:28, Xiaofeng
        Yan <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:xiaofeng.yan@windriver.com">xiaofeng.yan@windriver.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          From: Xiaofeng Yan &lt;<a moz-do-not-send="true"
            href="mailto:xiaofeng.yan@windriver.com">xiaofeng.yan@windriver.com</a>&gt;<br>
          <br>
          This file can make an image to run gtk over directfb.<br>
        </blockquote>
        <div><br>
        </div>
        <div>I think this ought to be done on core-image-gtk not a
          specific one for directfb as it depends on a distro feature
          and you can't just generate an image with this, if the distro
          has no directfb feature enabled.</div>
        <div>&nbsp;</div>
      </div>
      -- <br>
      Otavio Salvador&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;O.S. Systems<br>
      E-mail: <a moz-do-not-send="true"
        href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a>&nbsp;
      <a moz-do-not-send="true" href="http://www.ossystems.com.br"
        target="_blank">http://www.ossystems.com.br</a><br>
      Mobile: +55 53 9981-7854&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<a moz-do-not-send="true"
        href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Openembedded-core mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a>
</pre>
    </blockquote>
    I can add a mechanism to inform user to add "gtk-directfb" to
    DISTRO_FEATURES by adding like the following steps<br>
    $touch meta/class/gtk-directfb.bbclass<br>
    $cat&nbsp; meta/class/gtk-directfb.bbclass<br>
    python () {<br>
    &nbsp;&nbsp;&nbsp; import os<br>
    &nbsp;&nbsp;&nbsp; import signal<br>
    &nbsp;&nbsp;&nbsp; packages = d.getVar('DISTRO_FEATURES', 1).split()<br>
    &nbsp;&nbsp;&nbsp; for pkg in packages:<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if pkg == "x11":<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print("Please remove x11 from DISTRO_FEATURES, use
    \"gtk-directfb\" instead of it\n")<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pid = os.getpid() <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; os.kill(pid,signal.SIGCLD) # it could have some issues <br>
    }<br>
    <br>
    $cat core-image-gtk-directfb.bb<br>
    LICENSE = "MIT"<br>
    PR="r0"<br>
    <br>
    <font color="#cc0000">inherit gtk-directfb</font><br>
    <br>
    LIC_FILES_CHKSUM =
    "<a class="moz-txt-link-freetext" href="file://$">file://$</a>{COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="file://$">file://$</a>{COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"<br>
    <br>
    <br>
    DEPENDS += "task-core-gtk-directfb"<br>
    <br>
    RDEPENDS_${PN} += " \<br>
    &nbsp;&nbsp;&nbsp; task-core-gtk-directfb-base \<br>
    &nbsp;&nbsp;&nbsp; "<br>
    <br>
    inherit core-image<br>
    <br>
    IMAGE_INSTALL += "\<br>
    &nbsp;&nbsp;&nbsp; ${POKY_BASE_INSTALL} \<br>
    &nbsp;&nbsp;&nbsp; task-core-basic \<br>
    &nbsp;&nbsp;&nbsp; module-init-tools \<br>
    &nbsp;&nbsp;&nbsp; task-core-gtk-directfb-base \<br>
    "<br>
    Do you have any comment about above method ?<br>
    <br>
    Thanks<br>
    Yan<br>
  </body>
</html>