diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2022-10-05 15:43:10 -0500 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-10-11 22:01:08 +0000 |
commit | a9caf6ba0483a9f3eb25a27212993701c27ed9f2 (patch) | |
tree | 1da94223e1bc85530c9aeaf12fc26ec50a235681 /recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |
parent | 79defb79a748429496042e6ed3e6b3002a69239e (diff) | |
download | meta-freescale-a9caf6ba0483a9f3eb25a27212993701c27ed9f2.tar.gz |
imx-gpu-viv: Install missing Vulkan ICD config file
Add the missing json file for the i.MX vulkan implementation.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 10318d49308ddb09a1f35ce33134d8cf76870ae3)
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 | 15 |
1 files changed, 12 insertions, 3 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 4cbb7ba6..5c4b68cc 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |||
@@ -68,7 +68,8 @@ PE = "1" | |||
68 | 68 | ||
69 | inherit fsl-eula-unpack | 69 | inherit fsl-eula-unpack |
70 | 70 | ||
71 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" | 71 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \ |
72 | file://imx_icd.json" | ||
72 | 73 | ||
73 | PACKAGECONFIG ?= "" | 74 | PACKAGECONFIG ?= "" |
74 | 75 | ||
@@ -177,7 +178,8 @@ IMX_SOC:mx8mn-nxp-bsp = "mx8mn" | |||
177 | IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" | 178 | IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" |
178 | 179 | ||
179 | LIBVULKAN_VERSION_MAJOR = "1" | 180 | LIBVULKAN_VERSION_MAJOR = "1" |
180 | LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.1" | 181 | LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.1" |
182 | LIBVULKAN_API_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.182" | ||
181 | 183 | ||
182 | do_install () { | 184 | do_install () { |
183 | install -d ${D}${libdir} | 185 | install -d ${D}${libdir} |
@@ -271,6 +273,10 @@ do_install () { | |||
271 | set +f | 273 | set +f |
272 | rm -rf ${D}$f | 274 | rm -rf ${D}$f |
273 | done | 275 | done |
276 | else | ||
277 | install -Dm 0644 ${WORKDIR}/imx_icd.json ${D}${sysconfdir}/vulkan/icd.d/imx_icd.json | ||
278 | sed -i "s,%libdir%,${libdir}," ${D}${sysconfdir}/vulkan/icd.d/imx_icd.json | ||
279 | sed -i "s,%api_version%,${LIBVULKAN_API_VERSION}," ${D}${sysconfdir}/vulkan/icd.d/imx_icd.json | ||
274 | fi | 280 | fi |
275 | fi | 281 | fi |
276 | 282 | ||
@@ -342,7 +348,10 @@ FILES:libgbm-imx-dev = "${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | |||
342 | RDEPENDS:libgbm-imx:append = " libdrm" | 348 | RDEPENDS:libgbm-imx:append = " libdrm" |
343 | INSANE_SKIP:libgbm-imx += "dev-so" | 349 | INSANE_SKIP:libgbm-imx += "dev-so" |
344 | 350 | ||
345 | FILES:libvulkan-imx = "${libdir}/libvulkan_VSI${REALSOLIBS} ${libdir}/libSPIRV_viv${SOLIBS}" | 351 | FILES:libvulkan-imx = "\ |
352 | ${libdir}/libvulkan_VSI${REALSOLIBS} \ | ||
353 | ${libdir}/libSPIRV_viv${SOLIBS} \ | ||
354 | ${sysconfdir}/vulkan" | ||
346 | FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" | 355 | FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" |
347 | 356 | ||
348 | FILES:libopenvx-imx = " \ | 357 | FILES:libopenvx-imx = " \ |