Skip to content

Commit

Permalink
hv_daemons: update the hv_fcopy to hv_fcopy_uio
Browse files Browse the repository at this point in the history
  • Loading branch information
ader1990 committed Sep 17, 2024
1 parent ab5f8ea commit 4ad039e
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ if [[ "${PV}" == 9999 ]]; then
fi

src_compile() {
# Build hv_vss_daemon, hv_kvp_daemon, hv_fcopy_daemon
# Build hv_vss_daemon, hv_kvp_daemon, hv_fcopy_daemon
kmake tools/hv
}

src_install() {
dobin "${S}/build/tools/hv/hv_fcopy_daemon"
dobin "${S}/build/tools/hv/hv_kvp_daemon"
dobin "${S}/build/tools/hv/hv_vss_daemon"

systemd_dounit "${FILESDIR}/hv_fcopy_daemon.service"
systemd_dounit "${FILESDIR}/hv_kvp_daemon.service"
systemd_dounit "${FILESDIR}/hv_vss_daemon.service"

systemd_enable_service "multi-user.target" "hv_fcopy_daemon.service"
systemd_enable_service "multi-user.target" "hv_kvp_daemon.service"
systemd_enable_service "multi-user.target" "hv_vss_daemon.service"
if [ -f "${S}/build/tools/hv/hv_fcopy_uio_daemon" ]; then
cp "${S}/build/tools/hv/hv_fcopy_uio_daemon" "${S}/build/tools/hv/hv_fcopy_daemon"
fi


HV_DAEMONS=(hv_vss_daemon hv_kvp_daemon hv_fcopy_daemon)
for HV_DAEMON in "$HV_DAEMONS[@]"
do
if [ -f "${S}/build/tools/hv/${HV_DAEMON}" ]; then
dobin "${S}/build/tools/hv/${HV_DAEMON}"
systemd_dounit "${FILESDIR}/${HV_DAEMON}.service"
systemd_enable_service "multi-user.target" "${HV_DAEMON}.service"
fi
done
}

0 comments on commit 4ad039e

Please sign in to comment.