From 91a76fe4521d0c2137d409b2b75e83af757b4caa Mon Sep 17 00:00:00 2001 From: ch vamshi krishna Date: Fri, 20 Sep 2019 10:47:42 +0530 Subject: xrt_git.bb: Add icd support for edge platforms The xilinx.icd file is required when user OpenCL application was compiled with "-lOpenCL". Without this fix, examples cases could not compile without Makefile change. Signed-off-by: ch vamshi krishna Signed-off-by: Manjukumar Matha Signed-off-by: Sai Hari Chandana Kalluri --- meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb b/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb index 1200ab87..257d4c36 100644 --- a/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb +++ b/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb @@ -30,3 +30,13 @@ EXTRA_OECMAKE += " \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_EXPORT_COMPILE_COMANDS=ON \ " + +pkg_postinst_ontarget_${PN}() { + #!/bin/sh + if [ ! -e /etc/OpenCL/vendors/xilinx.icd ]; then + echo "INFO: Creating ICD entry for Xilinx Platform" + mkdir -p /etc/OpenCL/vendors + echo "libxilinxopencl.so" > /etc/OpenCL/vendors/xilinx.icd + chmod -R 755 /etc/OpenCL + fi +} -- cgit v1.2.3-54-g00ecf