hvk: remove default LOCALVERSION
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 20 Sep 2024 13:11:24 +0000 (09:11 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 20 Sep 2024 13:11:24 +0000 (09:11 -0400)
scripts/hvk-init.sh

index dc34592..d9e5aca 100755 (executable)
@@ -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