From dd6efce934fb5ec1d427b79457690cf8889dad92 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Fri, 25 Feb 2022 17:03:10 -0700 Subject: [PATCH] Makefile: Add .SECONDARY We currently delete intermediate files. This can make it difficult to debug and is also unexpected. Setting .SECONDARY will prevent make from deleting the files. BUG=b:221231786 TEST=Build guybrush with CL stack and see .map files are preserved Signed-off-by: Raul E Rangel Change-Id: I657a696acc71d42ba94442d4754ee63efd3e6a74 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62398 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Martin Roth --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index a9fbe98fe4..82f64583c5 100644 --- a/Makefile +++ b/Makefile @@ -193,6 +193,7 @@ strip_quotes = $(strip $(subst ",,$(subst \",,$(1)))) real-all: real-target # must come rather early +.SECONDARY: .SECONDEXPANSION: .DELETE_ON_ERROR: