aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 4eabaa8afbff..4a4720387936 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 19 3SUBLEVEL = 20
4EXTRAVERSION = 4EXTRAVERSION =-rc1
5NAME=Avast! A bilge rat! 5NAME=Avast! A bilge rat!
6 6
7# *DOCUMENTATION* 7# *DOCUMENTATION*
@@ -496,11 +496,6 @@ else
496CFLAGS += -fomit-frame-pointer 496CFLAGS += -fomit-frame-pointer
497endif 497endif
498 498
499ifdef CONFIG_UNWIND_INFO
500CFLAGS += -fasynchronous-unwind-tables
501LDFLAGS_vmlinux += --eh-frame-hdr
502endif
503
504ifdef CONFIG_DEBUG_INFO 499ifdef CONFIG_DEBUG_INFO
505CFLAGS += -g 500CFLAGS += -g
506endif 501endif
@@ -1390,12 +1385,18 @@ endif #ifeq ($(mixed-targets),1)
1390 1385
1391PHONY += checkstack kernelrelease kernelversion 1386PHONY += checkstack kernelrelease kernelversion
1392 1387
1393# Use $(SUBARCH) here instead of $(ARCH) so that this works for UML. 1388# UML needs a little special treatment here. It wants to use the host
1394# In the UML case, $(SUBARCH) is the name of the underlying 1389# toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone
1395# architecture, while for all other arches, it is the same as $(ARCH). 1390# else wants $(ARCH), including people doing cross-builds, which means
1391# that $(SUBARCH) doesn't work here.
1392ifeq ($(ARCH), um)
1393CHECKSTACK_ARCH := $(SUBARCH)
1394else
1395CHECKSTACK_ARCH := $(ARCH)
1396endif
1396checkstack: 1397checkstack:
1397 $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \ 1398 $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
1398 $(PERL) $(src)/scripts/checkstack.pl $(SUBARCH) 1399 $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
1399 1400
1400kernelrelease: 1401kernelrelease:
1401 $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \ 1402 $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \