Skip to content

Commit

Permalink
hv-daemons: use symlink, add to kernel update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
  • Loading branch information
t-lo committed Sep 12, 2024
1 parent d8a6288 commit 3a5aebe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/kernel-apply-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ for pkg in sources modules kernel; do
popd
done

popd
# Update hyperv daemons ebuild soft-link to reflect new kernel version
find -D exec app-emulation/hv-daemons/ -type l -exec rm '{}' \;
ln -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \
app-emulation/hv-daemons/hv-daemons-${VERSION_NEW}.ebuild


function get_lwn_link() {
local LINUX_VERSION="${1}"; shift
Expand Down Expand Up @@ -72,7 +76,8 @@ generate_update_changelog 'Linux' "${VERSION_NEW}" "${URL}" 'linux' "${OLD_VERSI

commit_changes sys-kernel/coreos-sources "${VERSION_OLD}" "${VERSION_NEW}" \
sys-kernel/coreos-modules \
sys-kernel/coreos-kernel
sys-kernel/coreos-kernel \
app-emulation/hv-daemons

cleanup_repo

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit coreos-kernel savedconfig systemd

DESCRIPTION="HyperV guest support daemons."
KEYWORDS="amd64 arm64"

if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm64"
fi

src_compile() {
# Build hv_vss_daemon, hv_kvp_daemon, hv_fcopy_daemon
kmake tools/hv
Expand Down

0 comments on commit 3a5aebe

Please sign in to comment.