From 39ff58c34458cb675756cd8d9c159338c66f50dd Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Fri, 20 Sep 2024 09:11:24 -0400 Subject: [PATCH] hvk: remove default LOCALVERSION --- scripts/hvk-init.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/hvk-init.sh b/scripts/hvk-init.sh index dc34592..d9e5aca 100755 --- a/scripts/hvk-init.sh +++ b/scripts/hvk-init.sh @@ -27,12 +27,13 @@ if [ x"${1}" = x"yocto" ]; then SCMVERSION=$(printf "%s%s" +g $head) else - LOCALVERSION="-latest" SCMVERSION="" fi -echo "Force local kernel version to: ${LOCALVERSION}" -sed -e "s/^\(CONFIG_LOCALVERSION=\"\).*/\1${LOCALVERSION}\"/" -i .config +if [ x"${LOCALVERSION}" != x"" ]; then + echo "Force local kernel version to: ${LOCALVERSION}" + sed -e "s/^\(CONFIG_LOCALVERSION=\"\).*/\1${LOCALVERSION}\"/" -i .config +fi echo ${SCMVERSION} > .scmversion -- 2.20.1