yocto bb file for wayland-protocol package
이양우
YangWoo.lee at hyundai-autron.com
Tue Apr 26 22:21:06 UTC 2016
Thank you for your answer.
I almost make bb file for wayland-protocols.
It looks working fine with wayland/weston 1.10.0 but I don't know whether it is perfect or not.
Anyway it working fine with one patch in my yocto build system and tested in TI arm board
(Someon in IRC chat who suggest to me to use 1.10.0(stable version) instead 1.9.9x)
Please tell me if it has problem
Weston : 1.10.0
Wayland : 1.10.0
Wayland-protocols : 1.3
-------------------------------0001-fix-up-wayland-protocols-build.patch-----------------------------------------
wayland-protocols.pc.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wayland-protocols.pc.in b/wayland-protocols.pc.in
index a26744c..d881101 100644
--- a/wayland-protocols.pc.in
+++ b/wayland-protocols.pc.in
@@ -1,6 +1,8 @@
prefix=@prefix@
datarootdir=@datarootdir@
-pkgdatadir=@datadir@/@PACKAGE@
+#pkgdatadir=@datadir@/@PACKAGE@
+pkgdatadir=@abs_top_srcdir@
+wayland_protocols=@abs_builddir@/wayland-protocols
Name: Wayland Protocols
Description: Wayland protocol files
-------------------------------wayland-protocols.bb--------------------------------------------------------------
HOMEPAGE = "http://wayland.freedesktop.org"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484"
SRC_URI = "git://anongit.freedesktop.org/wayland/wayland-protocols.git;protocol=git;tag=1.3 \
file://0001-fix-up-wayland-protocols-build.patch \
"
S = "${WORKDIR}/git"
#SRC_URI[md5sum] = "5e141b3f2a7005d6c89d6f233c87c317"
#SRC_URI[sha256sum] = "9c8770720aa0034479735f58a4dc4ca9b172ecfede28f5134312e135b7301efa"
#EXTRA_OECONF_class-native = "--disable-documentation --disable-libraries"
inherit autotools pkgconfig
# We need wayland-native for the wayland-scanner utility
#BBCLASSEXTEND = "native nativesdk"
#DEPENDS_class-native = "expat-native libffi-native"
DEPENDS = "expat libffi wayland-native wayland libinput"
EXTRA_OECONF = "--disable-documentation --with-host-scanner"
# Wayland installs a M4 macro for other projects to use, which uses the target
# pkg-config to find files. Replace pkg-config with pkg-config-native.
do_install_append_class-native() {
sed -e 's,PKG_CHECK_MODULES(.*),,g' \
-e 's,$PKG_CONFIG,pkg-config-native,g' \
-i ${D}/${datadir}/wayland-protocols
}
sysroot_stage_all_append_class-target () {
# cp -r ${STAGING_DATADIR_NATIVE}/wayland-protocols ${SYSROOT_DESTDIR}/${datadir}/wayland-protocols
}
FILES_${PN} = "${libdir}/*${SOLIBS} ${datadir}/wayland-protocols"
FILES_${PN}-dev += "${bindir} ${datadir}/wayland "
---------------------------------------------------------------------------------------------
-----Original Message-----
From: Jussi Kukkonen [mailto:jussi.kukkonen at intel.com]
Sent: Wednesday, April 27, 2016 2:41 AM
To: 이양우
Cc: wayland-devel at lists.freedesktop.org
Subject: Re: yocto bb file for wayland-protocol package
On 21 April 2016 at 14:22, 이양우 <YangWoo.lee at hyundai-autron.com> wrote:
> Im trying to build wayland 1.9.91 for TI ARM target board..
>
> But it looks require wayland-protocols??.bb I already have wayland.bb
> Weston.bb.
>
> Anyone give me example for wayland-protocols.bb
Yocto/oe-core is still at wayland/weston 1.9 (versions frozen for imminent Yocto release) so wayland-protocols is not needed there. If you upgrade the recipes you will have to create a wayland-protocols recipe as well.
Once the Yocto release is done, we will start version upgrades again:
I'd expect weston/wayland 1.10 and wayland-protocols updates during May but feel free to contribute those to oe-core yourself before that if you're in a hurry.
- Jussi
More information about the wayland-devel
mailing list