diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 16 insertions, 7 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 = -rc7 | 4 | EXTRAVERSION = -rc8 |
5 | NAME = Erotic Pickled Herring | 5 | NAME = Erotic Pickled Herring |
6 | 6 | ||
7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
@@ -566,6 +566,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) | |||
566 | # disable pointer signed / unsigned warnings in gcc 4.0 | 566 | # disable pointer signed / unsigned warnings in gcc 4.0 |
567 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) | 567 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) |
568 | 568 | ||
569 | # disable invalid "can't wrap" optimzations for signed / pointers | ||
570 | KBUILD_CFLAGS += $(call cc-option,-fwrapv) | ||
571 | |||
569 | # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments | 572 | # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments |
570 | # But warn user when we do so | 573 | # But warn user when we do so |
571 | warn-assign = \ | 574 | warn-assign = \ |
@@ -904,12 +907,18 @@ localver = $(subst $(space),, $(string) \ | |||
904 | # and if the SCM is know a tag from the SCM is appended. | 907 | # and if the SCM is know a tag from the SCM is appended. |
905 | # The appended tag is determined by the SCM used. | 908 | # The appended tag is determined by the SCM used. |
906 | # | 909 | # |
907 | # Currently, only git is supported. | 910 | # .scmversion is used when generating rpm packages so we do not loose |
908 | # Other SCMs can edit scripts/setlocalversion and add the appropriate | 911 | # the version information from the SCM when we do the build of the kernel |
909 | # checks as needed. | 912 | # from the copied source |
910 | ifdef CONFIG_LOCALVERSION_AUTO | 913 | ifdef CONFIG_LOCALVERSION_AUTO |
911 | _localver-auto = $(shell $(CONFIG_SHELL) \ | 914 | |
912 | $(srctree)/scripts/setlocalversion $(srctree)) | 915 | ifeq ($(wildcard .scmversion),) |
916 | _localver-auto = $(shell $(CONFIG_SHELL) \ | ||
917 | $(srctree)/scripts/setlocalversion $(srctree)) | ||
918 | else | ||
919 | _localver-auto = $(shell cat .scmversion 2> /dev/null) | ||
920 | endif | ||
921 | |||
913 | localver-auto = $(LOCALVERSION)$(_localver-auto) | 922 | localver-auto = $(LOCALVERSION)$(_localver-auto) |
914 | endif | 923 | endif |
915 | 924 | ||
@@ -1537,7 +1546,7 @@ quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) | |||
1537 | cmd_depmod = \ | 1546 | cmd_depmod = \ |
1538 | if [ -r System.map -a -x $(DEPMOD) ]; then \ | 1547 | if [ -r System.map -a -x $(DEPMOD) ]; then \ |
1539 | $(DEPMOD) -ae -F System.map \ | 1548 | $(DEPMOD) -ae -F System.map \ |
1540 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ | 1549 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) ) \ |
1541 | $(KERNELRELEASE); \ | 1550 | $(KERNELRELEASE); \ |
1542 | fi | 1551 | fi |
1543 | 1552 | ||