From e039139be8c25145b103ab365ff1bd4a540066a3 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Tue, 27 Feb 2018 17:28:47 -0600 Subject: scripts/dtc: generate lexer and parser during build instead of shipping 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 Signed-off-by: Rob Herring --- scripts/dtc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/dtc/Makefile') diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 0dc922bb7aea..a88b8c9bf46d 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -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) -- cgit v1.2.3