summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc15
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json7
2 files changed, 19 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 = " \
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json
new file mode 100644
index 00000000..1194a0fb
--- /dev/null
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json
@@ -0,0 +1,7 @@
1{
2 "file_format_version": "1.0.0",
3 "ICD": {
4 "library_path": "%libdir%/libvulkan_VSI.so",
5 "api_version": "%api_version%"
6 }
7}