Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: kirkstone
Choose a base branch
from

Conversation

arminn
Copy link
Contributor

@arminn arminn commented Sep 18, 2024

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.

Copy link
Collaborator

@lorc lorc left a comment

Choose a reason for hiding this comment

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

Acked-by: Volodymyr Babchuk <[email protected]>

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

Signed-off-by: Andrii Chepurnyi <[email protected]>
@arminn
Copy link
Contributor Author

arminn commented Oct 3, 2024

testing patches

@@ -0,0 +1,2 @@

PACKAGECONFIG:append = "${@' kmsdrm gles2 ' if 'wayland' not in d.getVar('DISTRO_FEATURES', True).split() else ''}"
Copy link
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
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]
[email protected]
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

Removed

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]>
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 <[email protected]>
@arminn arminn changed the base branch from master to kirkstone October 4, 2024 14:37
@arminn
Copy link
Contributor Author

arminn commented Oct 4, 2024

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
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