Skip to content

Commit

Permalink
scripts/dtc: generate lexer and parser during build instead of shipping
Browse files Browse the repository at this point in the history
Now that the kernel build supports flex and bison, remove the _shipped
files and generate them during the build instead.

Based on Masahiro's original patch.

Reviewed-by: Masahiro Yamada <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
robherring committed Mar 6, 2018
1 parent a54b81e commit e039139
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4,713 deletions.
6 changes: 4 additions & 2 deletions scripts/dtc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ 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
# generated files need to include *.cmd and be cleaned explicitly
generated-files := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h
targets := $(generated-files)
clean-files := $(generated-files)
Loading

0 comments on commit e039139

Please sign in to comment.