hv-daemons: use symlink, add to kernel update workflow

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This commit is contained in:
Thilo Fromm 2024-09-12 10:28:31 +02:00
parent 9e97a78113
commit da588cbaf0
3 changed files with 15 additions and 1 deletions

View File

@ -11,6 +11,7 @@ if ! check_remote_branch "linux-${VERSION_NEW}-${TARGET_BRANCH}"; then
exit 0
fi
# Dive into ebuild repo section of SDK
pushd "${SDK_OUTER_OVERLAY}"
# trim the 3rd part in the input semver, e.g. from 5.4.1 to 5.4
@ -31,6 +32,12 @@ for pkg in sources modules kernel; do
popd
done
# 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
# Leave ebuild repo section of SDK
popd
function get_lwn_link() {
@ -72,7 +79,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

View File

@ -0,0 +1 @@
hv-daemons-9999.ebuild

View File

@ -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