diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
@@ -1,8 +1,8 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 29 | 3 | SUBLEVEL = 29 |
4 | EXTRAVERSION = -rc6 | 4 | EXTRAVERSION = |
5 | NAME = Erotic Pickled Herring | 5 | NAME = Temporary Tasmanian Devil |
6 | 6 | ||
7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
8 | # To see a list of typical targets execute "make help" | 8 | # To see a list of typical targets execute "make help" |
@@ -567,6 +567,12 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) | |||
567 | # disable pointer signed / unsigned warnings in gcc 4.0 | 567 | # disable pointer signed / unsigned warnings in gcc 4.0 |
568 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) | 568 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) |
569 | 569 | ||
570 | # disable invalid "can't wrap" optimzations for signed / pointers | ||
571 | KBUILD_CFLAGS += $(call cc-option,-fwrapv) | ||
572 | |||
573 | # revert to pre-gcc-4.4 behaviour of .eh_frame | ||
574 | KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) | ||
575 | |||
570 | # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments | 576 | # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments |
571 | # But warn user when we do so | 577 | # But warn user when we do so |
572 | warn-assign = \ | 578 | warn-assign = \ |
@@ -905,12 +911,18 @@ localver = $(subst $(space),, $(string) \ | |||
905 | # and if the SCM is know a tag from the SCM is appended. | 911 | # and if the SCM is know a tag from the SCM is appended. |
906 | # The appended tag is determined by the SCM used. | 912 | # The appended tag is determined by the SCM used. |
907 | # | 913 | # |
908 | # Currently, only git is supported. | 914 | # .scmversion is used when generating rpm packages so we do not loose |
909 | # Other SCMs can edit scripts/setlocalversion and add the appropriate | 915 | # the version information from the SCM when we do the build of the kernel |
910 | # checks as needed. | 916 | # from the copied source |
911 | ifdef CONFIG_LOCALVERSION_AUTO | 917 | ifdef CONFIG_LOCALVERSION_AUTO |
912 | _localver-auto = $(shell $(CONFIG_SHELL) \ | 918 | |
913 | $(srctree)/scripts/setlocalversion $(srctree)) | 919 | ifeq ($(wildcard .scmversion),) |
920 | _localver-auto = $(shell $(CONFIG_SHELL) \ | ||
921 | $(srctree)/scripts/setlocalversion $(srctree)) | ||
922 | else | ||
923 | _localver-auto = $(shell cat .scmversion 2> /dev/null) | ||
924 | endif | ||
925 | |||
914 | localver-auto = $(LOCALVERSION)$(_localver-auto) | 926 | localver-auto = $(LOCALVERSION)$(_localver-auto) |
915 | endif | 927 | endif |
916 | 928 | ||
@@ -1538,7 +1550,7 @@ quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) | |||
1538 | cmd_depmod = \ | 1550 | cmd_depmod = \ |
1539 | if [ -r System.map -a -x $(DEPMOD) ]; then \ | 1551 | if [ -r System.map -a -x $(DEPMOD) ]; then \ |
1540 | $(DEPMOD) -ae -F System.map \ | 1552 | $(DEPMOD) -ae -F System.map \ |
1541 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ | 1553 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) ) \ |
1542 | $(KERNELRELEASE); \ | 1554 | $(KERNELRELEASE); \ |
1543 | fi | 1555 | fi |
1544 | 1556 | ||