Commit 3f2de94d authored by Jeffrey Carlyle's avatar Jeffrey Carlyle
Browse files

vermagic: don't include SCM information in version string


With the aim of producing consistent kernel module binaries across build
systems, strip the SCM information out of the version string used when
building and loading kenrel modules.

Change-Id: Idc77b9a7424734e84fb3be05a36a536984b86e11
Signed-off-by: default avatarJeffrey Carlyle <jeff.carlyle@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/521679

Tested-by: default avatarJira Key <jirakey@motorola.com>
Reviewed-by: default avatarChristopher Fries <qcf001@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
(cherry picked from commit 24d4161ce981f53d1605b3ac0ec13ddfc436d10c)
parent 2b3e586f
......@@ -1009,7 +1009,8 @@ define filechk_utsrelease.h
echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2; \
exit 1; \
fi; \
(echo \#define UTS_RELEASE \"$(KERNELRELEASE)\";)
(echo \#define UTS_RELEASE \"$(KERNELRELEASE)\"; \
echo \#define SHORT_UTS_RELEASE \"$(KERNELVERSION)$(CONFIG_LOCALVERSION)\";)
endef
define filechk_version.h
......
......@@ -26,7 +26,7 @@
#endif
#define VERMAGIC_STRING \
UTS_RELEASE " " \
SHORT_UTS_RELEASE " " \
MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \
MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS \
MODULE_ARCH_VERMAGIC
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment