diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-01-17 18:34:51 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-01-17 18:34:51 -0500 |
commit | 9cdf083f981b8d37b3212400a359368661385099 (patch) | |
tree | aa15a6a08ad87e650dea40fb59b3180bef0d345b /Makefile | |
parent | e499e01d234a31d59679b7b1e1cf628d917ba49a (diff) | |
parent | a8b3485287731978899ced11f24628c927890e78 (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-- | Makefile | 46 |
1 files changed, 24 insertions, 22 deletions
@@ -1,8 +1,8 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 19 | 3 | SUBLEVEL = 20 |
4 | EXTRAVERSION = | 4 | EXTRAVERSION =-rc5 |
5 | NAME=Avast! A bilge rat! | 5 | NAME = 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: |
14 | MAKEFLAGS += --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 ..."; | ||
17 | MAKEFLAGS += -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 |
272 | MAKEFLAGS += --include-dir=$(srctree) | 275 | MAKEFLAGS += --include-dir=$(srctree) |
273 | 276 | ||
274 | # We need some generic definitions | 277 | # We need some generic definitions. |
275 | include $(srctree)/scripts/Kbuild.include | 278 | include $(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 | ||
279 | MAKEFLAGS += -rR | ||
280 | 279 | ||
281 | # Make variables (CC, etc...) | 280 | # Make variables (CC, etc...) |
282 | 281 | ||
@@ -497,11 +496,6 @@ else | |||
497 | CFLAGS += -fomit-frame-pointer | 496 | CFLAGS += -fomit-frame-pointer |
498 | endif | 497 | endif |
499 | 498 | ||
500 | ifdef CONFIG_UNWIND_INFO | ||
501 | CFLAGS += -fasynchronous-unwind-tables | ||
502 | LDFLAGS_vmlinux += --eh-frame-hdr | ||
503 | endif | ||
504 | |||
505 | ifdef CONFIG_DEBUG_INFO | 499 | ifdef CONFIG_DEBUG_INFO |
506 | CFLAGS += -g | 500 | CFLAGS += -g |
507 | endif | 501 | endif |
@@ -1101,9 +1095,9 @@ boards := $(notdir $(boards)) | |||
1101 | 1095 | ||
1102 | help: | 1096 | help: |
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 | ||
1392 | PHONY += checkstack kernelrelease kernelversion | 1386 | PHONY += 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. | ||
1392 | ifeq ($(ARCH), um) | ||
1393 | CHECKSTACK_ARCH := $(SUBARCH) | ||
1394 | else | ||
1395 | CHECKSTACK_ARCH := $(ARCH) | ||
1396 | endif | ||
1397 | checkstack: | 1397 | checkstack: |
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 | ||
1401 | kernelrelease: | 1401 | kernelrelease: |
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 | |||
1484 | PHONY += FORCE | 1484 | PHONY += FORCE |
1485 | FORCE: | 1485 | FORCE: |
1486 | 1486 | ||
1487 | # Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes. | ||
1488 | Makefile: ; | ||
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. |