On 2011?12?12? 19:40, Otavio Salvador wrote: > On Mon, Dec 12, 2011 at 09:28, Xiaofeng Yan > > wrote: > > From: Xiaofeng Yan > > > This file can make an image to run gtk over directfb. > > > 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. > -- > Otavio Salvador O.S. Systems > E-mail: otavio@ossystems.com.br > http://www.ossystems.com.br > Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core I can add a mechanism to inform user to add "gtk-directfb" to DISTRO_FEATURES by adding like the following steps $touch meta/class/gtk-directfb.bbclass $cat meta/class/gtk-directfb.bbclass python () { import os import signal packages = d.getVar('DISTRO_FEATURES', 1).split() for pkg in packages: if pkg == "x11": print("Please remove x11 from DISTRO_FEATURES, use \"gtk-directfb\" instead of it\n") pid = os.getpid() os.kill(pid,signal.SIGCLD) # it could have some issues } $cat core-image-gtk-directfb.bb LICENSE = "MIT" PR="r0" inherit gtk-directfb LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" DEPENDS += "task-core-gtk-directfb" RDEPENDS_${PN} += " \ task-core-gtk-directfb-base \ " inherit core-image IMAGE_INSTALL += "\ ${POKY_BASE_INSTALL} \ task-core-basic \ module-init-tools \ task-core-gtk-directfb-base \ " Do you have any comment about above method ? Thanks Yan