make sconfig parser regeneration menu selectable
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5688 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
35d346fe2d
commit
9bf7810dac
@@ -16,13 +16,15 @@ $(objutil)/sconfig/%.o: $(objutil)/sconfig/%.c
|
||||
printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
||||
$(HOSTCC) $(SCONFIGFLAGS) $(HOSTCFLAGS) -c -o $@ $<
|
||||
|
||||
ifdef SCONFIG_GENPARSER
|
||||
ifdef CONFIG_SCONFIG_GENPARSER
|
||||
$(top)/util/sconfig/lex.yy.c_shipped: $(top)/util/sconfig/sconfig.l
|
||||
printf " FLEX $(subst $(top)/,,$(@))\n"
|
||||
flex -L -o $@ $<
|
||||
|
||||
# the .c rule also creates .h
|
||||
$(top)/util/sconfig/sconfig.tab.h_shipped: $(top)/util/sconfig/sconfig.tab.c_shipped
|
||||
$(top)/util/sconfig/sconfig.tab.c_shipped: $(top)/util/sconfig/sconfig.y
|
||||
printf " BISON $(subst $(top)/,,$(@))\n"
|
||||
bison -l --defines=$(top)/util/sconfig/sconfig.tab.h_shipped -o $@ $<
|
||||
|
||||
endif
|
||||
|
Reference in New Issue
Block a user