diff options
| author | ch vamshi krishna <ch.vamshi.krishna@xilinx.com> | 2019-09-20 10:47:42 +0530 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2019-12-13 13:26:39 -0800 |
| commit | 91a76fe4521d0c2137d409b2b75e83af757b4caa (patch) | |
| tree | 6d32c6f50807032fa4091ce925bf9de16c6adcf1 | |
| parent | 8514319b3a75006e381cb5dd617a0efea31091a3 (diff) | |
| download | meta-xilinx-91a76fe4521d0c2137d409b2b75e83af757b4caa.tar.gz | |
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 <chvamshi@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
| -rw-r--r-- | meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb | 10 |
1 files changed, 10 insertions, 0 deletions
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 += " \ | |||
| 30 | -DCMAKE_BUILD_TYPE=Release \ | 30 | -DCMAKE_BUILD_TYPE=Release \ |
| 31 | -DCMAKE_EXPORT_COMPILE_COMANDS=ON \ | 31 | -DCMAKE_EXPORT_COMPILE_COMANDS=ON \ |
| 32 | " | 32 | " |
| 33 | |||
| 34 | pkg_postinst_ontarget_${PN}() { | ||
| 35 | #!/bin/sh | ||
| 36 | if [ ! -e /etc/OpenCL/vendors/xilinx.icd ]; then | ||
| 37 | echo "INFO: Creating ICD entry for Xilinx Platform" | ||
| 38 | mkdir -p /etc/OpenCL/vendors | ||
| 39 | echo "libxilinxopencl.so" > /etc/OpenCL/vendors/xilinx.icd | ||
| 40 | chmod -R 755 /etc/OpenCL | ||
| 41 | fi | ||
| 42 | } | ||
