Don't add plus to kernel revision string if dirty
Change-Id: Idaa3c16cfe0e72ddc9ed50ce5405ae9680355da3
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 63d91e2..14e720b 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -160,7 +160,15 @@
if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
# full scm version string
res="$res$(scm_version)"
-else
+elif false; then
+ # We actually don't want that plus sign under the circumstances
+ # described below. It changes the directory path where the kernel
+ # modules are installed which we think is undesireable for our embedded
+ # platform. Also, the absence of the plus sign only indicates that HEAD
+ # is pointing to *some* commit without saying which one. There were
+ # also situations where the repository was considered dirty when it was
+ # in fact clean. Let's get rid of the plus sign.
+
# append a plus sign if the repository is not in a clean
# annotated or signed tagged state (as git describe only
# looks at signed or annotated tags - git tag -a/-s) and