diff options
Diffstat (limited to 'meta-xilinx/meta-xilinx-bsp/recipes-xrt/zocl')
-rw-r--r-- | meta-xilinx/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/meta-xilinx/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb b/meta-xilinx/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb index b47f45fde..2c3f0b441 100644 --- a/meta-xilinx/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb +++ b/meta-xilinx/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb @@ -1,14 +1,25 @@ SUMMARY = "Xilinx Runtime(XRT) driver module" DESCRIPTION = "Xilinx Runtime driver module provides memory management and compute unit schedule" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" +LICENSE = "GPLv2 & Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7d040f51aae6ac6208de74e88a3795f8" -SRC_URI = "git://github.com/Xilinx/XRT.git;protocol=https" +BRANCH ?= "2020.1" +REPO ?= "git://github.com/Xilinx/XRT.git;protocol=https" +BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" +SRC_URI = "${REPO};${BRANCHARG}" -PV = "2.2.0+git${SRCPV}" -SRCREV = "da87ac894a037d7e11c0496361458efed4bab438" +PV = "202010.2.6.0" +SRCREV ?= "2d6bfe4ce91051d4e5b499d38fc493586dd4859a" -S = "${WORKDIR}/git/src/runtime_src/driver/zynq/drm/zocl" +S = "${WORKDIR}/git/src/runtime_src/core/edge/drm/zocl" inherit module + +pkg_postinst_ontarget_${PN}() { + #!/bin/sh + echo "Unloading old XRT Linux kernel modules" + ( rmmod zocl || true ) > /dev/null 2>&1 + echo "Loading new XRT Linux kernel modules" + modprobe zocl +} |