kbuild: Fix the breakage caused by "improve version string logic"

From: Boaz Harrosh
Date: Tue Jun 08 2010 - 04:32:23 EST

The patch: 85a256d8e0116c8f5ad276730830f5d4d473344d
Author: David Rientjes <rientjes@xxxxxxxxxx>
Title: kbuild: improve version string logic

Broke none Linus trees that supply their own version string and
tag system via a presence of a localversion* file at the Kernel's
root subdirectory.

After This patch. The "+" (plus) is not added if a localversion*
file is present or a CONFIG_LOCALVERSION is configured.

Signed-off-by: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
Makefile | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 654c31a..324a413 100644
--- a/Makefile
+++ b/Makefile
@@ -945,7 +945,9 @@ ifdef CONFIG_LOCALVERSION_AUTO
ifneq ($(scm-identifier),)
- localver-extra = +
+ ifeq ($(localver),)
+ localver-extra = +
+ endif

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/