Skip to contentSkip to conversation

packagegroup-fsl-tools-gpu-external: Use the new i.MX feature overrides

PATCH New Fabio Berton 1 participant 6 messages Oct 26, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 packagegroup-fsl-tools-gpu-external: Use the new i.MX feature overrides

Configure SOC_GPU_TOOLS_* variables using new i.MX overrides and install packages based on existence of 2D and/or 3D hardware.

---
 .../packagegroup-fsl-tools-gpu-external.bb         | 28 +++++++---------------
 1 file changed, 8 insertions(+), 20 deletions(-)
recipes-fsl/packagegroups/packagegroup-fsl-tools-gpu-external.bb +8 -20
index 92d0e76..e12c801 100644
@@ -10,32 +10,20 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup
 
-SOC_GPU_TOOLS_X11 = " \
-    mesa-demos \
-    glmark2 \
-"
-
-SOC_GPU_TOOLS_X11_append_mx6q  = " eglinfo-x11 gtkperf glcompbench"
-SOC_GPU_TOOLS_X11_append_mx6dl = " eglinfo-x11 gtkperf glcompbench"
-SOC_GPU_TOOLS_X11_append_mx6sx = " eglinfo-x11 gtkperf glcompbench"
-SOC_GPU_TOOLS_X11_append_mx6sl = " gtkperf"
+SOC_GPU_TOOLS_X11 = ""
+SOC_GPU_TOOLS_X11_imxgpu2d = " mesa-demos glmark2 gtkperf"
+SOC_GPU_TOOLS_X11_append_imxgpu3d = " eglinfo-x11 glcompbench"
 
 SOC_GPU_TOOLS_FB = ""
-SOC_GPU_TOOLS_FB_mx6q  = "eglinfo-fb"
-SOC_GPU_TOOLS_FB_mx6dl = "eglinfo-fb"
-SOC_GPU_TOOLS_FB_mx6sx = "eglinfo-fb"
+SOC_GPU_TOOLS_FB_imxgpu3d  = "eglinfo-fb"
 
 SOC_GPU_TOOLS_WAYLAND = ""
-SOC_GPU_TOOLS_WAYLAND_mx6q  = "mesa-demos glmark2"
-SOC_GPU_TOOLS_WAYLAND_mx6dl = "mesa-demos glmark2"
-SOC_GPU_TOOLS_WAYLAND_mx6sx = "mesa-demos glmark2"
-SOC_GPU_TOOLS_WAYLAND_mx6sl = "mesa-demos"
+SOC_GPU_TOOLS_WAYLAND_imxgpu2d = "mesa-demos"
+SOC_GPU_TOOLS_WAYLAND_append_imxgpu3d = " glmark2"
 
 SOC_GPU_TOOLS_XWAYLAND = ""
-SOC_GPU_TOOLS_XWAYLAND_mx6q  = "mesa-demos gtkperf glmark2"
-SOC_GPU_TOOLS_XWAYLAND_mx6dl = "mesa-demos gtkperf glmark2"
-SOC_GPU_TOOLS_XWAYLAND_mx6sx = "mesa-demos gtkperf glmark2"
-SOC_GPU_TOOLS_XWAYLAND_mx6sl = "mesa-demos gtkperf"
+SOC_GPU_TOOLS_XWAYLAND_imxgpu2d = "mesa-demos gtkperf"
+SOC_GPU_TOOLS_XWAYLAND_append_imxgpu3d = " glmark2"
 
 RDEPENDS_${PN} = " \
     ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland", "${SOC_GPU_TOOLS_XWAYLAND}", \
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/6 packagegroup-fsl-tools-gpu-external: Standardize SOC_TOOLS_GPU_ variables

Replace SOC_GPU_TOOLS_* with SOC_TOOLS_GPU_* to make all variables with pattern SOC_TOOLS_GPU.

---
 .../packagegroup-fsl-tools-gpu-external.bb         | 30 +++++++++++-----------
 1 file changed, 15 insertions(+), 15 deletions(-)
recipes-fsl/packagegroups/packagegroup-fsl-tools-gpu-external.bb +15 -15
index e12c801..26fe387 100644
@@ -10,24 +10,24 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup
 
-SOC_GPU_TOOLS_X11 = ""
-SOC_GPU_TOOLS_X11_imxgpu2d = " mesa-demos glmark2 gtkperf"
-SOC_GPU_TOOLS_X11_append_imxgpu3d = " eglinfo-x11 glcompbench"
+SOC_TOOLS_GPU_X11 = ""
+SOC_TOOLS_GPU_X11_imxgpu2d = " mesa-demos glmark2 gtkperf"
+SOC_TOOLS_GPU_X11_append_imxgpu3d = " eglinfo-x11 glcompbench"
 
-SOC_GPU_TOOLS_FB = ""
-SOC_GPU_TOOLS_FB_imxgpu3d  = "eglinfo-fb"
+SOC_TOOLS_GPU_FB = ""
+SOC_TOOLS_GPU_FB_imxgpu3d  = "eglinfo-fb"
 
-SOC_GPU_TOOLS_WAYLAND = ""
-SOC_GPU_TOOLS_WAYLAND_imxgpu2d = "mesa-demos"
-SOC_GPU_TOOLS_WAYLAND_append_imxgpu3d = " glmark2"
+SOC_TOOLS_GPU_WAYLAND = ""
+SOC_TOOLS_GPU_WAYLAND_imxgpu2d = "mesa-demos"
+SOC_TOOLS_GPU_WAYLAND_append_imxgpu3d = " glmark2"
 
-SOC_GPU_TOOLS_XWAYLAND = ""
-SOC_GPU_TOOLS_XWAYLAND_imxgpu2d = "mesa-demos gtkperf"
-SOC_GPU_TOOLS_XWAYLAND_append_imxgpu3d = " glmark2"
+SOC_TOOLS_GPU_XWAYLAND = ""
+SOC_TOOLS_GPU_XWAYLAND_imxgpu2d = "mesa-demos gtkperf"
+SOC_TOOLS_GPU_XWAYLAND_append_imxgpu3d = " glmark2"
 
 RDEPENDS_${PN} = " \
-    ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland", "${SOC_GPU_TOOLS_XWAYLAND}", \
-       bb.utils.contains("DISTRO_FEATURES",     "wayland", "${SOC_GPU_TOOLS_WAYLAND}", \
-       bb.utils.contains("DISTRO_FEATURES",         "x11", "${SOC_GPU_TOOLS_X11}", \
-                                                           "${SOC_GPU_TOOLS_FB}", d), d), d)} \
+    ${@bb.utils.contains("DISTRO_FEATURES", "x11 wayland", "${SOC_TOOLS_GPU_XWAYLAND}", \
+       bb.utils.contains("DISTRO_FEATURES",     "wayland", "${SOC_TOOLS_GPU_WAYLAND}", \
+       bb.utils.contains("DISTRO_FEATURES",         "x11", "${SOC_TOOLS_GPU_X11}", \
+                                                           "${SOC_TOOLS_GPU_FB}", d), d), d)} \
 "
Signature · 1 line
2.1.4
#2 lore raw

PATCH 3/6 packagegroup-fsl-tools-gpu: Use the new i.MX feature overrides

In reply to Fabio Berton

Configure SOC_TOOL_GPU variable using new i.MX overrides and install packages based on existence of 2D and/or 3D hardware.

---
 .../packagegroups/packagegroup-fsl-tools-gpu.bb      | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
recipes-fsl/packagegroups/packagegroup-fsl-tools-gpu.bb +6 -14
index cb03b77..b34f4ee 100644
@@ -11,23 +11,10 @@ inherit packagegroup
 
 SOC_TOOLS_GPU = ""
 
-SOC_TOOLS_GPU_IMX6QDLSX = " \
-    imx-gpu-viv-g2d \
-    imx-gpu-sdk \
-    imx-gpu-viv-tools \
-    imx-gpu-viv-tools-apitrace \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', \
-       bb.utils.contains('DISTRO_FEATURES',     'x11', 'xserver-xorg-extension-viv-autohdmi', \
-                                                       '', d), d)} \
-"
-SOC_TOOLS_GPU_mx6q  = "${SOC_TOOLS_GPU_IMX6QDLSX}"
-SOC_TOOLS_GPU_mx6dl = "${SOC_TOOLS_GPU_IMX6QDLSX}"
-SOC_TOOLS_GPU_mx6sx = "${SOC_TOOLS_GPU_IMX6QDLSX}"
-
 # FIXME: fsl-gpu-sdk is not supported for i.MX6 SoloLite due to lack of
 # OpenVG support and is intended to add in future release. 
 # i.MX6 SoloLite do not support apitrace because of its dependency on gles2.
-SOC_TOOLS_GPU_mx6sl = " \
+SOC_TOOLS_GPU_imxgpu2d = " \
     imx-gpu-viv-g2d \
     imx-gpu-viv-tools \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', \
@@ -35,6 +22,11 @@ SOC_TOOLS_GPU_mx6sl = " \
                                                        '', d), d)} \
 "
 
+SOC_TOOLS_GPU_append_imxgpu3d = " \
+    imx-gpu-sdk \
+    imx-gpu-viv-tools-apitrace \
+"
+
 RDEPENDS_${PN} = " \
     ${SOC_TOOLS_GPU} \
 "
Signature · 1 line
2.1.4
#3 lore raw

PATCH 4/6 packagegroup-fsl-tools-testapps: Use the new i.MX feature overrides

In reply to Fabio Berton

Configure SOC_TOOLS_TEST variable using new i.MX overrides and install packages based on existence of 2D and/or 3D hardware. Remove clutter-1.0-examples from RDEPENDS for GPU 2D-only SoCs.

---
 .../packagegroups/packagegroup-fsl-tools-testapps.bb     | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
recipes-fsl/packagegroups/packagegroup-fsl-tools-testapps.bb +7 -9
index 4f8eb31..91965a8 100644
@@ -11,14 +11,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 inherit packagegroup
 
 SOC_TOOLS_TEST = ""
-SOC_TOOLS_TEST_vf  = "imx-test"
-SOC_TOOLS_TEST_mx6 = "imx-test"
-SOC_TOOLS_TEST_mx6ul = "imx-test"
-SOC_TOOLS_TEST_mx7   = "imx-test"
-SOC_TOOLS_TEST_append_mx6q  = " imx-gpu-viv-demos"
-SOC_TOOLS_TEST_append_mx6dl = " imx-gpu-viv-demos"
-SOC_TOOLS_TEST_append_mx6sx = " imx-gpu-viv-demos"
-SOC_TOOLS_TEST_append_mx6sl = " imx-gpu-viv-demos"
+SOC_TOOLS_TEST_imxpxp  = "imx-test"
+SOC_TOOLS_TEST_imxgpu2d  = "imx-test imx-gpu-viv-demos"
 
 RDEPENDS_${PN} = " \
     alsa-utils \
@@ -46,4 +40,8 @@ RDEPENDS_${PN} = " \
 
 # FIXME: i.MX6SL cannot use mesa for Graphics and it lacks GL support,
 #        so for now we skip it.
-RDEPENDS_${PN}_remove_mx6sl = "clutter-1.0-examples"
+RDEPENDS_IMX_TO_REMOVE = ""
+RDEPENDS_IMX_TO_REMOVE_imxgpu2d = "clutter-1.0-examples"
+RDEPENDS_IMX_TO_REMOVE_imxgpu3d = ""
+
+RDEPENDS_${PN}_remove = "${RDEPENDS_IMX_TO_REMOVE}"
Signature · 1 line
2.1.4
#4 lore raw

PATCH 5/6 imx-gpu-sdk: Use the new i.MX feature overrides

In reply to Fabio Berton

Configure DEPENDS variable using new i.MX overrides and install packages based on existence of 2D and/or 3D hardware.
Change do_compile and do_install tasks to run build.sh script based on existence of 2D and/or 3D hardware.

---
 recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb +6 -8
index 6fdb105..6b80baa 100644
@@ -3,10 +3,8 @@ DESCRIPTION = "Set of sample applications for i.MX GPU"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d4f548f93b5fe0ee2bc86758c344412d"
 DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} assimp devil gstreamer1.0 gstreamer1.0-plugins-base"
-DEPENDS_append_mx6q = " virtual/libgles2"
-DEPENDS_append_mx6dl = " virtual/libgles2"
-DEPENDS_append_mx6sx = " virtual/libgles2"
-DEPENDS_append_mx6sl = " virtual/libopenvg"
+DEPENDS_append_imxgpu2d = " virtual/libopenvg"
+DEPENDS_append_imxgpu3d = " virtual/libgles2"
 
 X11_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xrandr', '', d)}"
 WL_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
@@ -28,14 +26,14 @@ SRC_URI += "file://Add-missing-cmath-include.patch"
 BACKEND = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'X11', \
                     bb.utils.contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}"
 
-IS_MX6SL = "0"
-IS_MX6SL_mx6sl = "1"
+IMXGPU = "2d"
+IMXGPU_imxgpu3d = "3d"
 
 do_compile () {
     export FSL_GRAPHICS_SDK=${S}
     export FSL_PLATFORM_NAME=Yocto
     export ROOTFS=${STAGING_DIR_HOST}
-    if [ "${IS_MX6SL}" = "0" ]; then
+    if [ "${IMXGPU}" = "3d" ]; then
         ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
     else
         ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
@@ -46,7 +44,7 @@ do_install () {
     export FSL_GRAPHICS_SDK=${S}
     export FSL_PLATFORM_NAME=Yocto
     install -d "${D}/opt/${PN}"
-    if [ "${IS_MX6SL}" = "0" ]; then
+    if [ "${IMXGPU}" = "3d" ]; then
         ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
     else
         ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
Signature · 1 line
2.1.4
#5 lore raw

PATCH 6/6 fsl-image-multimedia: Use the new i.MX feature overrides

In reply to Fabio Berton

Remove package clutter-1.0-examples for GPU 2D-only SoCs.

---
 recipes-fsl/images/fsl-image-multimedia.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-fsl/images/fsl-image-multimedia.bb +5 -1
index 3acada6..f91475c 100644
@@ -23,4 +23,8 @@ CORE_IMAGE_EXTRA_INSTALL += " \
                          'weston-xwayland xterm', '', d)} \
 "
 
-CORE_IMAGE_EXTRA_INSTALL_remove_mx6sl = "clutter-1.0-examples"
+PACKAGE_IMX_TO_REMOVE = ""
+PACKAGE_IMX_TO_REMOVE_imxgpu2d = "clutter-1.0-examples"
+PACKAGE_IMX_TO_REMOVE_imxgpu3d = ""
+
+CORE_IMAGE_EXTRA_INSTALL_remove = "${PACKAGE_IMX_TO_REMOVE}"
Signature · 1 line
2.1.4