From 69a9165954b1edf295606e22ec7ae29b86b6274b Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 13 Jan 2021 12:47:25 +0000 Subject: [PATCH] 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 --- tools/cert_create/Makefile | 2 +- tools/encrypt_fw/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cert_create/Makefile b/tools/cert_create/Makefile index 0ec08b054..c3c8bcf5e 100644 --- a/tools/cert_create/Makefile +++ b/tools/cert_create/Makefile @@ -59,7 +59,7 @@ HOSTCC ?= gcc .PHONY: all clean realclean -all: clean ${BINARY} +all: ${BINARY} ${BINARY}: ${OBJECTS} Makefile @echo " HOSTLD $@" diff --git a/tools/encrypt_fw/Makefile b/tools/encrypt_fw/Makefile index 6eb6fae7a..96dff2324 100644 --- a/tools/encrypt_fw/Makefile +++ b/tools/encrypt_fw/Makefile @@ -46,7 +46,7 @@ HOSTCC ?= gcc .PHONY: all clean realclean -all: clean ${BINARY} +all: ${BINARY} ${BINARY}: ${OBJECTS} Makefile @echo " HOSTLD $@" -- 2.39.5