]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-gpu-viv: Install SOC-specific binaries 912/head
authorTom Hochstein <tom.hochstein@nxp.com>
Sun, 31 Oct 2021 14:22:53 +0000 (09:22 -0500)
committerTom Hochstein <tom.hochstein@nxp.com>
Mon, 1 Nov 2021 14:10:15 +0000 (09:10 -0500)
The archive now contains SOC-specific binaries.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 3e1403807107397d8c07508835e9efdde4ff537f)

recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc

index 325d36d7053a78d3f18d46cfa00f6885efccd608..14912e1b9d457a4f04e8fa6121313944bb8e7511 100644 (file)
@@ -147,6 +147,13 @@ PACKAGE_FP_TYPE = "hardfp"
 HAS_GBM     = "false"
 HAS_GBM:mx8 = "true"
 
+IMX_SOC        = "IMX_SOC_NOT_SET"
+IMX_SOC:mx8qm  = "mx8qm"
+IMX_SOC:mx8mp  = "mx8mp"
+IMX_SOC:mx8mq  = "mx8mq"
+IMX_SOC:mx8qxp = "mx8qxp"
+IMX_SOC:mx8mn  = "mx8mn"
+IMX_SOC:mx8ulp = "mx8ulp"
 
 LIBVULKAN_VERSION_MAJOR = "1"
 LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.1.6"
@@ -164,6 +171,10 @@ do_install () {
     # Use vulkan header from vulkan-headers recipe to support vkmark
     rm -rf ${D}${includedir}/vulkan/
 
+    if [ -d ${S}/gpu-core/usr/lib/${IMX_SOC} ]; then
+        cp -r ${S}/gpu-core/usr/lib/${IMX_SOC}/* ${D}${libdir}
+    fi
+
     install -d ${D}${libdir}/pkgconfig
     if ${HAS_GBM}; then
         install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/gbm.pc ${D}${libdir}/pkgconfig/gbm.pc