summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2018-08-06 16:13:32 -0600
committerMartin Roth <martinroth@google.com>2018-08-08 21:57:07 +0000
commitcc6dc90f30b145ac8c81e4c438703dcaee2a351a (patch)
tree0f7c8032c27040db646cebf5db4b1013707369ee /Makefile
parent8c38a8b1913e5c6cab858924fa4e30b8a17bc895 (diff)
downloadcoreboot-cc6dc90f30b145ac8c81e4c438703dcaee2a351a.tar.gz
coreboot-cc6dc90f30b145ac8c81e4c438703dcaee2a351a.tar.bz2
coreboot-cc6dc90f30b145ac8c81e4c438703dcaee2a351a.zip
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 <rrangel@chromium.org> Reviewed-on: https://review.coreboot.org/27885 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4aa179d6601c..1d4a4889aff1 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