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/wayland/weston-conf.bb | |
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/wayland/weston-conf.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston-conf.bb | 35 |
1 files changed, 35 insertions, 0 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 | } | ||