[RFC PATCH] kbuild: avoid some unnecessary rebuild

From: Christopher Li
Date: Sun Mar 17 2013 - 17:50:49 EST


In the current tip of git tree. If I do a allmodconfig full build, then follow
by a "make" again without changing any code in the tree.
There are some object will always get rebuild. e.g. eboot.o.
I use "make V=2", it shows that the rebuild is due to some object file
not in $(targets). I did not understand the $(targets) very well, the
Kbuild.include mention that It is likely a bug in the kbuild if that
happen.

I add them in the $(targets) and that seems avoid the unnecessary
rebuild of several objects. The second "make" has fewer output.
The clean rebuild seems works fine too.

Chris

Attachment: kbuild-avoid-rebuild-some-object.patch
Description: Binary data