summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-05-15 09:27:34 +0300
committerPatrick Georgi <pgeorgi@google.com>2015-05-19 17:03:54 +0200
commitd32b27383b35b62ea853e5edda5af302898c9cf2 (patch)
tree6b9c23fa05b9a9995d331730b72b237c7d341973 /util
parent428130e83955795592563393edd360fa0b17199a (diff)
downloadcoreboot-d32b27383b35b62ea853e5edda5af302898c9cf2.tar.xz
cbfstool: Rename autogenerated targets
These names will skip the lint-whitespace tests. Change-Id: If4ac1f8e11fd0ac62f09696f2704477b6eb30046 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/10212 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/Makefile.inc31
-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