app-emulation/hv-daemons: Don't use kmake to build this

It's essentially a standalone userspace project that happens to live
within the kernel sources. It should not be built like the kernel.

hv_fcopy_daemon was dropped upstream.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2025-12-12 16:56:46 +00:00
parent 3d1a2a44bd
commit 71930b71c9
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
2 changed files with 15 additions and 20 deletions

View File

@ -1,9 +0,0 @@
[Unit]
Description=Hyper-V FCOPY daemon
ConditionPathExists=/dev/vmbus/hv_fcopy
[Service]
ExecStart=/usr/bin/hv_fcopy_daemon --no-daemon
[Install]
WantedBy=multi-user.target

View File

@ -3,25 +3,29 @@
EAPI=8
inherit coreos-kernel savedconfig systemd
inherit coreos-kernel systemd
DESCRIPTION="HyperV guest support daemons"
KEYWORDS="amd64 arm64"
src_configure() {
:
}
src_compile() {
# Build hv_vss_daemon, hv_kvp_daemon, hv_fcopy_daemon
kmake tools/hv
emake \
-C "${KV_DIR}/tools/hv" \
ARCH="${CHOST%%-*}" \
CROSS_COMPILE="${CHOST}-" \
OUTPUT="${S}/" \
V=1
}
src_install() {
local -a HV_DAEMONS=(hv_vss_daemon hv_kvp_daemon hv_fcopy_daemon hv_fcopy_uio_daemon)
local HV_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
for HV_DAEMON in hv_{kvp,vss}_daemon $(usex !arm64 hv_fcopy_uio_daemon ""); do
dobin "${HV_DAEMON}"
systemd_dounit "${FILESDIR}/${HV_DAEMON}.service"
systemd_enable_service "multi-user.target" "${HV_DAEMON}.service"
done
}