diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2022-09-22 13:16:18 -0500 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-09-23 18:38:14 +0000 |
commit | 19cab66e69a2e95728d18bce0949eed885e16071 (patch) | |
tree | 1400a0315c798a5e56566c1339155356924bc2ca /recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |
parent | 86030a339e6c09f3d08828de757841e5dd25c9e7 (diff) | |
download | meta-freescale-19cab66e69a2e95728d18bce0949eed885e16071.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>
(cherry picked from commit 09e2ce31195867024d271eefea9891b94b7d20dd)
Diffstat (limited to 'recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc')
-rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | 38 |
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 ?= "" | |||
71 | PACKAGECONFIG[valgrind] = "" | 71 | PACKAGECONFIG[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 |
74 | PACKAGES =+ "libclc-imx libclc-imx-dev \ | 74 | PACKAGES =+ " \ |
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 | " |
93 | PACKAGES_GBM = "" | 93 | |
94 | PACKAGES_GBM:mx8-nxp-bsp = "libgbm-imx libgbm-imx-dev" | 94 | PACKAGES_GBM = "" |
95 | PACKAGES_GBM:mx8-nxp-bsp = "libgbm-imx libgbm-imx-dev" | ||
96 | |||
97 | PACKAGES_OPENCL = "libopencl-imx libopencl-imx-dev libclc-imx libclc-imx-dev" | ||
98 | PACKAGES_OPENCL:mx7-nxp-bsp = "" | ||
99 | PACKAGES_OPENCL:mx8mm-nxp-bsp = "" | ||
100 | |||
101 | PACKAGES_OPENVX = "" | ||
102 | PACKAGES_OPENVX:mx8qm-nxp-bsp = "libopenvx-imx libopenvx-imx-dev" | ||
103 | |||
95 | PACKAGES_VULKAN = "" | 104 | PACKAGES_VULKAN = "" |
96 | PACKAGES_VULKAN:aarch64 = "libvulkan-imx libvulkan-imx-dev" | 105 | PACKAGES_VULKAN:aarch64 = "libvulkan-imx libvulkan-imx-dev" |
97 | PACKAGES_VULKAN:mx8mm-nxp-bsp = "" | 106 | PACKAGES_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 |