Skip to content

Commit 46035b0

Browse files
committed
app-emulation/hv_daemons: update the hv_fcopy to hv_fcopy_uio, add hv_fcopy_uio_daemon
See: torvalds/linux@82b0945ce2c2d636d5e893ad50210875c929f257wq Also fix hv tools build for arm64.
1 parent 75a0efb commit 46035b0

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Unit]
2+
Description=Hyper-V FCOPY UIO daemon
3+
ConditionPathExists=/sys/bus/vmbus/devices/eb765408-105f-49b6-b4aa-c123b64d17d4/uio
4+
5+
[Service]
6+
ExecStart=/usr/bin/hv_fcopy_uio_daemon --no-daemon
7+
8+
[Install]
9+
WantedBy=multi-user.target

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@ 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+
local -a HV_DAEMONS=(hv_vss_daemon hv_kvp_daemon hv_fcopy_daemon hv_fcopy_uio_daemon)
22+
local HV_DAEMON
23+
for HV_DAEMON in "$HV_DAEMONS[@]"
24+
do
25+
if [ -f "${S}/build/tools/hv/${HV_DAEMON}" ]; then
26+
dobin "${S}/build/tools/hv/${HV_DAEMON}"
27+
systemd_dounit "${FILESDIR}/${HV_DAEMON}.service"
28+
systemd_enable_service "multi-user.target" "${HV_DAEMON}.service"
29+
fi
30+
done
3231
}

sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-sources/coreos-sources-6.12.20.ebuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ UNIPATCH_LIST="
4242
${PATCH_DIR}/z0005-efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patch \
4343
${PATCH_DIR}/z0006-mtd-disable-slram-and-phram-when-locked-down.patch \
4444
${PATCH_DIR}/z0007-arm64-add-kernel-config-option-to-lock-down-when.patch \
45+
${PATCH_DIR}/z0008-tools-hv-fix-cross-compilation-for-ARM64.patch \
4546
"

0 commit comments

Comments
 (0)