[generic] fix localversion detection for linux 2.6.35
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 9 Aug 2010 15:50:18 +0000 (15:50 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 9 Aug 2010 15:50:18 +0000 (15:50 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22560 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic/patches-2.6.35/001-fix_localversion.patch [new file with mode: 0644]

diff --git a/target/linux/generic/patches-2.6.35/001-fix_localversion.patch b/target/linux/generic/patches-2.6.35/001-fix_localversion.patch
new file mode 100644 (file)
index 0000000..44b1775
--- /dev/null
@@ -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