-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: kirkstone
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 <volodymyr_babchuk@epam.com>
65fc94c
to
bce7a55
Compare
In most products dom0 used as a control domain and not as backend domain. Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
bce7a55
to
144fec9
Compare
144fec9
to
f3d0328
Compare
testing patches |
f3d0328
to
a7436bb
Compare
@@ -0,0 +1,2 @@ | |||
|
|||
PACKAGECONFIG:append = "${@' kmsdrm gles2 ' if 'wayland' not in d.getVar('DISTRO_FEATURES', True).split() else ''}" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 <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>
a7436bb
to
64ec206
Compare
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" |
There was a problem hiding this comment.
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.
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.