From: ch vamshi krishna <[email protected]> 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 <[email protected]> Signed-off-by: Sai Hari Chandana Kalluri <[email protected]> Signed-off-by: Manjukumar Matha <[email protected]> --- 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 1200ab8..257d4c3 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 +} -- 2.7.4
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4590): https://lists.yoctoproject.org/g/meta-xilinx/message/4590 Mute This Topic: https://lists.yoctoproject.org/mt/68553766/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
