]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-gpu-apitrace: add i.MX8MQ support
authorGary Bisson <gary.bisson@boundarydevices.com>
Wed, 11 Jul 2018 09:21:54 +0000 (11:21 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 11 Jul 2018 17:18:00 +0000 (14:18 -0300)
This is pretty much a copy of the recipe from meta-fsl-bsp-release.
The particularity of the i.MX8MQ is that it doesn't include a GPU2D and
therefore depending on virtual/libg2d isn't possible.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_7.1.0.bb

index 79ef6579304ab4327487d83803c88a7f240fe393..800841506492bdcd7660e350a147a15b1faebdea 100644 (file)
@@ -2,7 +2,7 @@
 SUMMARY = "Samples for OpenGL ES"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50"
-DEPENDS = "virtual/libg2d imx-gpu-viv zlib libpng procps"
+DEPENDS = "imx-gpu-viv zlib libpng procps"
 
 SRC_URI = "git://source.codeaurora.org/external/imx/apitrace-imx.git;protocol=https;branch=imx_7.1"
 SRCREV = "9281b2c2f2766caf3529df347289128470318537"
@@ -11,14 +11,27 @@ S = "${WORKDIR}/git"
 
 inherit cmake lib_package pkgconfig perlnative pythonnative
 
-EXTRA_OECMAKE += "-DENABLE_VIVANTE=ON -DENABLE_MULTIARCH=OFF"
-EXTRA_OECMAKE += \
-    "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DDISABLE_X11=ON', \
-        bb.utils.contains('DISTRO_FEATURES',     'x11', '', \
-                                                        '-DDISABLE_X11=ON', d), d)}"
+PACKAGECONFIG ??= ""
+PACKAGECONFIG_append = \
+    "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', \
+        bb.utils.contains('DISTRO_FEATURES',     'x11', ' x11', \
+                                                        '', d), d)}"
+PACKAGECONFIG_append_imxgpu2d = " vivante"
+# For 8M, which has 3D but no 2D, eglretrace is not available
+# on Wayland except through X11 and waffle.
+PACKAGECONFIG_IMXGPU3D = \
+    "${@bb.utils.contains('DISTRO_FEATURES', 'wayland x11', ' waffle x11 x11-egl', '', d)}"
+PACKAGECONFIG_IMXGPU3D_imxgpu2d = ""
+PACKAGECONFIG_append_imxgpu3d = "${PACKAGECONFIG_IMXGPU3D}"
+
+PACKAGECONFIG[multiarch] = "-DENABLE_MULTIARCH=ON,-DENABLE_MULTIARCH=OFF"
+PACKAGECONFIG[waffle] = "-DENABLE_WAFFLE=ON,-DENABLE_WAFFLE=OFF,waffle"
+PACKAGECONFIG[x11] = "-DDISABLE_X11=OFF,-DDISABLE_X11=ON"
+PACKAGECONFIG[x11-egl] = "-Dwaffle_has_x11_egl=ON,-Dwaffle_has_x11_egl=OFF"
+PACKAGECONFIG[vivante] = "-DENABLE_VIVANTE=ON,-DENABLE_VIVANTE=OFF,virtual/libg2d"
 
 FILES_${PN} = "${bindir} ${libdir}"
 FILES_${PN}-dbg += "${libdir}/*/*/.debug"
 
 PACKAGE_ARCH = "${MACHINE_SOCARCH}"
-COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx7ulp)"
+COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx7ulp|mx8mq)"