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

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc

index ab1a258220f15507445b0d88c0ac89c22410b0e3..2f3ff32c529e013769bb763a911947feafdf82e3 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"
 
 do_install () {
     install -d ${D}${libdir}
@@ -161,6 +168,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