Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258906
b: refs/heads/master
c: 378dbb2
h: refs/heads/master
v: v3
  • Loading branch information
Arnaud Lacombe committed Jun 9, 2011
1 parent 44e00c7 commit 9e100fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 674eed8a6ac9d10b4ee08f497dbe20d75bfa863d
refs/heads/master: 378dbb2cf5cb51e41e51b115af8b3ecef086e6ff
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generated files
#
config*
lex.*.c
*.lex.c
*.tab.c
*.tab.h
zconf.hash.c
Expand Down
28 changes: 3 additions & 25 deletions trunk/scripts/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC)
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)

LEX_PREFIX_zconf := zconf
YACC_PREFIX_zconf := zconf

HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl
HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK

Expand Down Expand Up @@ -335,28 +338,3 @@ $(obj)/gconf.glade.h: $(obj)/gconf.glade
$(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
$(obj)/gconf.glade

###
# The following requires flex/bison/gperf
# By default we use the _shipped versions, uncomment the following line if
# you are modifying the flex/bison src.
# LKC_GENPARSER := 1

ifdef LKC_GENPARSER

$(obj)/zconf.tab.c: $(src)/zconf.y
$(obj)/lex.zconf.c: $(src)/zconf.l
$(obj)/zconf.hash.c: $(src)/zconf.gperf

%.tab.c: %.y
bison -l -b $* -p $(notdir $*) $<
cp $@ $@_shipped

lex.%.c: %.l
flex -L -P$(notdir $*) -o$@ $<
cp $@ $@_shipped

%.hash.c: %.gperf
gperf -C < $< > $@
cp $@ $@_shipped

endif
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/zconf.y
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ void zconfdump(FILE *out)
}
}

#include "lex.zconf.c"
#include "zconf.lex.c"
#include "util.c"
#include "confdata.c"
#include "expr.c"
Expand Down

0 comments on commit 9e100fa

Please sign in to comment.