aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e5ad5fd96177..9e5dc8f0ef47 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 30 3SUBLEVEL = 30
4EXTRAVERSION = -rc1 4EXTRAVERSION = -rc3
5NAME = Temporary Tasmanian Devil 5NAME = Temporary Tasmanian Devil
6 6
7# *DOCUMENTATION* 7# *DOCUMENTATION*
@@ -169,7 +169,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
169 -e s/arm.*/arm/ -e s/sa110/arm/ \ 169 -e s/arm.*/arm/ -e s/sa110/arm/ \
170 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 170 -e s/s390x/s390/ -e s/parisc64/parisc/ \
171 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 171 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
172 -e s/sh.*/sh/ ) 172 -e s/sh[234].*/sh/ )
173 173
174# Cross compiling and selecting different set of gcc/bin-utils 174# Cross compiling and selecting different set of gcc/bin-utils
175# --------------------------------------------------------------------------- 175# ---------------------------------------------------------------------------
@@ -210,6 +210,11 @@ ifeq ($(ARCH),sparc64)
210 SRCARCH := sparc 210 SRCARCH := sparc
211endif 211endif
212 212
213# Additional ARCH settings for sh
214ifeq ($(ARCH),sh64)
215 SRCARCH := sh
216endif
217
213# Where to locate arch specific headers 218# Where to locate arch specific headers
214hdr-arch := $(SRCARCH) 219hdr-arch := $(SRCARCH)
215 220
@@ -567,7 +572,7 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
567# disable pointer signed / unsigned warnings in gcc 4.0 572# disable pointer signed / unsigned warnings in gcc 4.0
568KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) 573KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
569 574
570# disable invalid "can't wrap" optimzations for signed / pointers 575# disable invalid "can't wrap" optimizations for signed / pointers
571KBUILD_CFLAGS += $(call cc-option,-fwrapv) 576KBUILD_CFLAGS += $(call cc-option,-fwrapv)
572 577
573# revert to pre-gcc-4.4 behaviour of .eh_frame 578# revert to pre-gcc-4.4 behaviour of .eh_frame
@@ -597,6 +602,10 @@ LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
597LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) 602LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
598LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) 603LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
599 604
605ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
606LDFLAGS_vmlinux += -X
607endif
608
600# Default kernel image to build when no specific target is given. 609# Default kernel image to build when no specific target is given.
601# KBUILD_IMAGE may be overruled on the command line or 610# KBUILD_IMAGE may be overruled on the command line or
602# set in the environment 611# set in the environment
@@ -1191,7 +1200,7 @@ CLEAN_FILES += vmlinux System.map \
1191 .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map 1200 .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map
1192 1201
1193# Directories & files removed with 'make mrproper' 1202# Directories & files removed with 'make mrproper'
1194MRPROPER_DIRS += include/config include2 usr/include 1203MRPROPER_DIRS += include/config include2 usr/include include/generated
1195MRPROPER_FILES += .config .config.old include/asm .version .old_version \ 1204MRPROPER_FILES += .config .config.old include/asm .version .old_version \
1196 include/linux/autoconf.h include/linux/version.h \ 1205 include/linux/autoconf.h include/linux/version.h \
1197 include/linux/utsrelease.h \ 1206 include/linux/utsrelease.h \
@@ -1587,5 +1596,5 @@ PHONY += FORCE
1587FORCE: 1596FORCE:
1588 1597
1589# Declare the contents of the .PHONY variable as phony. We keep that 1598# Declare the contents of the .PHONY variable as phony. We keep that
1590# information in a variable se we can use it in if_changed and friends. 1599# information in a variable so we can use it in if_changed and friends.
1591.PHONY: $(PHONY) 1600.PHONY: $(PHONY)