make sconfig parser regeneration menu selectable
authorStefan Reinauer <stepan@coresystems.de>
Mon, 9 Aug 2010 13:28:18 +0000 (13:28 +0000)
committerStefan Reinauer <stepan@openbios.org>
Mon, 9 Aug 2010 13:28:18 +0000 (13:28 +0000)
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

src/Kconfig
util/sconfig/Makefile.inc

index c86b6684a6fb471c8bfec032293a650f93db7c86..0995e1a36e733684a944d00ade60c9d437110a80 100644 (file)
@@ -80,6 +80,16 @@ config CCACHE
          Enables the use of ccache for faster builds.
          Requires ccache in path.
 
+config SCONFIG_GENPARSER
+       bool "Generate SCONFIG parser using flex and bison"
+       default n
+       depends on EXPERT
+       help
+         Enable this option if you are working on the sconfig
+         device tree parser and made changes to sconfig.l and
+         sconfig.y. 
+         Otherwise, say N.
+
 config USE_OPTION_TABLE
        bool "Use CMOS for configuration values"
        default n
index a1ee64da88eb7ad06c25eac81b24b94b40bce0f0..97a445f03712151a42924a261bcdbce1d67482ad 100644 (file)
@@ -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