From 71930b71c9d092bdd86f4fe7e71b353d85b87ba2 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Fri, 12 Dec 2025 16:56:46 +0000 Subject: [PATCH] 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 --- .../hv-daemons/files/hv_fcopy_daemon.service | 9 ------- .../hv-daemons/hv-daemons-6.12.62.ebuild | 26 +++++++++++-------- 2 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/files/hv_fcopy_daemon.service diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/files/hv_fcopy_daemon.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/files/hv_fcopy_daemon.service deleted file mode 100644 index c4d63d39ed..0000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/files/hv_fcopy_daemon.service +++ /dev/null @@ -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 diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-6.12.62.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-6.12.62.ebuild index 8e49474683..be770a8081 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-6.12.62.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-6.12.62.ebuild @@ -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 }