From: Hugo Villeneuve Date: Fri, 20 Sep 2024 13:11:24 +0000 (-0400) Subject: hvk: remove default LOCALVERSION X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=39ff58c34458cb675756cd8d9c159338c66f50dd;p=hvutilities.git hvk: remove default LOCALVERSION --- 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