From 91ca1a8c7f287a022d5768c1189a6b453910dfb6 Mon Sep 17 00:00:00 2001 From: Jian Wen Date: Fri, 3 Feb 2023 15:36:24 +0800 Subject: [PATCH] kpatch-build: set EXTRAVERSION Adding the version string to the kernel Makefile EXTRAVERSION as rpmbuild would do (minus the perl voodoo). Fixes: #1 Signed-off-by: Jian Wen --- kpatch-build/kpatch-build | 1 + 1 file changed, 1 insertion(+) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 8632434..2afb3a1 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -856,6 +856,7 @@ if [[ -n "$USERSRCDIR" ]]; then if [[ -z "$ARCHVERSION" ]] && [[ -f "$CONFIGFILE" ]]; then ARCHVERSION="$(kernel_version_from_config)" fi + sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -${ARCHVERSION##*-}/" "$KERNEL_SRCDIR/Makefile" || die fi fi -- Gitee