diff mbox series

Makefile: add rule to remove *.o.tmp

Message ID 20201128112933.319176-1-sbabic@denx.de
State Accepted
Headers show
Series Makefile: add rule to remove *.o.tmp | expand

Commit Message

Stefano Babic Nov. 28, 2020, 11:29 a.m. UTC
This removes file like built-in.o.tmp that can break build on multicore
systems.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index cc8f055..6cc0836 100644
--- a/Makefile
+++ b/Makefile
@@ -547,7 +547,7 @@  clean: $(clean-dirs)
 		\( -name '*.[oas]' -o -name '.*.cmd' \
 		-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
 		-o -name modules.builtin -o -name '.tmp_*.o.*' \
-		-o -name '*.gcno' \) -type f -print | xargs rm -f
+		-o -name '*.o.tmp' \) -type f -print | xargs rm -f
 	@pwd
 	$(Q)$(MAKE) -f $(srctree)/doc/Makefile BUILDDIR=$(CURDIR)/doc/build clean