aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-01-17 18:34:51 -0500
committerDavid Woodhouse <dwmw2@infradead.org>2007-01-17 18:34:51 -0500
commit9cdf083f981b8d37b3212400a359368661385099 (patch)
treeaa15a6a08ad87e650dea40fb59b3180bef0d345b /Makefile
parente499e01d234a31d59679b7b1e1cf628d917ba49a (diff)
parenta8b3485287731978899ced11f24628c927890e78 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 24 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index aef9625905..477f52e3c7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 19 3SUBLEVEL = 20
4EXTRAVERSION = 4EXTRAVERSION =-rc5
5NAME=Avast! A bilge rat! 5NAME = Homicidal Dwarf Hamster
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"
@@ -10,8 +10,11 @@ NAME=Avast! A bilge rat!
10# Comments in this file are targeted only to the developer, do not 10# Comments in this file are targeted only to the developer, do not
11# expect to learn how to build the kernel reading this file. 11# expect to learn how to build the kernel reading this file.
12 12
13# Do not print "Entering directory ..." 13# Do not:
14MAKEFLAGS += --no-print-directory 14# o use make's built-in rules and variables
15# (this increases performance and avoid hard-to-debug behavour);
16# o print "Entering directory ...";
17MAKEFLAGS += -rR --no-print-directory
15 18
16# We are using a recursive build, so we need to do a little thinking 19# We are using a recursive build, so we need to do a little thinking
17# to get the ordering right. 20# to get the ordering right.
@@ -271,12 +274,8 @@ export quiet Q KBUILD_VERBOSE
271# Look for make include files relative to root of kernel src 274# Look for make include files relative to root of kernel src
272MAKEFLAGS += --include-dir=$(srctree) 275MAKEFLAGS += --include-dir=$(srctree)
273 276
274# We need some generic definitions 277# We need some generic definitions.
275include $(srctree)/scripts/Kbuild.include 278include $(srctree)/scripts/Kbuild.include
276
277# Do not use make's built-in rules and variables
278# This increases performance and avoid hard-to-debug behavour
279MAKEFLAGS += -rR
280 279
281# Make variables (CC, etc...) 280# Make variables (CC, etc...)
282 281
@@ -497,11 +496,6 @@ else
497CFLAGS += -fomit-frame-pointer 496CFLAGS += -fomit-frame-pointer
498endif 497endif
499 498
500ifdef CONFIG_UNWIND_INFO
501CFLAGS += -fasynchronous-unwind-tables
502LDFLAGS_vmlinux += --eh-frame-hdr
503endif
504
505ifdef CONFIG_DEBUG_INFO 499ifdef CONFIG_DEBUG_INFO
506CFLAGS += -g 500CFLAGS += -g
507endif 501endif
@@ -1101,9 +1095,9 @@ boards := $(notdir $(boards))
1101 1095
1102help: 1096help:
1103 @echo 'Cleaning targets:' 1097 @echo 'Cleaning targets:'
1104 @echo ' clean - remove most generated files but keep the config and' 1098 @echo ' clean - Remove most generated files but keep the config and'
1105 @echo ' enough build support to build external modules' 1099 @echo ' enough build support to build external modules'
1106 @echo ' mrproper - remove all generated files + config + various backup files' 1100 @echo ' mrproper - Remove all generated files + config + various backup files'
1107 @echo ' distclean - mrproper + remove editor backup and patch files' 1101 @echo ' distclean - mrproper + remove editor backup and patch files'
1108 @echo '' 1102 @echo ''
1109 @echo 'Configuration targets:' 1103 @echo 'Configuration targets:'
@@ -1391,12 +1385,18 @@ endif #ifeq ($(mixed-targets),1)
1391 1385
1392PHONY += checkstack kernelrelease kernelversion 1386PHONY += checkstack kernelrelease kernelversion
1393 1387
1394# 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
1395# In the UML case, $(SUBARCH) is the name of the underlying 1389# toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone
1396# 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
1397checkstack: 1397checkstack:
1398 $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \ 1398 $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
1399 $(PERL) $(src)/scripts/checkstack.pl $(SUBARCH) 1399 $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
1400 1400
1401kernelrelease: 1401kernelrelease:
1402 $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \ 1402 $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \
@@ -1484,6 +1484,8 @@ endif # skip-makefile
1484PHONY += FORCE 1484PHONY += FORCE
1485FORCE: 1485FORCE:
1486 1486
1487# Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes.
1488Makefile: ;
1487 1489
1488# Declare the contents of the .PHONY variable as phony. We keep that 1490# Declare the contents of the .PHONY variable as phony. We keep that
1489# information in a variable se we can use it in if_changed and friends. 1491# information in a variable se we can use it in if_changed and friends.