From 2e39c070b3f1da75e4a86a0b9407e038a4cc5108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 12 Apr 2015 11:07:15 +0200 Subject: parse_kconfig make builds *.o files Until now *.o files were not created. --- scripts/shared/kconfig/files.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/shared/kconfig/files.mk') diff --git a/scripts/shared/kconfig/files.mk b/scripts/shared/kconfig/files.mk index 5552991..e51146a 100644 --- a/scripts/shared/kconfig/files.mk +++ b/scripts/shared/kconfig/files.mk @@ -7,6 +7,9 @@ ifndef KCONFIG_PREFIX endif KCONFIG_SRC = $(KCONFIG_PREFIX)/zconf.tab.c +KCONFIG_OBJ = $(KCONFIG_PREFIX)/zconf.tab.o + +KCONFIG_CFLAGS = -O3 %.hash.c: %.gperf gperf -t --output-file $@ -a -C -E -g -k '1,3,$$' -p -t $< @@ -19,8 +22,11 @@ $(KCONFIG_PREFIX)/zconf.tab.c: $(KCONFIG_PREFIX)/zconf.hash.c %.tab.c: %.y bison -o $@ $< -p zconf -t -l +$(KCONFIG_PREFIX)/zconf.tab.o: $(KCONFIG_PREFIX)/zconf.tab.c + gcc $(KCONFIG_CFLAGS) -c -o $@ $^ clean:: + $(RM) $(KCONFIG_OBJ) $(RM) $(KCONFIG_PREFIX)/zconf.tab.c $(RM) $(KCONFIG_PREFIX)/zconf.lex.c $(RM) $(KCONFIG_PREFIX)/zconf.hash.c -- cgit v1.2.3