diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2024-04-24 21:03:01 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-04-24 21:03:11 -0600 |
| commit | d5ff507a41f56e7ba6873161ef979650fb50a406 (patch) | |
| tree | 85cee31da9f60bf7aa171742e4352ff87b31b22f /meta-xilinx-core/recipes-xrt/xrt | |
| parent | f99abb8b8c93c520348d9992b658fab9a472fd4e (diff) | |
| parent | 7965de51f877c3dff9f9ca08a2f95cc80b0ed598 (diff) | |
| download | meta-xilinx-d5ff507a41f56e7ba6873161ef979650fb50a406.tar.gz | |
Merge remote-tracking branch 'xilinx/master' into master_2024.1
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-xrt/xrt')
| -rw-r--r-- | meta-xilinx-core/recipes-xrt/xrt/xclbinutil-native_202320.2.16.0.bb | 29 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-xrt/xrt/xrt.inc | 14 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-xrt/xrt/xrt_git.bb | 62 |
3 files changed, 29 insertions, 76 deletions
diff --git a/meta-xilinx-core/recipes-xrt/xrt/xclbinutil-native_202320.2.16.0.bb b/meta-xilinx-core/recipes-xrt/xrt/xclbinutil-native_202320.2.16.0.bb new file mode 100644 index 00000000..6cf10817 --- /dev/null +++ b/meta-xilinx-core/recipes-xrt/xrt/xclbinutil-native_202320.2.16.0.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | SUMMARY = "Xilinx Runtime(XRT) - minimal native build for xclbinutil" | ||
| 2 | DESCRIPTION = "Native build of xclbinutil using XRT codebase" | ||
| 3 | |||
| 4 | require xrt-202320.2.16.0.inc | ||
| 5 | |||
| 6 | FILESEXTRAPATHS:append := ":${THISDIR}/xrt" | ||
| 7 | |||
| 8 | LICENSE = "GPL-2.0-or-later & Apache-2.0 & MIT" | ||
| 9 | LIC_FILES_CHKSUM = " \ | ||
| 10 | file://../LICENSE;md5=de2c993ac479f02575bcbfb14ef9b485 \ | ||
| 11 | file://runtime_src/core/edge/drm/zocl/LICENSE;md5=7d040f51aae6ac6208de74e88a3795f8 \ | ||
| 12 | file://runtime_src/core/pcie/driver/linux/xocl/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 13 | file://runtime_src/core/pcie/linux/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 14 | file://runtime_src/core/tools/xbutil2/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 15 | file://runtime_src/core/common/elf/LICENSE.txt;md5=b996e8b74af169e7e72e22d9e7d05b06 \ | ||
| 16 | " | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git/src" | ||
| 19 | |||
| 20 | inherit cmake pkgconfig native | ||
| 21 | |||
| 22 | DEPENDS = "libdrm-native ocl-icd-native boost-native rapidjson-native protobuf-native python3-pybind11-native systemtap-native" | ||
| 23 | |||
| 24 | EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMANDS=ON" | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | install -d ${D}${bindir} | ||
| 28 | install -Dm 0755 ${WORKDIR}/build/runtime_src/tools/xclbinutil/xclbinutil ${D}${bindir} | ||
| 29 | } | ||
diff --git a/meta-xilinx-core/recipes-xrt/xrt/xrt.inc b/meta-xilinx-core/recipes-xrt/xrt/xrt.inc deleted file mode 100644 index 14b2b968..00000000 --- a/meta-xilinx-core/recipes-xrt/xrt/xrt.inc +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | REPO ?= "git://github.com/Xilinx/XRT.git;protocol=https" | ||
| 2 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 3 | SRC_URI = "${REPO};${BRANCHARG};name=xrt" | ||
| 4 | |||
| 5 | BRANCH= "2023.2" | ||
| 6 | SRCREV_xrt = "2865a62b6a417dea523d2d5646154aa94a2cbc28" | ||
| 7 | PV = "202320.2.16.0" | ||
| 8 | |||
| 9 | SRC_URI += "git://github.com/Xilinx/dma_ip_drivers.git;branch=master;name=dma_ip_drivers;destsuffix=git/src/runtime_src/core/pcie/driver/linux/xocl/lib/libqdma;protocol=https" | ||
| 10 | SRCREV_dma_ip_drivers = "9f02769a2eddde008158c96efa39d7edb6512578" | ||
| 11 | |||
| 12 | SRC_URI += "git://github.com/serge1/ELFIO.git;branch=main;name=ELFIO;destsuffix=git/src/runtime_src/core/common/elf;protocol=https" | ||
| 13 | SRCREV_ELFIO = "a04810f12625207cce72665d783babb80f0175a8" | ||
| 14 | SRCREV_FORMAT = "xrt" | ||
diff --git a/meta-xilinx-core/recipes-xrt/xrt/xrt_git.bb b/meta-xilinx-core/recipes-xrt/xrt/xrt_git.bb deleted file mode 100644 index ef3c7172..00000000 --- a/meta-xilinx-core/recipes-xrt/xrt/xrt_git.bb +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | SUMMARY = "Xilinx Runtime(XRT) libraries" | ||
| 2 | DESCRIPTION = "Xilinx Runtime User Space Libraries and headers" | ||
| 3 | |||
| 4 | require xrt.inc | ||
| 5 | |||
| 6 | SRC_URI += "file://xrt-cstdint.patch;striplevel=2" | ||
| 7 | |||
| 8 | LICENSE = "GPL-2.0-or-later & Apache-2.0 & MIT" | ||
| 9 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=de2c993ac479f02575bcbfb14ef9b485 \ | ||
| 10 | file://runtime_src/core/edge/drm/zocl/LICENSE;md5=7d040f51aae6ac6208de74e88a3795f8 \ | ||
| 11 | file://runtime_src/core/pcie/driver/linux/xocl/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 12 | file://runtime_src/core/pcie/linux/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 13 | file://runtime_src/core/tools/xbutil2/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 14 | file://runtime_src/core/common/elf/LICENSE.txt;md5=b996e8b74af169e7e72e22d9e7d05b06 " | ||
| 15 | |||
| 16 | COMPATIBLE_MACHINE ?= "^$" | ||
| 17 | COMPATIBLE_MACHINE:zynqmp = ".*" | ||
| 18 | COMPATIBLE_MACHINE:versal = ".*" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git/src" | ||
| 21 | |||
| 22 | inherit cmake pkgconfig | ||
| 23 | |||
| 24 | BBCLASSEXTEND = "native nativesdk" | ||
| 25 | |||
| 26 | # util-linux is for libuuid-dev. | ||
| 27 | DEPENDS = "libdrm opencl-headers ocl-icd opencl-clhpp boost util-linux git-replacement-native protobuf-native protobuf elfutils libffi rapidjson" | ||
| 28 | RDEPENDS:${PN} = "bash ocl-icd boost-system boost-filesystem zocl (= ${PV})" | ||
| 29 | |||
| 30 | EXTRA_OECMAKE += " \ | ||
| 31 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 32 | -DCMAKE_EXPORT_COMPILE_COMANDS=ON \ | ||
| 33 | " | ||
| 34 | |||
| 35 | # Systems with AIE also require libmetal, this is implemented in the dynamic-layers | ||
| 36 | # See: meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt_gt.bbappend | ||
| 37 | # Note: If meta-openamp is not available, AIE will not be enabled. | ||
| 38 | |||
| 39 | EXTRA_OECMAKE:append:versal = " -DXRT_LIBDFX=true" | ||
| 40 | EXTRA_OECMAKE:append:zynqmp = " -DXRT_LIBDFX=true" | ||
| 41 | DEPENDS:append:versal = " libdfx" | ||
| 42 | DEPENDS:append:zynqmp = " libdfx" | ||
| 43 | |||
| 44 | |||
| 45 | FILES_SOLIBSDEV = "" | ||
| 46 | FILES:${PN} += "\ | ||
| 47 | ${libdir}/lib*.so \ | ||
| 48 | ${libdir}/lib*.so.* \ | ||
| 49 | ${libdir}/ps_kernels_lib \ | ||
| 50 | /lib/*.so* \ | ||
| 51 | ${datadir}" | ||
| 52 | INSANE_SKIP:${PN} += "dev-so" | ||
| 53 | |||
| 54 | pkg_postinst_ontarget:${PN}() { | ||
| 55 | #!/bin/sh | ||
| 56 | if [ ! -e /etc/OpenCL/vendors/xilinx.icd ]; then | ||
| 57 | echo "INFO: Creating ICD entry for Xilinx Platform" | ||
| 58 | mkdir -p /etc/OpenCL/vendors | ||
| 59 | echo "libxilinxopencl.so" > /etc/OpenCL/vendors/xilinx.icd | ||
| 60 | chmod -R 755 /etc/OpenCL | ||
| 61 | fi | ||
| 62 | } | ||
