From ff7b5099bcb7a5d723c1808c2c15e42b5ed030f7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 2 Mar 2024 10:07:26 -0800 Subject: [PATCH] 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 --- dynamic-layers/qt6-layer/recipes-qt/qt6/qtbase_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dynamic-layers/qt6-layer/recipes-qt/qt6/qtbase_%.bbappend b/dynamic-layers/qt6-layer/recipes-qt/qt6/qtbase_%.bbappend index fe2cd9e30..1c51fc09d 100644 --- a/dynamic-layers/qt6-layer/recipes-qt/qt6/qtbase_%.bbappend +++ b/dynamic-layers/qt6-layer/recipes-qt/qt6/qtbase_%.bbappend @@ -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 = ""