mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 20:26:44 +02:00
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:
parent
3d1a2a44bd
commit
71930b71c9
@ -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
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user