From 9ddce4b351ff2757505fe433e3cfbdf410d2c86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 10 Apr 2015 15:45:16 +0200 Subject: Part of Kconfig used in kconfig_parser exported to shared directory and updated to linux v4.0-rc5 --- scripts/shared/kconfig/files.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/shared/kconfig/files.mk (limited to 'scripts/shared/kconfig/files.mk') diff --git a/scripts/shared/kconfig/files.mk b/scripts/shared/kconfig/files.mk new file mode 100644 index 0000000..36a3eec --- /dev/null +++ b/scripts/shared/kconfig/files.mk @@ -0,0 +1,22 @@ +.PHONY: clean + +ifndef KCONFIG_PREFIX + $(error "Please specify variable KCONFIG_SRC in your makefile before importing kconfig files.mk") +endif + +KCONFIG_SRC = $(KCONFIG_PREFIX)/zconf.tab.c + +%.hash.c: %.gperf + gperf -t --output-file $@ -a -C -E -g -k '1,3,$$' -p -t $< + +%.lex.c: %.l + flex -o $@ -L -P zconf $< + +%.tab.c: %.y %.lex.c %.hash.c + bison -o $@ $< -p zconf -t -l + + +clean:: + $(RM) $(KCONFIG_PREFIX)/zconf.tab.c + $(RM) $(KCONFIG_PREFIX)/zconf.lex.c + $(RM) $(KCONFIG_PREFIX)/zconf.hash.c -- cgit v1.2.3