[PATCH] script: dtc: clean generated files

Simon Horman horms at verge.net.au
Fri Nov 16 17:53:14 EST 2012


From: Magnus Damm <damm at opensource.se>

Fix "make distclean" to clean up generated dtc files.

Without this patch the following files are left around:
 - dtc-lexer.lex.c
 - dtc-parser.tab.c
 - dtc-parser.tab.h

Signed-off-by: Magnus Damm <damm at opensource.se>
Reviewed-by: Simon Horman <horms at verge.net.au>
---
 scripts/dtc/Makefile |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile
index 6d1c6bb..2a48022 100644
--- a/scripts/dtc/Makefile
+++ b/scripts/dtc/Makefile
@@ -27,3 +27,5 @@ HOSTCFLAGS_dtc-parser.tab.o := $(HOSTCFLAGS_DTC)
 # dependencies on generated files need to be listed explicitly
 $(obj)/dtc-lexer.lex.o: $(obj)/dtc-parser.tab.h
 
+# generated files need to be cleaned explicitly
+clean-files	:= dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h
-- 
1.7.10.4



More information about the devicetree-discuss mailing list