]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: make V=2 tell why a target is rebuild
authorSam Ravnborg <sam@mars.ravnborg.org>
Tue, 8 Aug 2006 19:35:14 +0000 (21:35 +0200)
committerSam Ravnborg <sam@neptun.ravnborg.org>
Mon, 25 Sep 2006 07:01:49 +0000 (09:01 +0200)
commit9bd7a201145ddd6faa1c31804fcae77afe3c051b
tree8f53e4e58165fc2c7f62e17b31dfb77ef43d7dfc
parent491ec24ef9a9792909a7267446105059b4ff91d3
kbuild: make V=2 tell why a target is rebuild

tell why a a target got build
   enabled by make V=2
      Output (listed in the order they are checked):
         (1) - due to target is PHONY
         (2) - due to target missing
         (3) - due to: file1.h file2.h
         (4) - due to command line change
         (5) - due to missing .cmd file
         (6) - due to target not in $(targets)
(1) We always build PHONY targets
(2) No target, so we better build it
(3) Prerequisite is newer than target
(4) The command line stored in the file named dir/.target.cmd
    differed from actual command line. This happens when compiler
    options changes
(5) No dir/.target.cmd file (used to store command line)
(6) No dir/.target.cmd file and target not listed in $(targets)
    This is a good hint that there is a bug in the kbuild file

This patch is inspired by a patch from: Milton Miller <miltonm@bga.com>

Cc: Milton Miller <miltonm@bga.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile
scripts/Kbuild.include