GUI for Embedded

I am building a custom image using the yocto project. I would like to know the minimum components needed for my UI to come up.

I am using this as my reference image: http://git.toradex.com/cgit/meta-toradex-demos.git/tree/recipes-images/images/tdx-reference-multimedia-image.bb?h=dunfell-5.x.y.

I simply want my GUI to to start after necessary graphics components have been loaded.

Please advise.

Please, check it out our meta layer at github (https://github.com/TotalCross/meta-totalcross)

It was used for a lot of projects with Toradex

If I understand correctly.

All I need to do is add the following to my distro config: DISTRO_FEATURES_append = " opengl wayland".

And then add this to my image: inherit totalcross-app.

Basically I would be able to remove all this:

${@bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                         'weston weston-init weston-examples ${APP_LAUNCH_WAYLAND}', '', d)} \
    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', \
                         'weston-xwayland xterm', \
       bb.utils.contains('DISTRO_FEATURES', 'x11', '${APP_LAUNCH_X11}', '', d), d)} \
    \
APP_LAUNCH_WAYLAND ?= "wayland-qtdemo-launch-cinematicexperience"
APP_LAUNCH_WAYLAND_colibri-imx6ull ?= "wayland-qtdemo-launch-analogclock"
APP_LAUNCH_WAYLAND_colibri-imx7 ?= "wayland-qtdemo-launch-analogclock"
APP_LAUNCH_WAYLAND_colibri-imx7-emmc ?= "wayland-qtdemo-launch-analogclock"
APP_LAUNCH_WAYLAND_apalis-tk1 ?= "wayland-qtdemo-launch-qtsmarthome"

APP_LAUNCH_X11 ?= "x-window-qtcinematicexperience"
APP_LAUNCH_X11_colibri-imx6ull ?= "x-window-analogclock"
APP_LAUNCH_X11_colibri-imx7 ?= "x-window-analogclock"
APP_LAUNCH_X11_colibri-imx7-emmc ?= "x-window-analogclock"
APP_LAUNCH_X11_apalis-tk1 ?= "x-window-qtsmarthome"

Correct ?