[OE-core] [PATCH 7/7] core-image-gtk-directfb.bb: add an image for gtk over directfb
Xiaofeng Yan
xiaofeng.yan at windriver.com
Tue Dec 13 10:51:37 UTC 2011
On 2011?12?12? 19:40, Otavio Salvador wrote:
> On Mon, Dec 12, 2011 at 09:28, Xiaofeng Yan
> <xiaofeng.yan at windriver.com <mailto:xiaofeng.yan at windriver.com>> wrote:
>
> From: Xiaofeng Yan <xiaofeng.yan at windriver.com
> <mailto:xiaofeng.yan at windriver.com>>
>
> 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 at ossystems.com.br <mailto:otavio at ossystems.com.br>
> http://www.ossystems.com.br
> Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20111213/39b00090/attachment-0002.html>
More information about the Openembedded-core
mailing list