build system: Don't run the full build system on "make clean"
commit02ae0bf8feb554ab408a9129fd9fffd1dc4cf6aa
authorPatrick Georgi <patrick@georgi-clan.de>
Sat, 9 Feb 2013 14:45:02 +0000 (9 15:45 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Tue, 12 Feb 2013 07:18:43 +0000 (12 08:18 +0100)
tree26c7a9af260826a524388d47005020af083990f2
parent9a0001623839d62d50a59060d0b653df006653d1
build system: Don't run the full build system on "make clean"

When running "make clean" the build system used to parse the entire
build system. Besides costing time, it prevents cleaning the tree
if a blobs-board is selected but blobs are not enabled.

Instead, clean always removes all of $(obj) and .xcompile, while
distclean additionally removes .config and the like.

Besides cleaning up more completely (eg. dependency files), a side
effect is that this also removes $(obj)/util, if it exists
(default location for build tools).

Change-Id: Ief6362460d4eb7edcb4b0a47ec76cb9a61bf3b86
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/2338
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Makefile