summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2021-10-31 09:24:28 -0500
committerTom Hochstein <tom.hochstein@nxp.com>2021-10-31 09:46:02 -0500
commitacf0471b9436d2992aacadb9880042bfd269473d (patch)
treecf934708a569d3c1c5952a99cb23533d0f07c11f /recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
parent90cccc6284815383067526fcd1cb36ebc92ab569 (diff)
downloadmeta-freescale-acf0471b9436d2992aacadb9880042bfd269473d.tar.gz
imx-gpu-viv: Expose Vulkan library version
Expose the Vulkan library version so NXP can easily override in their layer. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
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.inc7
1 files changed, 5 insertions, 2 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 872fef55..548394d1 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -153,6 +153,9 @@ GLES3_HEADER_REMOVALS:mx8mm = "gl31.h gl32.h"
153GLES3_HEADER_REMOVALS:mx8qxp = "" 153GLES3_HEADER_REMOVALS:mx8qxp = ""
154GLES3_HEADER_REMOVALS:mx8qm = "" 154GLES3_HEADER_REMOVALS:mx8qm = ""
155 155
156LIBVULKAN_VERSION_MAJOR = "1"
157LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.1.6"
158
156do_install () { 159do_install () {
157 install -d ${D}${libdir} 160 install -d ${D}${libdir}
158 install -d ${D}${includedir} 161 install -d ${D}${includedir}
@@ -224,8 +227,8 @@ do_install () {
224 if [ "${IS_MX8}" = "1" ]; then 227 if [ "${IS_MX8}" = "1" ]; then
225 # Rename the vulkan implementation library which is wrapped by the vulkan-loader 228 # Rename the vulkan implementation library which is wrapped by the vulkan-loader
226 # library of the same name 229 # library of the same name
227 MAJOR=1 230 MAJOR=${LIBVULKAN_VERSION_MAJOR}
228 FULL=$MAJOR.1.6 231 FULL=${LIBVULKAN_VERSION}
229 mv ${D}${libdir}/libvulkan.so.$FULL ${D}${libdir}/libvulkan_VSI.so.$FULL 232 mv ${D}${libdir}/libvulkan.so.$FULL ${D}${libdir}/libvulkan_VSI.so.$FULL
230 patchelf --set-soname libvulkan_VSI.so.$MAJOR ${D}${libdir}/libvulkan_VSI.so.$FULL 233 patchelf --set-soname libvulkan_VSI.so.$MAJOR ${D}${libdir}/libvulkan_VSI.so.$FULL
231 rm ${D}${libdir}/libvulkan.so.$MAJOR ${D}${libdir}/libvulkan.so 234 rm ${D}${libdir}/libvulkan.so.$MAJOR ${D}${libdir}/libvulkan.so