diff options
author | Himanshu Choudhary <himanshu.choudhary@xilinx.com> | 2020-02-05 18:32:32 +0530 |
---|---|---|
committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2020-02-05 23:55:34 -0800 |
commit | d5defb5ab1974ef86b50bd47fda2ae7aaaaddc44 (patch) | |
tree | ac82bab26b5149f58a743e79234f4aa06494aee8 /meta-xilinx-bsp/recipes-xrt | |
parent | 63429e5fb8b7a1f3c6d0f6c20235b665bcc6cdd0 (diff) | |
download | meta-xilinx-d5defb5ab1974ef86b50bd47fda2ae7aaaaddc44.tar.gz |
zocl_git: added post install script
Signed-off-by: Himanshu Choudhary <hchoudha@xilinx.com>
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
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 | } | ||