zocl_git: added post install script
@@ -17,3 +17,11 @@ PACKAGE_CLASSES = "package_rpm"
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
+}
