diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 23 insertions, 16 deletions
@@ -1,7 +1,7 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 19 | 3 | SUBLEVEL = 20 |
4 | EXTRAVERSION =-rc3 | 4 | EXTRAVERSION =-rc1 |
5 | NAME=Avast! A bilge rat! | 5 | NAME=Avast! A bilge rat! |
6 | 6 | ||
7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
@@ -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 | ||
@@ -1101,9 +1100,9 @@ boards := $(notdir $(boards)) | |||
1101 | 1100 | ||
1102 | help: | 1101 | help: |
1103 | @echo 'Cleaning targets:' | 1102 | @echo 'Cleaning targets:' |
1104 | @echo ' clean - remove most generated files but keep the config and' | 1103 | @echo ' clean - Remove most generated files but keep the config and' |
1105 | @echo ' enough build support to build external modules' | 1104 | @echo ' enough build support to build external modules' |
1106 | @echo ' mrproper - remove all generated files + config + various backup files' | 1105 | @echo ' mrproper - Remove all generated files + config + various backup files' |
1107 | @echo ' distclean - mrproper + remove editor backup and patch files' | 1106 | @echo ' distclean - mrproper + remove editor backup and patch files' |
1108 | @echo '' | 1107 | @echo '' |
1109 | @echo 'Configuration targets:' | 1108 | @echo 'Configuration targets:' |
@@ -1391,12 +1390,18 @@ endif #ifeq ($(mixed-targets),1) | |||
1391 | 1390 | ||
1392 | PHONY += checkstack kernelrelease kernelversion | 1391 | PHONY += checkstack kernelrelease kernelversion |
1393 | 1392 | ||
1394 | # Use $(SUBARCH) here instead of $(ARCH) so that this works for UML. | 1393 | # 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 | 1394 | # toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone |
1396 | # architecture, while for all other arches, it is the same as $(ARCH). | 1395 | # else wants $(ARCH), including people doing cross-builds, which means |
1396 | # that $(SUBARCH) doesn't work here. | ||
1397 | ifeq ($(ARCH), um) | ||
1398 | CHECKSTACK_ARCH := $(SUBARCH) | ||
1399 | else | ||
1400 | CHECKSTACK_ARCH := $(ARCH) | ||
1401 | endif | ||
1397 | checkstack: | 1402 | checkstack: |
1398 | $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \ | 1403 | $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \ |
1399 | $(PERL) $(src)/scripts/checkstack.pl $(SUBARCH) | 1404 | $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH) |
1400 | 1405 | ||
1401 | kernelrelease: | 1406 | kernelrelease: |
1402 | $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \ | 1407 | $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \ |
@@ -1484,6 +1489,8 @@ endif # skip-makefile | |||
1484 | PHONY += FORCE | 1489 | PHONY += FORCE |
1485 | FORCE: | 1490 | FORCE: |
1486 | 1491 | ||
1492 | # Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes. | ||
1493 | Makefile: ; | ||
1487 | 1494 | ||
1488 | # Declare the contents of the .PHONY variable as phony. We keep that | 1495 | # 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. | 1496 | # information in a variable se we can use it in if_changed and friends. |