summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-09-22 13:16:18 -0500
committerTom Hochstein <tom.hochstein@nxp.com>2022-09-22 19:43:27 -0500
commit09e2ce31195867024d271eefea9891b94b7d20dd (patch)
tree52dd89b02da6f86af8778d8be1c5b60535b8063c /recipes-graphics/imx-gpu-viv
parent6ea6800903c149b9c6297a40896ca206f74fa1cd (diff)
downloadmeta-freescale-09e2ce31195867024d271eefea9891b94b7d20dd.tar.gz
imx-gpu-viv: Remove OpenCL and OpenVX from unsupported SOCs
OpenCL and OpenVX components are provided for SOCs that are not supported. Fix this by removing them from the PACKAGES variable and from the install. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-graphics/imx-gpu-viv')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc38
1 files changed, 30 insertions, 8 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 6cc636f0..474ddf35 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -71,13 +71,13 @@ PACKAGECONFIG ?= ""
71PACKAGECONFIG[valgrind] = "" 71PACKAGECONFIG[valgrind] = ""
72 72
73# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below 73# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below
74PACKAGES =+ "libclc-imx libclc-imx-dev \ 74PACKAGES =+ " \
75 libgl-imx libgl-imx-dev \ 75 libgl-imx libgl-imx-dev \
76 libgles1-imx libgles1-imx-dev \ 76 libgles1-imx libgles1-imx-dev \
77 libgles2-imx libgles2-imx-dev \ 77 libgles2-imx libgles2-imx-dev \
78 libgles3-imx-dev \ 78 libgles3-imx-dev \
79 libglslc-imx libglslc-imx-dev \ 79 libglslc-imx libglslc-imx-dev \
80 libopencl-imx libopencl-imx-dev \ 80 ${PACKAGES_OPENCL} \
81 libopenvg-imx libopenvg-imx-dev \ 81 libopenvg-imx libopenvg-imx-dev \
82 libvdk-imx libvdk-imx-dev \ 82 libvdk-imx libvdk-imx-dev \
83 libegl-imx libegl-imx-dev \ 83 libegl-imx libegl-imx-dev \
@@ -87,11 +87,20 @@ PACKAGES =+ "libclc-imx libclc-imx-dev \
87 imx-gpu-viv-tools \ 87 imx-gpu-viv-tools \
88 imx-gpu-viv-demos \ 88 imx-gpu-viv-demos \
89 ${PACKAGES_VULKAN} \ 89 ${PACKAGES_VULKAN} \
90 libopenvx-imx libopenvx-imx-dev \ 90 ${PACKAGES_OPENVX} \
91 libnn-imx \ 91 libnn-imx \
92" 92"
93PACKAGES_GBM = "" 93
94PACKAGES_GBM:mx8-nxp-bsp = "libgbm-imx libgbm-imx-dev" 94PACKAGES_GBM = ""
95PACKAGES_GBM:mx8-nxp-bsp = "libgbm-imx libgbm-imx-dev"
96
97PACKAGES_OPENCL = "libopencl-imx libopencl-imx-dev libclc-imx libclc-imx-dev"
98PACKAGES_OPENCL:mx7-nxp-bsp = ""
99PACKAGES_OPENCL:mx8mm-nxp-bsp = ""
100
101PACKAGES_OPENVX = ""
102PACKAGES_OPENVX:mx8qm-nxp-bsp = "libopenvx-imx libopenvx-imx-dev"
103
95PACKAGES_VULKAN = "" 104PACKAGES_VULKAN = ""
96PACKAGES_VULKAN:aarch64 = "libvulkan-imx libvulkan-imx-dev" 105PACKAGES_VULKAN:aarch64 = "libvulkan-imx libvulkan-imx-dev"
97PACKAGES_VULKAN:mx8mm-nxp-bsp = "" 106PACKAGES_VULKAN:mx8mm-nxp-bsp = ""
@@ -218,9 +227,22 @@ do_install () {
218 cp ${S}/gpu-core/usr/lib/fb/libVDK.so.1.2.0 ${D}${libdir}/libVDK-fb.so.1.2.0 227 cp ${S}/gpu-core/usr/lib/fb/libVDK.so.1.2.0 ${D}${libdir}/libVDK-fb.so.1.2.0
219 fi 228 fi
220 229
221 # Install Vendor ICDs for OpenCL's installable client driver loader (ICDs Loader) 230 if [ -z "${PACKAGES_OPENCL}" ]; then
222 install -d ${D}${sysconfdir}/OpenCL/vendors/ 231 for f in ${FILES:libopencl-imx} ${FILES:libopencl-imx-dev} ${FILES:libclc-imx} ${FILES:libclc-imx-dev}; do
223 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd 232 rm -rf ${D}$f
233 done
234 rm -rf ${D}/opt/viv_samples/cl11
235 else
236 # Install Vendor ICDs for OpenCL's installable client driver loader (ICDs Loader)
237 install -d ${D}${sysconfdir}/OpenCL/vendors/
238 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd
239 fi
240
241 if [ -z "${PACKAGES_OPENVX}" ]; then
242 for f in ${FILES:libopenvx-imx} ${FILES:libopenvx-imx-dev}; do
243 rm -rf ${D}$f
244 done
245 fi
224 246
225 if [ "${IS_MX8}" = "1" ]; then 247 if [ "${IS_MX8}" = "1" ]; then
226 # Rename the vulkan implementation library which is wrapped by the vulkan-loader 248 # Rename the vulkan implementation library which is wrapped by the vulkan-loader