Skip to content

domd: use drmkms in non weston build for libsdl2 - #89

Open
arminn wants to merge 3 commits into
xen-troops:kirkstonefrom
arminn:mr_libsdl2_drmkms
Open

domd: use drmkms in non weston build for libsdl2#89
arminn wants to merge 3 commits into
xen-troops:kirkstonefrom
arminn:mr_libsdl2_drmkms

Conversation

@arminn

@arminn arminn commented Sep 18, 2024

Copy link
Copy Markdown
Contributor

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.

@lorc lorc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acked-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

In most products dom0 used as a control domain and
not as backend domain.

Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
@arminn

arminn commented Oct 3, 2024

Copy link
Copy Markdown
Contributor Author

testing patches

@arminn
arminn force-pushed the mr_libsdl2_drmkms branch from f3d0328 to a7436bb Compare October 3, 2024 11:31
@@ -0,0 +1,2 @@

PACKAGECONFIG:append = "${@' kmsdrm gles2 ' if 'wayland' not in d.getVar('DISTRO_FEATURES', True).split() else ''}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very convoluted way to write ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'kmsdrm gles2 ', d)} :)

Please rewrite it in Yocto-way

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,3 @@
[Unit]
Requires=backend-ready@bridge.service

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you need this dependency? I believe doma can start right away (i.e. without any additional dependencies) if there is no wayland.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

arminn added 2 commits October 4, 2024 17:36
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 <andrii_chepurnyi@epam.com>
Introduce new property XT_DOMD_DISPLAY_SYSTEM, which will hint
display system in DomD to chose appropriate domain dependancies for start.
I.e. if weston used - we assume that prior guest start, weston should be
ready and running to give possibility for gues draw into window.

Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
@arminn
arminn force-pushed the mr_libsdl2_drmkms branch from a7436bb to 64ec206 Compare October 4, 2024 14:36
@arminn
arminn changed the base branch from master to kirkstone October 4, 2024 14:37
@arminn

arminn commented Oct 4, 2024

Copy link
Copy Markdown
Contributor Author

Changed target branch to kirkstone.

# virtio-env-weston.conf whould be used if we have the weston compositor in domd
# the product should redefine variable.

XT_DOMD_DISPLAY_SYSTEM ??= "weston"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, now you have this in two recipes... I believe it is better to move this variable definition to some common .inc file, to decrease code duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants