aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 23 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 25b35992a02c..dc82462b68ba 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 19 3SUBLEVEL = 20
4EXTRAVERSION =-rc3 4EXTRAVERSION =-rc1
5NAME=Avast! A bilge rat! 5NAME=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:
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
@@ -1101,9 +1100,9 @@ boards := $(notdir $(boards))
1101 1100
1102help: 1101help:
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
1392PHONY += checkstack kernelrelease kernelversion 1391PHONY += 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.
1397ifeq ($(ARCH), um)
1398CHECKSTACK_ARCH := $(SUBARCH)
1399else
1400CHECKSTACK_ARCH := $(ARCH)
1401endif
1397checkstack: 1402checkstack:
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
1401kernelrelease: 1406kernelrelease:
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
1484PHONY += FORCE 1489PHONY += FORCE
1485FORCE: 1490FORCE:
1486 1491
1492# Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes.
1493Makefile: ;
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.