qtbase: Enable wayland knob when in distro features

Mimic the behavior from recipe proper here since we override
packageconfig defaults. With QT 6.7, qtbase built without wayland
support is not sufficient to build rest of QT components e.g. qtwayland
errors out during build/configure

    ERROR: Qt Wayland Client requires QtGui to be build with support for wayland

Therefore add it when wayland is in distro features.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-03-02 10:07:26 -08:00 committed by Oleksandr Kravchuk
parent 53484720ff
commit ff7b5099bc

View File

@ -40,6 +40,10 @@ PACKAGECONFIG_PLATFORM_EGLFS:mx8-nxp-bsp = " \
PACKAGECONFIG_PLATFORM:use-mainline-bsp = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'eglfs', d)}"
PACKAGECONFIG += " \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${PACKAGECONFIG_WAYLAND}', '', d)}"
PACKAGECONFIG_WAYLAND = "wayland"
PACKAGECONFIG += " \
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', '${PACKAGECONFIG_VULKAN}', '', d)}"
PACKAGECONFIG_VULKAN = ""