summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston_1.10.0.bb
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2016-05-18 13:40:41 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-21 22:24:55 +0100
commit959237ef882d0abc03a8ad4449c4ce8efe4b18e5 (patch)
treef274babe2615e89bf8084f2b1127178f09e9e5cd /meta/recipes-graphics/wayland/weston_1.10.0.bb
parent9a9f04ff9b5d8ed63fe424c3dff9854fee78b14d (diff)
downloadpoky-959237ef882d0abc03a8ad4449c4ce8efe4b18e5.tar.gz
weston: Provide a default version of weston-launch that doesn't require PAM
weston-launch requires PAM for starting weston as a non-root user. Since starting weston as root is a valid use case by itself, we check the distro for 'pam' and build weston-launch with or without non-root-user support. (From OE-Core rev: 6295197adc022445fff01ca5ee75780a4c007d99) Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland/weston_1.10.0.bb')
-rw-r--r--meta/recipes-graphics/wayland/weston_1.10.0.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-graphics/wayland/weston_1.10.0.bb b/meta/recipes-graphics/wayland/weston_1.10.0.bb
index 29da5541b4..c9168d7ab8 100644
--- a/meta/recipes-graphics/wayland/weston_1.10.0.bb
+++ b/meta/recipes-graphics/wayland/weston_1.10.0.bb
@@ -12,6 +12,7 @@ SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
12 file://0001-make-error-portable.patch \ 12 file://0001-make-error-portable.patch \
13 file://0001-configure.ac-Fix-wayland-protocols-path.patch \ 13 file://0001-configure.ac-Fix-wayland-protocols-path.patch \
14 file://make-weston-launch-exit-for-unrecognized-option.patch \ 14 file://make-weston-launch-exit-for-unrecognized-option.patch \
15 file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \
15" 16"
16SRC_URI[md5sum] = "1cd17c54ecac6d9a3cd90bf12eaa3e20" 17SRC_URI[md5sum] = "1cd17c54ecac6d9a3cd90bf12eaa3e20"
17SRC_URI[sha256sum] = "e0b2004d00d8293ddf7903ca283c1746afa9ccb5919ab50fd04397ff472aa5c1" 18SRC_URI[sha256sum] = "e0b2004d00d8293ddf7903ca283c1746afa9ccb5919ab50fd04397ff472aa5c1"
@@ -39,9 +40,9 @@ EXTRA_OECONF_append_qemux86-64 = "\
39PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ 40PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \
40 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ 41 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
41 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ 42 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \
42 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'launch', '', d)} \ 43 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
43 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ 44 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
44 clients" 45 clients launch"
45# 46#
46# Compositor choices 47# Compositor choices
47# 48#
@@ -56,7 +57,7 @@ PACKAGECONFIG[headless] = "--enable-headless-compositor,--disable-headless-compo
56# Weston on framebuffer 57# Weston on framebuffer
57PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,udev mtdev" 58PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,udev mtdev"
58# weston-launch 59# weston-launch
59PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,libpam drm" 60PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,drm"
60# VA-API desktop recorder 61# VA-API desktop recorder
61PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" 62PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva"
62# Weston with EGL support 63# Weston with EGL support
@@ -77,6 +78,8 @@ PACKAGECONFIG[xwayland] = "--enable-xwayland,--disable-xwayland"
77PACKAGECONFIG[colord] = "--enable-colord,--disable-colord,colord" 78PACKAGECONFIG[colord] = "--enable-colord,--disable-colord,colord"
78# Clients support 79# Clients support
79PACKAGECONFIG[clients] = "--enable-clients --enable-simple-clients --enable-demo-clients-install,--disable-clients --disable-simple-clients" 80PACKAGECONFIG[clients] = "--enable-clients --enable-simple-clients --enable-demo-clients-install,--disable-clients --disable-simple-clients"
81# Weston with PAM support
82PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
80 83
81do_install_append() { 84do_install_append() {
82 # Weston doesn't need the .la files to load modules, so wipe them 85 # Weston doesn't need the .la files to load modules, so wipe them