From 41596bb21b54916984b958db659ca22fccd9e08d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 14 Jun 2021 18:51:14 -0700 Subject: [PATCH] qtbase: Add needed bbappend for rk3399 SOCs This ensures that DISTRO_FEATURES can translate correctly for qtbase PACKAGECONFIGs and we can get right platforms enabled. Signed-off-by: Khem Raj --- conf/layer.conf | 5 +++++ .../qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend diff --git a/conf/layer.conf b/conf/layer.conf index b263b6f..f97fb69 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -16,3 +16,8 @@ BBFILE_PRIORITY_rockchip = "1" LAYERVERSION_rockchip = "1" LAYERSERIES_COMPAT_rockchip = "hardknott" LAYERDEPENDS_rockchip = "core meta-arm" + +BBFILES_DYNAMIC += " \ + qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bb \ + qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bbappend \ +" diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend new file mode 100644 index 0000000..a977229 --- /dev/null +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend @@ -0,0 +1,9 @@ +PACKAGECONFIG_GL_rk3399 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'gl', \ + bb.utils.contains('DISTRO_FEATURES', 'opengl', 'eglfs gles2', \ + '', d), d)}" +PACKAGECONFIG_GL_append_rk3399 = " kms gbm" + +PACKAGECONFIG_FONTS_rk3399 = "fontconfig" + +PACKAGECONFIG_append_rk3399 = " libinput examples tslib xkbcommon" +PACKAGECONFIG_remove_rk3399 = "tests"