kernel: generic: add 3.10-rc1 support
[openwrt.git] / target / linux / generic / patches-3.10 / 200-fix_localversion.patch
diff --git a/target/linux/generic/patches-3.10/200-fix_localversion.patch b/target/linux/generic/patches-3.10/200-fix_localversion.patch
new file mode 100644 (file)
index 0000000..6c16dd1
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/scripts/setlocalversion
++++ b/scripts/setlocalversion
+@@ -167,7 +167,7 @@ else
+       # annotated or signed tagged state (as git describe only
+       # looks at signed or annotated tags - git tag -a/-s) 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