app-emulation/hv_daemons: update the hv_fcopy to hv_fcopy_uio, add hv_fcopy_uio_daemon

See: 82b0945ce2wq

Also fix hv tools build for arm64.
This commit is contained in:
Adrian Vladu 2024-09-17 13:19:22 +00:00
parent da743a4b46
commit e9dcdfb12b
3 changed files with 21 additions and 12 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=Hyper-V FCOPY UIO daemon
ConditionPathExists=/sys/bus/vmbus/devices/eb765408-105f-49b6-b4aa-c123b64d17d4/uio
[Service]
ExecStart=/usr/bin/hv_fcopy_uio_daemon --no-daemon
[Install]
WantedBy=multi-user.target

View File

@ -13,20 +13,19 @@ if [[ "${PV}" == 9999 ]]; then
fi fi
src_compile() { 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 kmake tools/hv
} }
src_install() { src_install() {
dobin "${S}/build/tools/hv/hv_fcopy_daemon" local -a HV_DAEMONS=(hv_vss_daemon hv_kvp_daemon hv_fcopy_daemon hv_fcopy_uio_daemon)
dobin "${S}/build/tools/hv/hv_kvp_daemon" local HV_DAEMON
dobin "${S}/build/tools/hv/hv_vss_daemon" for HV_DAEMON in "$HV_DAEMONS[@]"
do
systemd_dounit "${FILESDIR}/hv_fcopy_daemon.service" if [ -f "${S}/build/tools/hv/${HV_DAEMON}" ]; then
systemd_dounit "${FILESDIR}/hv_kvp_daemon.service" dobin "${S}/build/tools/hv/${HV_DAEMON}"
systemd_dounit "${FILESDIR}/hv_vss_daemon.service" systemd_dounit "${FILESDIR}/${HV_DAEMON}.service"
systemd_enable_service "multi-user.target" "${HV_DAEMON}.service"
systemd_enable_service "multi-user.target" "hv_fcopy_daemon.service" fi
systemd_enable_service "multi-user.target" "hv_kvp_daemon.service" done
systemd_enable_service "multi-user.target" "hv_vss_daemon.service"
} }

View File

@ -42,4 +42,5 @@ UNIPATCH_LIST="
${PATCH_DIR}/z0005-efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patch \ ${PATCH_DIR}/z0005-efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patch \
${PATCH_DIR}/z0006-mtd-disable-slram-and-phram-when-locked-down.patch \ ${PATCH_DIR}/z0006-mtd-disable-slram-and-phram-when-locked-down.patch \
${PATCH_DIR}/z0007-arm64-add-kernel-config-option-to-lock-down-when.patch \ ${PATCH_DIR}/z0007-arm64-add-kernel-config-option-to-lock-down-when.patch \
${PATCH_DIR}/z0008-tools-hv-fix-cross-compilation-for-ARM64.patch \
" "