Skip to content

Commit 50e0bb9

Browse files
committed
localversion: add cm identifier and get rid of the "+"
1 parent 62f9a44 commit 50e0bb9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

arch/arm/configs/htc_msm_android_defconfig arch/arm/configs/cyanogenmod_kovsky_defconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ CONFIG_BROKEN_ON_SMP=y
3535
CONFIG_LOCK_KERNEL=y
3636
CONFIG_INIT_ENV_ARG_LIMIT=32
3737
CONFIG_CROSS_COMPILE=""
38-
CONFIG_LOCALVERSION=""
39-
CONFIG_LOCALVERSION_AUTO=y
38+
CONFIG_LOCALVERSION="-cyanogenmod"
39+
# CONFIG_LOCALVERSION_AUTO is not set
4040
CONFIG_HAVE_KERNEL_GZIP=y
4141
CONFIG_HAVE_KERNEL_LZMA=y
4242
CONFIG_HAVE_KERNEL_LZO=y

scripts/setlocalversion

-7
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,6 @@ res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}"
159159
if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
160160
# full scm version string
161161
res="$res$(scm_version)"
162-
else
163-
# apped a plus sign if the repository is not in a clean tagged
164-
# state and LOCALVERSION= is not specified
165-
if test "${LOCALVERSION+set}" != "set"; then
166-
scm=$(scm_version --short)
167-
res="$res${scm:++}"
168-
fi
169162
fi
170163

171164
echo "$res"

0 commit comments

Comments
 (0)