tools: don't clean when building

Don't depend on clean when building, as the user is capable of cleaning
if required and this introduces a race where "all" depends on both the
compile and the clean in parallel.  It's quite possible for some of the
compile to happen in parallel with the clean, which results in the link
failing as objects just built are missing.

Change-Id: I710711eea7483cafa13251c5d94ec693148bd001
Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton 2021-01-13 12:47:25 +00:00
parent 986f8330ec
commit 69a9165954
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ HOSTCC ?= gcc
.PHONY: all clean realclean
all: clean ${BINARY}
all: ${BINARY}
${BINARY}: ${OBJECTS} Makefile
@echo " HOSTLD $@"

View File

@ -46,7 +46,7 @@ HOSTCC ?= gcc
.PHONY: all clean realclean
all: clean ${BINARY}
all: ${BINARY}
${BINARY}: ${OBJECTS} Makefile
@echo " HOSTLD $@"