mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-15 13:31:37 +01:00
hv-daemons: use symlink, add to kernel update workflow
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This commit is contained in:
parent
9e97a78113
commit
da588cbaf0
10
.github/workflows/kernel-apply-patch.sh
vendored
10
.github/workflows/kernel-apply-patch.sh
vendored
@ -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
|
||||
|
||||
|
||||
1
sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-6.6.50.ebuild
vendored
Symbolic link
1
sdk_container/src/third_party/coreos-overlay/app-emulation/hv-daemons/hv-daemons-6.6.50.ebuild
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
hv-daemons-9999.ebuild
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user