mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
weston-init: Select drm/fbdev backends for qemu machines
qemux86/x86_64/aarch64 supports drm backend well, therefore enable it on these qemu machines, other qemu machines should be defaulting to fbdev, if its not qemu then leave it empty (From OE-Core rev: cfda3e10d5eb1563d10318c1d8ff6287b539ee04) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -15,6 +15,12 @@ SRC_URI = "file://init \
|
|||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
|
DEFAULTBACKEND ??= ""
|
||||||
|
DEFAULTBACKEND_qemuall ?= "fbdev"
|
||||||
|
DEFAULTBACKEND_qemuarm64 = "drm"
|
||||||
|
DEFAULTBACKEND_qemux86 = "drm"
|
||||||
|
DEFAULTBACKEND_qemux86-64 = "drm"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
|
install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
|
||||||
install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
|
install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||||
@@ -36,6 +42,9 @@ do_install() {
|
|||||||
install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start
|
install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start
|
||||||
sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start
|
sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start
|
||||||
sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start
|
sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start
|
||||||
|
if [ -n "${DEFAULTBACKEND}" ]; then
|
||||||
|
sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
inherit update-rc.d features_check systemd
|
inherit update-rc.d features_check systemd
|
||||||
|
|||||||
Reference in New Issue
Block a user