Skip to content

Commit

Permalink
script: dtc: clean generated files
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
  • Loading branch information
Magnus Damm authored and glikely committed Nov 21, 2012
1 parent 07c1211 commit 4f3be1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/dtc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f3be1c

Please sign in to comment.