[generic] fix localversion detection for linux 2.6.35

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22560 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jo-Philipp Wich 2010-08-09 15:50:18 +00:00
parent e3e9d8a192
commit ed9cacdc9e
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -162,7 +162,7 @@ if test "$CONFIG_LOCALVERSION_AUTO" = "y
else
# apped a plus sign if the repository is not in a clean tagged
# state and LOCALVERSION= is not specified
- if test "${LOCALVERSION+set}" != "set"; then
+ if test "${CONFIG_LOCALVERSION+set}" != "set"; then
scm=$(scm_version --short)
res="$res${scm:++}"
fi