aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-12 20:33:21 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-12 20:33:21 -0400
commit480c93df5b99699390f93a7024c9f60d09da0e96 (patch)
treeb93b6c8c71c5f2e716dd05b126e01ef4e20ff0af /Makefile
parentaecfcde920da8d32949f6cbbc1fc051b4ef9e7be (diff)
parentd820ac4c2fa881079e6b689d2098adce337558ae (diff)
Merge branch 'core/locking' into tracing/ftrace
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c40d83aedebe..69b8091bfed1 100644
--- a/Makefile
+++ b/Makefile
@@ -905,12 +905,18 @@ localver = $(subst $(space),, $(string) \
905# and if the SCM is know a tag from the SCM is appended. 905# and if the SCM is know a tag from the SCM is appended.
906# The appended tag is determined by the SCM used. 906# The appended tag is determined by the SCM used.
907# 907#
908# Currently, only git is supported. 908# .scmversion is used when generating rpm packages so we do not loose
909# Other SCMs can edit scripts/setlocalversion and add the appropriate 909# the version information from the SCM when we do the build of the kernel
910# checks as needed. 910# from the copied source
911ifdef CONFIG_LOCALVERSION_AUTO 911ifdef CONFIG_LOCALVERSION_AUTO
912 _localver-auto = $(shell $(CONFIG_SHELL) \ 912
913 $(srctree)/scripts/setlocalversion $(srctree)) 913ifeq ($(wildcard .scmversion),)
914 _localver-auto = $(shell $(CONFIG_SHELL) \
915 $(srctree)/scripts/setlocalversion $(srctree))
916else
917 _localver-auto = $(shell cat .scmversion 2> /dev/null)
918endif
919
914 localver-auto = $(LOCALVERSION)$(_localver-auto) 920 localver-auto = $(LOCALVERSION)$(_localver-auto)
915endif 921endif
916 922
@@ -1538,7 +1544,7 @@ quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)
1538 cmd_depmod = \ 1544 cmd_depmod = \
1539 if [ -r System.map -a -x $(DEPMOD) ]; then \ 1545 if [ -r System.map -a -x $(DEPMOD) ]; then \
1540 $(DEPMOD) -ae -F System.map \ 1546 $(DEPMOD) -ae -F System.map \
1541 $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ 1547 $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) ) \
1542 $(KERNELRELEASE); \ 1548 $(KERNELRELEASE); \
1543 fi 1549 fi
1544 1550