aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 21 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 681c1d23b4d4..1ab3ebfc9091 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 29 3SUBLEVEL = 29
4EXTRAVERSION = -rc4 4EXTRAVERSION =
5NAME = Erotic Pickled Herring 5NAME = 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"
@@ -389,6 +389,7 @@ PHONY += outputmakefile
389# output directory. 389# output directory.
390outputmakefile: 390outputmakefile:
391ifneq ($(KBUILD_SRC),) 391ifneq ($(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)
394endif 395endif
@@ -565,6 +566,12 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
565# disable pointer signed / unsigned warnings in gcc 4.0 566# disable pointer signed / unsigned warnings in gcc 4.0
566KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) 567KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
567 568
569# disable invalid "can't wrap" optimzations for signed / pointers
570KBUILD_CFLAGS += $(call cc-option,-fwrapv)
571
572# revert to pre-gcc-4.4 behaviour of .eh_frame
573KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
574
568# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 575# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
569# But warn user when we do so 576# But warn user when we do so
570warn-assign = \ 577warn-assign = \
@@ -903,12 +910,18 @@ localver = $(subst $(space),, $(string) \
903# and if the SCM is know a tag from the SCM is appended. 910# and if the SCM is know a tag from the SCM is appended.
904# The appended tag is determined by the SCM used. 911# The appended tag is determined by the SCM used.
905# 912#
906# Currently, only git is supported. 913# .scmversion is used when generating rpm packages so we do not loose
907# Other SCMs can edit scripts/setlocalversion and add the appropriate 914# the version information from the SCM when we do the build of the kernel
908# checks as needed. 915# from the copied source
909ifdef CONFIG_LOCALVERSION_AUTO 916ifdef CONFIG_LOCALVERSION_AUTO
910 _localver-auto = $(shell $(CONFIG_SHELL) \ 917
911 $(srctree)/scripts/setlocalversion $(srctree)) 918ifeq ($(wildcard .scmversion),)
919 _localver-auto = $(shell $(CONFIG_SHELL) \
920 $(srctree)/scripts/setlocalversion $(srctree))
921else
922 _localver-auto = $(shell cat .scmversion 2> /dev/null)
923endif
924
912 localver-auto = $(LOCALVERSION)$(_localver-auto) 925 localver-auto = $(LOCALVERSION)$(_localver-auto)
913endif 926endif
914 927
@@ -946,7 +959,6 @@ ifneq ($(KBUILD_SRC),)
946 mkdir -p include2; \ 959 mkdir -p include2; \
947 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ 960 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
948 fi 961 fi
949 ln -fsn $(srctree) source
950endif 962endif
951 963
952# prepare2 creates a makefile if using a separate output directory 964# prepare2 creates a makefile if using a separate output directory
@@ -1537,7 +1549,7 @@ quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)
1537 cmd_depmod = \ 1549 cmd_depmod = \
1538 if [ -r System.map -a -x $(DEPMOD) ]; then \ 1550 if [ -r System.map -a -x $(DEPMOD) ]; then \
1539 $(DEPMOD) -ae -F System.map \ 1551 $(DEPMOD) -ae -F System.map \
1540 $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ 1552 $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) ) \
1541 $(KERNELRELEASE); \ 1553 $(KERNELRELEASE); \
1542 fi 1554 fi
1543 1555