]> code.ossystems Code Review - meta-freescale.git/commitdiff
weston: fix the test condition for agl builds
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Fri, 1 Nov 2019 11:19:25 +0000 (11:19 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 1 Nov 2019 12:39:52 +0000 (09:39 -0300)
Fix the variable test condition, wich is used during inclusion of
weston.ini file in the agl and non-agl builds.

Since for non-agl build there is no algprofilegraphics in the
collection, variable expands to an empty string and test condition
evaluates to true for both agl and non-agl builds.
This causes the weston.ini file to be installed regardless of whether
the agl is found or not.

Usage of a different condition check (lenght instead of empty) eliminates
this issue.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
recipes-graphics/wayland/weston_5.0.0.imx.bb

index 10ce08ca72f4adfd70670ce98a92b10b0ce0f609..9f32d94a237013d9cd2a87f013920ad4a10d1b47 100644 (file)
@@ -120,7 +120,7 @@ do_install_append() {
        fi
 
        # install default weston.ini
-       if [ -z "${@bb.utils.filter('BBFILE_COLLECTIONS', 'aglprofilegraphical', d)}" ]; then
+       if [ -n "${@bb.utils.filter('BBFILE_COLLECTIONS', 'aglprofilegraphical', d)}" ]; then
                if [ "${@bb.utils.filter('BBFILE_COLLECTIONS', 'ivi', d)}" ]; then
                        WESTON_INI_SRCDIR=${B}/ivi-shell
                else