diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2018-10-25 05:58:26 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-28 08:31:57 +0000 |
commit | 4001e1adb21b9785a19669968f07166f5b8772cd (patch) | |
tree | 5d9183dcb1053d05f3a5bcae29d6fd92fa6e390f /meta/recipes-graphics | |
parent | 4046716c2f315308048d568e5b606382ef7bc38b (diff) | |
download | poky-4001e1adb21b9785a19669968f07166f5b8772cd.tar.gz |
weston: Split out machine specific configuration
Weston needs to be configured to load the fbdev driver when run on a QEMU system.
Other MACHINEs may want to also provider their own configuration as well..
Adding a new RRECOMMEND configuration package will allow this, but avoid
installing empty packages/files in the majority case where it is not needed.
Add maintainer entry as well.
(From OE-Core rev: 0f43ea8510ae6148a49eb25accac407b6b301b43)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/wayland/weston-conf.bb | 35 | ||||
-rw-r--r-- | meta/recipes-graphics/wayland/weston_5.0.0.bb | 8 |
2 files changed, 36 insertions, 7 deletions
diff --git a/meta/recipes-graphics/wayland/weston-conf.bb b/meta/recipes-graphics/wayland/weston-conf.bb new file mode 100644 index 0000000000..f52200c46a --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-conf.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Weston, a Wayland compositor, configuration files" | ||
2 | HOMEPAGE = "http://wayland.freedesktop.org" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | CONFFILES_${PN} = "${sysconfdir}/xdg/weston/weston.ini" | ||
9 | |||
10 | FILES_${PN} = "${sysconfdir}/xdg/weston/weston.ini" | ||
11 | |||
12 | PACKAGES = "${PN}" | ||
13 | |||
14 | do_configure[noexec] = '1' | ||
15 | do_compile[noexec] = '1' | ||
16 | |||
17 | do_install() { | ||
18 | : | ||
19 | } | ||
20 | |||
21 | do_install_qemux86() { | ||
22 | mkdir -p ${D}/${sysconfdir}/xdg/weston | ||
23 | cat << EOF > ${D}/${sysconfdir}/xdg/weston/weston.ini | ||
24 | [core] | ||
25 | backend=fbdev-backend.so | ||
26 | EOF | ||
27 | } | ||
28 | |||
29 | do_install_qemux86-64() { | ||
30 | mkdir -p ${D}/${sysconfdir}/xdg/weston | ||
31 | cat << EOF > ${D}/${sysconfdir}/xdg/weston/weston.ini | ||
32 | [core] | ||
33 | backend=fbdev-backend.so | ||
34 | EOF | ||
35 | } | ||
diff --git a/meta/recipes-graphics/wayland/weston_5.0.0.bb b/meta/recipes-graphics/wayland/weston_5.0.0.bb index 299408b201..e51710928a 100644 --- a/meta/recipes-graphics/wayland/weston_5.0.0.bb +++ b/meta/recipes-graphics/wayland/weston_5.0.0.bb | |||
@@ -29,12 +29,6 @@ WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | |||
29 | EXTRA_OECONF = "--enable-setuid-install \ | 29 | EXTRA_OECONF = "--enable-setuid-install \ |
30 | --disable-rdp-compositor \ | 30 | --disable-rdp-compositor \ |
31 | " | 31 | " |
32 | EXTRA_OECONF_append_qemux86 = "\ | ||
33 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
34 | " | ||
35 | EXTRA_OECONF_append_qemux86-64 = "\ | ||
36 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
37 | " | ||
38 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ | 32 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ |
39 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ | 33 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ |
40 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd x11', d)} \ | 34 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd x11', d)} \ |
@@ -107,7 +101,7 @@ FILES_${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" | |||
107 | RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland" | 101 | RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland" |
108 | 102 | ||
109 | RDEPENDS_${PN} += "xkeyboard-config" | 103 | RDEPENDS_${PN} += "xkeyboard-config" |
110 | RRECOMMENDS_${PN} = "liberation-fonts" | 104 | RRECOMMENDS_${PN} = "weston-conf liberation-fonts" |
111 | RRECOMMENDS_${PN}-dev += "wayland-protocols" | 105 | RRECOMMENDS_${PN}-dev += "wayland-protocols" |
112 | 106 | ||
113 | USERADD_PACKAGES = "${PN}" | 107 | USERADD_PACKAGES = "${PN}" |