aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2020-05-26 14:39:47 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2020-06-05 10:05:48 -0300
commit626e271bd66d3320c5a386c43979a27117c9bd87 (patch)
tree5ba2603ce2a80fbc324e9045abeebaf0eb677027
parent22738a7e7d0f3b06d9b793a2e5fe3515c1668cb2 (diff)
downloadmeta-freescale-626e271bd66d3320c5a386c43979a27117c9bd87.tar.gz
meta-freescale-626e271bd66d3320c5a386c43979a27117c9bd87.tar.bz2
meta-freescale-626e271bd66d3320c5a386c43979a27117c9bd87.zip
qtbase: Add i.MX 8 configuration
- 8M Quad has 3D but no 2D, so fix the override for GPU patches - Add gbm and kms for all i.MX 8 with GPU - Add vulkan for all i.MX 8 with GPU except 8M Mini Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit b37a332b130389d8f4429fbb9d87d26b65cfc386)
-rw-r--r--dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend17
1 files changed, 14 insertions, 3 deletions
diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
index 68eab915..8c2a5ea9 100644
--- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
+++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
@@ -5,7 +5,7 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-SRC_URI_append_imxgpu2d = " \
+SRC_URI_append_imxgpu = " \
file://0014-Add-IMX-GPU-support.patch \
file://0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch \
"
@@ -16,9 +16,14 @@ SRC_URI_append_imxgpu3d = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '${SRC_URI_APPEND_3D_NOT_X11}', d)} \
"
+PACKAGECONFIG_GL_IMX_GPU = ""
+PACKAGECONFIG_GL_IMX_GPU_mx8 = "gbm kms"
+
PACKAGECONFIG_GL_imxpxp = "gles2"
-PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
-PACKAGECONFIG_GL_imxgpu3d = "gles2"
+PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)} \
+ ${PACKAGECONFIG_GL_IMX_GPU}"
+PACKAGECONFIG_GL_imxgpu3d = "gles2 \
+ ${PACKAGECONFIG_GL_IMX_GPU}"
PACKAGECONFIG_GL_append_use-mainline-bsp = " gbm kms"
PACKAGECONFIG_PLATFORM = ""
@@ -29,3 +34,9 @@ PACKAGECONFIG_PLATFORM_imxgpu3d = " \
'eglfs', d), d)}"
PACKAGECONFIG_PLATFORM_use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'eglfs', d)}"
PACKAGECONFIG += "${PACKAGECONFIG_PLATFORM}"
+
+PACKAGECONFIG_VULKAN_IMX_GPU = ""
+PACKAGECONFIG_VULKAN_IMX_GPU_mx8 = "vulkan"
+PACKAGECONFIG_VULKAN_IMX_GPU_mx8mm = ""
+PACKAGECONFIG_VULKAN_imxgpu = "${PACKAGECONFIG_VULKAN_IMX_GPU}"
+PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', '${PACKAGECONFIG_VULKAN}', '', d)}"