+ makefile-cancel-implicit-rules-on-included-and-top-makefiles.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Makefile: cancel implicit rules on included and top makefiles.
has been added to the -mm tree.  Its filename is
     makefile-cancel-implicit-rules-on-included-and-top-makefiles.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Makefile: cancel implicit rules on included and top makefiles.
From: Oleg Verych <olecom@xxxxxxxxxxxxxx>

`make -d help | grep Makefile` shows patterns, where make tries to rebuild
included and top makefiles.

Do not let make to do so, by canceling implicit rules on this files.  This
must apply for all kinds of top makefiles's targets: *config, *build.

Signed-off-by: Oleg Verych <olecom@xxxxxxxxxxxxxx>
Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 Makefile |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff -puN Makefile~makefile-cancel-implicit-rules-on-included-and-top-makefiles Makefile
--- a/Makefile~makefile-cancel-implicit-rules-on-included-and-top-makefiles
+++ a/Makefile
@@ -271,8 +271,10 @@ export quiet Q KBUILD_VERBOSE
 # Look for make include files relative to root of kernel src
 MAKEFLAGS += --include-dir=$(srctree)
 
-# We need some generic definitions
-include  $(srctree)/scripts/Kbuild.include
+# We need some generic definitions from another makefile.
+# Do not let `make' to try its implicit rules on it.
+$(srctree)/scripts/Kbuild.include: ;
+include $(srctree)/scripts/Kbuild.include
 
 # Do not use make's built-in rules and variables
 # This increases performance and avoid hard-to-debug behavour
@@ -1484,6 +1486,9 @@ endif	# skip-makefile
 PHONY += FORCE
 FORCE:
 
+# Cancel implicit rules on arch and top makefiles.
+$(srctree)/Makefile Makefile:     ;
+$(srctree)/arch/$(ARCH)/Makefile: ;
 
 # Declare the contents of the .PHONY variable as phony.  We keep that
 # information in a variable se we can use it in if_changed and friends.
_

Patches currently in -mm which might be from olecom@xxxxxxxxxxxxxx are

makefile-cancel-implicit-rules-on-included-and-top-makefiles.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux