diff options
Diffstat (limited to 'meta-xilinx-bsp/recipes-xrt')
-rw-r--r-- | meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb b/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb index 858b6b38..7a0132fe 100644 --- a/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb +++ b/meta-xilinx-bsp/recipes-xrt/zocl/zocl_git.bb | |||
@@ -17,3 +17,11 @@ PACKAGE_CLASSES = "package_rpm" | |||
17 | S = "${WORKDIR}/git/src/runtime_src/core/edge/drm/zocl" | 17 | S = "${WORKDIR}/git/src/runtime_src/core/edge/drm/zocl" |
18 | 18 | ||
19 | inherit module | 19 | inherit module |
20 | |||
21 | pkg_postinst_ontarget_${PN}() { | ||
22 | #!/bin/sh | ||
23 | echo "Unloading old XRT Linux kernel modules" | ||
24 | ( rmmod zocl || true ) > /dev/null 2>&1 | ||
25 | echo "Loading new XRT Linux kernel modules" | ||
26 | modprobe zocl | ||
27 | } | ||