]> code.ossystems Code Review - meta-freescale.git/commitdiff
gpu-viv-bin-mx6q: Add Vivante ICD
authorNeena Busireddy <neena.busireddy@freescale.com>
Wed, 27 Aug 2014 18:47:09 +0000 (13:47 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 10 Nov 2014 20:55:23 +0000 (18:55 -0200)
Install Vendor ICDs for OpenCL's installable client
driver loader (ICDs Loader).

Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/Vivante.icd [new file with mode: 0644]

index b69bcc57972c380467733e2216b5a8025ff8a7b1..0564f53c4e4a0fd1832fadf7e5f18f9a3459388e 100644 (file)
@@ -33,6 +33,7 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${@'${PV}'.replace('1.1.0', '1.1.0-beta')}.bin;fs
            file://wayland-egl.pc \
            file://wayland-viv.pc \
            file://directfbrc \
+           file://Vivante.icd \
           "
 S = "${WORKDIR}/${PN}-${@'${PV}'.replace('1.1.0', '1.1.0-beta')}"
 
@@ -167,6 +168,10 @@ do_install () {
         mv ${D}${libdir}/libGAL_egl.${backend}.so ${D}${libdir}/libGAL_egl.so
     fi
 
+    # Install Vendor ICDs for OpenCL's installable client driver loader (ICDs Loader)
+    install -d ${D}${sysconfdir}/OpenCL/vendors/
+    install -m 0644 ${WORKDIR}/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd
+
     # We'll only have one backend here so we rename it to generic name
     # and avoid rework in other packages, when possible
     mv ${D}${libdir}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2.0
diff --git a/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/Vivante.icd b/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/Vivante.icd
new file mode 100644 (file)
index 0000000..52c240c
--- /dev/null
@@ -0,0 +1 @@
+libVivanteOpenCL.so