Open daniel-dnil opened 2 years ago
@daniel-dnil I think choice to use userland
graphics for eglf case is not a hard requirement. So perhaps we should patch eglfs.inc
to remove DISABLE_VC4GRAPHICS = "1"
and use mesa graphics instead for eglfs case as well.
First of all, compliments on the Yocto/OE setup done here. I think the design goals and how you've setup the build enviroment makes a lot of sense.
Been testing some different setups using a raspberrypi4-64 target, default settings works fine and I can build and boot a yoe-qt5-image. On master branch @ tag: 2021.12, I swapped from the default YOE_PROFILE = "yoe-glibc-systemd-wayland" to YOE_PROFILE = "yoe-glibc-systemd-eglfs" and attempting to build a new yoe-qt5-image, this results in a build failure in mesa-gl:
I'm not quite sure why this is, there seems to be two copies of drm.h when building mesa-gl but none of them included in the search path of the compiler;
The source of this seems to be that in
sources/meta-yoe/conf/distro/eglfs.inc
the VC4 graphics are disabled and userland graphics are used instead;This then further changes the provider of libgl to mesa-gl instead of mesa in
sources/meta-raspberrypi/conf/machine/include/rpi-default-providers.inc
. If I comment out theDISABLE_VC4GRAPHICS = "1"
in eglfs.inc the yoe-qt5-image image builds again since now mesa is used instead of mesa-gl again. Image also appears to work, at least the Qt demo apps works using-platform eglfs
.Not quite sure how this these mesa, mesa-gl, userland VC4 modules are supposed to work together so I'm at a loss of the proper fix here?