Skip to content

Commit 491d711

Browse files
Roman ZippelLinus Torvalds
authored andcommitted
[PATCH] kconfig: update kconfig Makefile
Remove the long obsolete zconf.tab.h and fix kconfig make rules to generate the correct output files. Setting LKC_GENPARSER will now also update the shipped files. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 4cf3cbe commit 491d711

2 files changed

Lines changed: 7 additions & 136 deletions

File tree

‎scripts/kconfig/Makefile‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ gconf-objs := gconf.o kconfig_load.o zconf.tab.o
114114
endif
115115

116116
clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
117-
.tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c
117+
.tmp_gtkcheck zconf.tab.c lex.zconf.c
118118

119119
# Needed for systems without gettext
120120
KBUILD_HAVE_NLS := $(shell \
@@ -136,12 +136,6 @@ HOSTLOADLIBES_gconf = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs`
136136
HOSTCFLAGS_gconf.o = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --cflags` \
137137
-D LKC_DIRECT_LINK
138138

139-
$(obj)/conf.o $(obj)/mconf.o $(obj)/qconf.o $(obj)/gconf.o $(obj)/kxgettext: $(obj)/zconf.tab.h
140-
141-
$(obj)/zconf.tab.h: $(src)/zconf.tab.h_shipped
142-
$(obj)/zconf.tab.c: $(src)/zconf.tab.c_shipped
143-
$(obj)/lex.zconf.c: $(src)/lex.zconf.c_shipped
144-
145139
$(obj)/qconf.o: $(obj)/.tmp_qtcheck
146140

147141
ifeq ($(qconf-target),1)
@@ -230,13 +224,15 @@ $(obj)/lkc_defs.h: $(src)/lkc_proto.h
230224

231225
ifdef LKC_GENPARSER
232226

233-
$(obj)/zconf.tab.c: $(obj)/zconf.y
234-
$(obj)/zconf.tab.h: $(obj)/zconf.tab.c
227+
$(obj)/zconf.tab.c: $(src)/zconf.y
228+
$(obj)/lex.zconf.c: $(src)/zconf.l
235229

236230
%.tab.c: %.y
237-
bison -t -d -v -b $* -p $(notdir $*) $<
231+
bison -l -b $* -p $(notdir $*) $<
232+
cp $@ $@_shipped
238233

239234
lex.%.c: %.l
240-
flex -P$(notdir $*) -o$@ $<
235+
flex -L -P$(notdir $*) -o$@ $<
236+
cp $@ $@_shipped
241237

242238
endif

‎scripts/kconfig/zconf.tab.h_shipped‎

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)