Skip to content

Commit 317604d

Browse files
committed
hv_daemons: update the hv_fcopy to hv_fcopy_uio
See: torvalds/linux@82b0945ce2c2d636d5e893ad50210875c929f257wq
1 parent 162bf91 commit 317604d

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-9999.ebuild

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,23 @@ if [[ "${PV}" == 9999 ]]; then
1313
fi
1414

1515
src_compile() {
16-
# Build hv_vss_daemon, hv_kvp_daemon, hv_fcopy_daemon
16+
# Build hv_vss_daemon, hv_kvp_daemon, hv_fcopy_daemon
1717
kmake tools/hv
1818
}
1919

2020
src_install() {
21-
dobin "${S}/build/tools/hv/hv_fcopy_daemon"
22-
dobin "${S}/build/tools/hv/hv_kvp_daemon"
23-
dobin "${S}/build/tools/hv/hv_vss_daemon"
24-
25-
systemd_dounit "${FILESDIR}/hv_fcopy_daemon.service"
26-
systemd_dounit "${FILESDIR}/hv_kvp_daemon.service"
27-
systemd_dounit "${FILESDIR}/hv_vss_daemon.service"
28-
29-
systemd_enable_service "multi-user.target" "hv_fcopy_daemon.service"
30-
systemd_enable_service "multi-user.target" "hv_kvp_daemon.service"
31-
systemd_enable_service "multi-user.target" "hv_vss_daemon.service"
21+
if [ -f "${S}/build/tools/hv/hv_fcopy_uio_daemon" ]; then
22+
cp "${S}/build/tools/hv/hv_fcopy_uio_daemon" "${S}/build/tools/hv/hv_fcopy_daemon"
23+
fi
24+
25+
26+
HV_DAEMONS=(hv_vss_daemon hv_kvp_daemon hv_fcopy_daemon)
27+
for HV_DAEMON in "$HV_DAEMONS[@]"
28+
do
29+
if [ -f "${S}/build/tools/hv/${HV_DAEMON}" ]; then
30+
dobin "${S}/build/tools/hv/${HV_DAEMON}"
31+
systemd_dounit "${FILESDIR}/${HV_DAEMON}.service"
32+
systemd_enable_service "multi-user.target" "${HV_DAEMON}.service"
33+
fi
34+
done
3235
}

0 commit comments

Comments
 (0)