Skip to content

Commit

Permalink
domd: use drmkms in non weston build for libsdl2
Browse files Browse the repository at this point in the history
In our configuration, QEMU uses libsdl2 as a backend for display.
At the same time, in weston build, libsdl2 uses weston window for
display output. In non weston build it is proposed to use drmkms
for the display output.

Signed-off-by: Andrii Chepurnyi <[email protected]>
  • Loading branch information
arminn committed Sep 19, 2024
1 parent 09d7a4c commit bce7a55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Manager]
DefaultEnvironment="SDL_VIDEODRIVER=kmsdrm"
10 changes: 8 additions & 2 deletions meta-xt-driver-domain/recipes-core/systemd/systemd_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append = " \
file://ip_forward.conf \
file://sdl-env.conf \
file://sdl-env-wayland.conf \
file://sdl-env-kmsdrm.conf \
"

PACKAGECONFIG:append = " networkd"
Expand All @@ -14,5 +15,10 @@ USERADD_ERROR_DYNAMIC = "warn"
do_install:append() {
install -m 0644 ${WORKDIR}/ip_forward.conf ${D}${sysconfdir}/tmpfiles.d/
install -d ${D}${sysconfdir}/systemd/system.conf.d/
install -m 0644 ${WORKDIR}/sdl-env.conf ${D}${sysconfdir}/systemd/system.conf.d/
# Check if 'weston' is included in the DISTRO_FEATURES or PACKAGECONFIG
if ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'true', 'false', d)}; then
install -m 0644 ${WORKDIR}/sdl-env-wayland.conf ${D}${sysconfdir}/systemd/system.conf.d/sdl-env.conf
else
install -m 0644 ${WORKDIR}/sdl-env-kmsdrm.conf ${D}${sysconfdir}/systemd/system.conf.d/sdl-env.conf
fi
}

0 comments on commit bce7a55

Please sign in to comment.