]> code.ossystems Code Review - meta-freescale.git/commitdiff
weston: Add support for AGL and IVI
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 23 May 2019 21:39:28 +0000 (16:39 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 12 Sep 2019 17:45:07 +0000 (14:45 -0300)
- For AGL, don't install weston.ini
- For IVI, do install the IVI-shell version of weston.ini

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/wayland/weston_5.0.0.imx.bb

index 7649893bb168bf5614bf7d4fe42836b7d99fea07..10ce08ca72f4adfd70670ce98a92b10b0ce0f609 100644 (file)
@@ -120,7 +120,14 @@ do_install_append() {
        fi
 
        # install default weston.ini
-       install -D -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
+       if [ -z "${@bb.utils.filter('BBFILE_COLLECTIONS', 'aglprofilegraphical', d)}" ]; then
+               if [ "${@bb.utils.filter('BBFILE_COLLECTIONS', 'ivi', d)}" ]; then
+                       WESTON_INI_SRCDIR=${B}/ivi-shell
+               else
+                       WESTON_INI_SRCDIR=${B}
+               fi
+               install -D -m 0644 ${WESTON_INI_SRCDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
+       fi
 }
 
 PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \