diff options
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 | ||
@@ -1484,6 +1483,8 @@ endif # skip-makefile | |||
1484 | PHONY += FORCE | 1483 | PHONY += FORCE |
1485 | FORCE: | 1484 | FORCE: |
1486 | 1485 | ||
1486 | # Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes. | ||
1487 | Makefile: ; | ||
1487 | 1488 | ||
1488 | # Declare the contents of the .PHONY variable as phony. We keep that | 1489 | # 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. | 1490 | # information in a variable se we can use it in if_changed and friends. |