[yocto] [meta-ivi][PATCH] weston: Add weston.ini config file

Sujith H sujith.h at gmail.com
Sun Apr 27 23:23:42 PDT 2014


Adding weston.ini to /etc/xdg. With this change
user can login and launch weston with ivi-shell.

Signed-off-by: Sujith H <Sujith_Haridasan at mentor.com>
---
 recipes-graphics/wayland/weston_1.4.0.bbappend | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/recipes-graphics/wayland/weston_1.4.0.bbappend b/recipes-graphics/wayland/weston_1.4.0.bbappend
index 7a8ba6f..b324335 100644
--- a/recipes-graphics/wayland/weston_1.4.0.bbappend
+++ b/recipes-graphics/wayland/weston_1.4.0.bbappend
@@ -8,7 +8,20 @@ SRC_URI_remove = "http://wayland.freedesktop.org/releases/weston-1.4.0.tar.xz"
 SRC_URI_prepend = "git://github.com/ntanibata/weston-ivi-shell.git;branch=weston-ivi-shell-1.4.0-v12;protocol=http "
 S = "${WORKDIR}/git"
 
-PR = "r1"
+PR = "r2"
 
 FILES_${PN} += "${libdir}/weston/*"
 FILES_${PN}-dbg += "${libdir}/weston/.debug/*"
+
+do_install_append() {
+   WESTON_INI_CONFIG=${sysconfdir}/xdg/weston
+   install -d ${D}${WESTON_INI_CONFIG}
+   install -m 0644 ${S}/ivi-shell/weston.ini.in ${D}${WESTON_INI_CONFIG}/weston.ini
+   sed -i -e 's/hmi-controller.so/hmi-controller.so,ivi-controller.so/' \
+          -e 's|\@libexecdir\@|${libexecdir}|' \
+          -e 's|\@abs_top_builddir\@\/data|${datadir}\/weston|' \
+          -e 's|\@abs_top_builddir\@\/clients|${bindir}|' ${D}${WESTON_INI_CONFIG}/weston.ini
+
+}
+
+FILES_${PN} += "${sysconfdir}/xdg"
-- 
1.8.4




More information about the yocto mailing list