[coreboot] [commit] r5688 - in trunk: src util/sconfig
repository service
svn at coreboot.org
Mon Aug 9 15:28:19 CEST 2010
Author: stepan
Date: Mon Aug 9 15:28:18 2010
New Revision: 5688
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5688
Log:
make sconfig parser regeneration menu selectable
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified:
trunk/src/Kconfig
trunk/util/sconfig/Makefile.inc
Modified: trunk/src/Kconfig
==============================================================================
--- trunk/src/Kconfig Mon Aug 9 14:58:16 2010 (r5687)
+++ trunk/src/Kconfig Mon Aug 9 15:28:18 2010 (r5688)
@@ -80,6 +80,16 @@
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
Modified: trunk/util/sconfig/Makefile.inc
==============================================================================
--- trunk/util/sconfig/Makefile.inc Mon Aug 9 14:58:16 2010 (r5687)
+++ trunk/util/sconfig/Makefile.inc Mon Aug 9 15:28:18 2010 (r5688)
@@ -16,13 +16,15 @@
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
More information about the coreboot
mailing list