From cc6dc90f30b145ac8c81e4c438703dcaee2a351a Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Mon, 6 Aug 2018 16:13:32 -0600 Subject: [PATCH] Makefile: Enable DELETE_ON_ERROR for all targets If a target is interrupted in the middle of writing an output file, the file could be left in a corrupt state. A subsequent make invocation will see the file as up to date and can cause very confusing errors. BUG=b:112267918 TEST=Made a target fail before completion and verified make deleted the output file. Change-Id: I865827ea769b4dffa638d4324fc7284f6cb2ddc0 Signed-off-by: Raul E Rangel Reviewed-on: https://review.coreboot.org/27885 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Julius Werner Reviewed-by: Patrick Georgi --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4aa179d660..1d4a4889af 100644 --- a/Makefile +++ b/Makefile @@ -174,6 +174,7 @@ real-all: real-target # must come rather early .SECONDEXPANSION: +.DELETE_ON_ERROR: $(KCONFIG_AUTOHEADER): $(KCONFIG_CONFIG) +$(MAKE) oldconfig