fix localversion detection for linux 2.6.35
[openwrt/staging/yousong.git] / target / linux / generic / patches-2.6.35 / 001-fix_localversion.patch
1 --- a/scripts/setlocalversion
2 +++ b/scripts/setlocalversion
3 @@ -162,7 +162,7 @@ if test "$CONFIG_LOCALVERSION_AUTO" = "y
4 else
5 # apped a plus sign if the repository is not in a clean tagged
6 # state and LOCALVERSION= is not specified
7 - if test "${LOCALVERSION+set}" != "set"; then
8 + if test "${CONFIG_LOCALVERSION+set}" != "set"; then
9 scm=$(scm_version --short)
10 res="$res${scm:++}"
11 fi