diff options
Diffstat (limited to 'meta-xilinx-core/recipes-xrt/xrt/xrt_202210.2.13.479.bb')
-rw-r--r-- | meta-xilinx-core/recipes-xrt/xrt/xrt_202210.2.13.479.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-xrt/xrt/xrt_202210.2.13.479.bb b/meta-xilinx-core/recipes-xrt/xrt/xrt_202210.2.13.479.bb new file mode 100644 index 00000000..64702022 --- /dev/null +++ b/meta-xilinx-core/recipes-xrt/xrt/xrt_202210.2.13.479.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "Xilinx Runtime(XRT) libraries" | ||
2 | DESCRIPTION = "Xilinx Runtime User Space Libraries and headers" | ||
3 | |||
4 | require xrt-${PV}.inc | ||
5 | |||
6 | LICENSE = "GPL-2.0-or-later & Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=da5408f748bce8a9851dac18e66f4bcf \ | ||
8 | file://runtime_src/core/edge/drm/zocl/LICENSE;md5=7d040f51aae6ac6208de74e88a3795f8 \ | ||
9 | file://runtime_src/core/pcie/driver/linux/xocl/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
10 | file://runtime_src/core/pcie/linux/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
11 | file://runtime_src/core/pcie/tools/xbutil/LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87 \ | ||
12 | file://runtime_src/core/edge/tools/xbutil/LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87 " | ||
13 | |||
14 | S = "${WORKDIR}/git/src" | ||
15 | |||
16 | inherit cmake pkgconfig | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
19 | |||
20 | # util-linux is for libuuid-dev. | ||
21 | DEPENDS = "libdrm opencl-headers ocl-icd opencl-clhpp boost util-linux git-replacement-native protobuf-native protobuf elfutils libffi rapidjson" | ||
22 | RDEPENDS:${PN} = "bash ocl-icd boost-system boost-filesystem zocl (= ${PV})" | ||
23 | |||
24 | EXTRA_OECMAKE += " \ | ||
25 | -DCMAKE_BUILD_TYPE=Release \ | ||
26 | -DCMAKE_EXPORT_COMPILE_COMANDS=ON \ | ||
27 | " | ||
28 | # Systems with AIE also require libmetal, this is implemented in the dynamic-layers | ||
29 | # See: meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt_gt.bbappend | ||
30 | # Note: If meta-openamp is not available, AIE will not be enabled. | ||
31 | |||
32 | EXTRA_OECMAKE:append:aarch64 = " -DXRT_LIBDFX=true" | ||
33 | DEPENDS:append:aarch64 = " libdfx" | ||
34 | |||
35 | FILES_SOLIBSDEV = "" | ||
36 | FILES:${PN} += "\ | ||
37 | ${libdir}/lib*.so \ | ||
38 | ${libdir}/lib*.so.* \ | ||
39 | ${libdir}/ps_kernels_lib \ | ||
40 | /lib/*.so* " | ||
41 | INSANE_SKIP:${PN} += "dev-so" | ||
42 | |||
43 | pkg_postinst_ontarget:${PN}() { | ||
44 | #!/bin/sh | ||
45 | if [ ! -e /etc/OpenCL/vendors/xilinx.icd ]; then | ||
46 | echo "INFO: Creating ICD entry for Xilinx Platform" | ||
47 | mkdir -p /etc/OpenCL/vendors | ||
48 | echo "libxilinxopencl.so" > /etc/OpenCL/vendors/xilinx.icd | ||
49 | chmod -R 755 /etc/OpenCL | ||
50 | fi | ||
51 | } | ||