diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/cbfstool/Makefile.inc | 31 | ||||
-rw-r--r-- | util/cbfstool/fmd_parser.c_shipped (renamed from util/cbfstool/fmd_parser.c) | 0 | ||||
-rw-r--r-- | util/cbfstool/fmd_parser.h_shipped (renamed from util/cbfstool/fmd_parser.h) | 0 | ||||
-rw-r--r-- | util/cbfstool/fmd_scanner.c_shipped (renamed from util/cbfstool/fmd_scanner.c) | 0 | ||||
-rw-r--r-- | util/cbfstool/fmd_scanner.h_shipped (renamed from util/cbfstool/fmd_scanner.h) | 0 |
5 files changed, 21 insertions, 10 deletions
diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc index 52c3e42c00..84ab724757 100644 --- a/util/cbfstool/Makefile.inc +++ b/util/cbfstool/Makefile.inc @@ -90,20 +90,31 @@ $(objutil)/cbfstool/fmd_scanner.o: TOOLCFLAGS += -Wno-unused-function # Tolerate lzma sdk warnings $(objutil)/cbfstool/LzmaEnc.o: TOOLCFLAGS += -Wno-sign-compare -Wno-cast-qual +$(objutil)/cbfstool/fmd.o: $(top)/util/cbfstool/fmd_parser.h +$(objutil)/cbfstool/fmd.o: $(top)/util/cbfstool/fmd_scanner.h +$(objutil)/cbfstool/fmd_parser.o: $(objutil)/cbfstool/fmd.o +$(objutil)/cbfstool/fmd_scanner.o: $(objutil)/cbfstool/fmd.o + +$(top)/util/cbfstool/%: $(top)/util/cbfstool/%_shipped + mkdir -p $(dir $@) + cp $< $@ + ifeq ($(CONFIG_FMD_GENPARSER),y) TOOLLEX := lex TOOLYACC := yacc -$(objutil)/cbfstool/fmd.o: $(top)/util/cbfstool/fmd_parser.c -$(objutil)/cbfstool/fmd.o: $(top)/util/cbfstool/fmd_scanner.c -$(objutil)/cbfstool/fmd_parser.o: $(objutil)/cbfstool/fmd.o -$(objutil)/cbfstool/fmd_scanner.o: $(objutil)/cbfstool/fmd.o -$(top)/util/cbfstool/fmd_scanner.c $(top)/util/cbfstool/fmd_scanner.h: $(top)/util/cbfstool/fmd_scanner.l +# the .c rule also creates .h +$(top)/util/cbfstool/fmd_scanner.h_shipped: $(top)/util/cbfstool/fmd_scanner.c_shipped +$(top)/util/cbfstool/fmd_scanner.c_shipped: $(top)/util/cbfstool/fmd_scanner.l echo " LEX util/cbfstool/fmd_scanner.[ch]" - $(TOOLLEX) -t --header-file=$(top)/util/cbfstool/fmd_scanner.h $< >$(top)/util/cbfstool/fmd_scanner.c -$(top)/util/cbfstool/fmd_parser.c $(top)/util/cbfstool/fmd_parser.h: $(top)/util/cbfstool/fmd_parser.y + $(TOOLLEX) -t --header-file=$(top)/util/cbfstool/fmd_scanner.h_shipped $< >$(top)/util/cbfstool/fmd_scanner.c_shipped + +# the .c rule also creates .h +$(top)/util/cbfstool/fmd_parser.h_shipped: $(top)/util/cbfstool/fmd_parser.c_shipped +$(top)/util/cbfstool/fmd_parser.c_shipped: $(top)/util/cbfstool/fmd_parser.y echo " YACC util/cbfstool/fmd_parser.[ch]" $(TOOLYACC) -d $< - mv -f y.tab.c $(top)/util/cbfstool/fmd_parser.c - mv -f y.tab.h $(top)/util/cbfstool/fmd_parser.h -endif + mv -f y.tab.c $(top)/util/cbfstool/fmd_parser.c_shipped + mv -f y.tab.h $(top)/util/cbfstool/fmd_parser.h_shipped + +endif # CONFIG_FMD_GENPARSER diff --git a/util/cbfstool/fmd_parser.c b/util/cbfstool/fmd_parser.c_shipped index d463393256..d463393256 100644 --- a/util/cbfstool/fmd_parser.c +++ b/util/cbfstool/fmd_parser.c_shipped diff --git a/util/cbfstool/fmd_parser.h b/util/cbfstool/fmd_parser.h_shipped index dc6301d926..dc6301d926 100644 --- a/util/cbfstool/fmd_parser.h +++ b/util/cbfstool/fmd_parser.h_shipped diff --git a/util/cbfstool/fmd_scanner.c b/util/cbfstool/fmd_scanner.c_shipped index d0d93d3ce9..d0d93d3ce9 100644 --- a/util/cbfstool/fmd_scanner.c +++ b/util/cbfstool/fmd_scanner.c_shipped diff --git a/util/cbfstool/fmd_scanner.h b/util/cbfstool/fmd_scanner.h_shipped index 595b530c9d..595b530c9d 100644 --- a/util/cbfstool/fmd_scanner.h +++ b/util/cbfstool/fmd_scanner.h_shipped |