diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -1,7 +1,7 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 29 | 3 | SUBLEVEL = 29 |
4 | EXTRAVERSION = -rc3 | 4 | EXTRAVERSION = -rc8 |
5 | NAME = Erotic Pickled Herring | 5 | NAME = Erotic Pickled Herring |
6 | 6 | ||
7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
@@ -389,6 +389,7 @@ PHONY += outputmakefile | |||
389 | # output directory. | 389 | # output directory. |
390 | outputmakefile: | 390 | outputmakefile: |
391 | ifneq ($(KBUILD_SRC),) | 391 | ifneq ($(KBUILD_SRC),) |
392 | $(Q)ln -fsn $(srctree) source | ||
392 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \ | 393 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \ |
393 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) | 394 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) |
394 | endif | 395 | endif |
@@ -903,12 +904,18 @@ localver = $(subst $(space),, $(string) \ | |||
903 | # and if the SCM is know a tag from the SCM is appended. | 904 | # and if the SCM is know a tag from the SCM is appended. |
904 | # The appended tag is determined by the SCM used. | 905 | # The appended tag is determined by the SCM used. |
905 | # | 906 | # |
906 | # Currently, only git is supported. | 907 | # .scmversion is used when generating rpm packages so we do not loose |
907 | # Other SCMs can edit scripts/setlocalversion and add the appropriate | 908 | # the version information from the SCM when we do the build of the kernel |
908 | # checks as needed. | 909 | # from the copied source |
909 | ifdef CONFIG_LOCALVERSION_AUTO | 910 | ifdef CONFIG_LOCALVERSION_AUTO |
910 | _localver-auto = $(shell $(CONFIG_SHELL) \ | 911 | |
911 | $(srctree)/scripts/setlocalversion $(srctree)) | 912 | ifeq ($(wildcard .scmversion),) |
913 | _localver-auto = $(shell $(CONFIG_SHELL) \ | ||
914 | $(srctree)/scripts/setlocalversion $(srctree)) | ||
915 | else | ||
916 | _localver-auto = $(shell cat .scmversion 2> /dev/null) | ||
917 | endif | ||
918 | |||
912 | localver-auto = $(LOCALVERSION)$(_localver-auto) | 919 | localver-auto = $(LOCALVERSION)$(_localver-auto) |
913 | endif | 920 | endif |
914 | 921 | ||
@@ -946,7 +953,6 @@ ifneq ($(KBUILD_SRC),) | |||
946 | mkdir -p include2; \ | 953 | mkdir -p include2; \ |
947 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ | 954 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ |
948 | fi | 955 | fi |
949 | ln -fsn $(srctree) source | ||
950 | endif | 956 | endif |
951 | 957 | ||
952 | # prepare2 creates a makefile if using a separate output directory | 958 | # prepare2 creates a makefile if using a separate output directory |
@@ -1537,7 +1543,7 @@ quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) | |||
1537 | cmd_depmod = \ | 1543 | cmd_depmod = \ |
1538 | if [ -r System.map -a -x $(DEPMOD) ]; then \ | 1544 | if [ -r System.map -a -x $(DEPMOD) ]; then \ |
1539 | $(DEPMOD) -ae -F System.map \ | 1545 | $(DEPMOD) -ae -F System.map \ |
1540 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ | 1546 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) ) \ |
1541 | $(KERNELRELEASE); \ | 1547 | $(KERNELRELEASE); \ |
1542 | fi | 1548 | fi |
1543 | 1549 | ||