History

kconfig: migrate parser to implicit rules

Arnaud Lacombe committed 15 years ago

Commit 378dbb21 parent 674eed83 files · +5 −27Browse files

Showing the changes to scripts (3 of 3 files). Show all

Unified · Split

3 files
  1. scripts/kconfig/.gitignore +1 −1
  2. scripts/kconfig/Makefile +3 −25
  3. scripts/kconfig/zconf.y +1 −1
scripts/kconfig/.gitignore+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 # Generated files
33 #
44 config*
5−lex.*.c
5+*.lex.c
66 *.tab.c
77 *.tab.h
88 zconf.hash.c
scripts/kconfig/Makefile+3−25
@@ -223,6 +223,9 @@ HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) · 222 unmodified lines
223223 HOSTCFLAGS_lex.zconf.o := -I$(src)
224224 HOSTCFLAGS_zconf.tab.o := -I$(src)
225225
226+LEX_PREFIX_zconf := zconf
227+YACC_PREFIX_zconf := zconf
228+
226229 HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl
227230 HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK
228231
@@ -335,28 +338,3 @@ $(obj)/gconf.glade.h: $(obj)/gconf.glade · 106 unmodified lines
335338 $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \
336339 $(obj)/gconf.glade
337340
338−###
339−# The following requires flex/bison/gperf
340−# By default we use the _shipped versions, uncomment the following line if
341−# you are modifying the flex/bison src.
342−# LKC_GENPARSER := 1
343−
344−ifdef LKC_GENPARSER
345−
346−$(obj)/zconf.tab.c: $(src)/zconf.y
347−$(obj)/lex.zconf.c: $(src)/zconf.l
348−$(obj)/zconf.hash.c: $(src)/zconf.gperf
349−
350−%.tab.c: %.y
351− bison -l -b $* -p $(notdir $*) $<
352− cp $@ $@_shipped
353−
354−lex.%.c: %.l
355− flex -L -P$(notdir $*) -o$@ $<
356− cp $@ $@_shipped
357−
358−%.hash.c: %.gperf
359− gperf -C < $< > $@
360− cp $@ $@_shipped
361−
362−endif
scripts/kconfig/zconf.y+1−1
@@ -733,7 +733,7 @@ void zconfdump(FILE *out) · 732 unmodified lines
733733 }
734734 }
735735
736−#include "lex.zconf.c"
736+#include "zconf.lex.c"
737737 #include "util.c"
738738 #include "confdata.c"
739739 #include "expr.c"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t