summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-10-05 15:43:10 -0500
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-10-11 22:01:08 +0000
commita9caf6ba0483a9f3eb25a27212993701c27ed9f2 (patch)
tree1da94223e1bc85530c9aeaf12fc26ec50a235681 /recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
parent79defb79a748429496042e6ed3e6b3002a69239e (diff)
downloadmeta-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.inc15
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
69inherit fsl-eula-unpack 69inherit fsl-eula-unpack
70 70
71SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" 71SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \
72 file://imx_icd.json"
72 73
73PACKAGECONFIG ?= "" 74PACKAGECONFIG ?= ""
74 75
@@ -177,7 +178,8 @@ IMX_SOC:mx8mn-nxp-bsp = "mx8mn"
177IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" 178IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp"
178 179
179LIBVULKAN_VERSION_MAJOR = "1" 180LIBVULKAN_VERSION_MAJOR = "1"
180LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.1" 181LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.1"
182LIBVULKAN_API_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.182"
181 183
182do_install () { 184do_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"
342RDEPENDS:libgbm-imx:append = " libdrm" 348RDEPENDS:libgbm-imx:append = " libdrm"
343INSANE_SKIP:libgbm-imx += "dev-so" 349INSANE_SKIP:libgbm-imx += "dev-so"
344 350
345FILES:libvulkan-imx = "${libdir}/libvulkan_VSI${REALSOLIBS} ${libdir}/libSPIRV_viv${SOLIBS}" 351FILES:libvulkan-imx = "\
352 ${libdir}/libvulkan_VSI${REALSOLIBS} \
353 ${libdir}/libSPIRV_viv${SOLIBS} \
354 ${sysconfdir}/vulkan"
346FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" 355FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}"
347 356
348FILES:libopenvx-imx = " \ 357FILES:libopenvx-imx = " \