diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-10 15:45:16 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-10 15:45:16 +0200 |
commit | 9ddce4b351ff2757505fe433e3cfbdf410d2c86c (patch) | |
tree | 2463bdaf4a133bc201eb2c7a91950d81575c12cc /scripts/shared/kconfig/files.mk | |
parent | 5a47ee52b95734ea4224adfd341ee0f9eb5c8d62 (diff) | |
download | linux-conf-perf-9ddce4b351ff2757505fe433e3cfbdf410d2c86c.tar.gz linux-conf-perf-9ddce4b351ff2757505fe433e3cfbdf410d2c86c.tar.bz2 linux-conf-perf-9ddce4b351ff2757505fe433e3cfbdf410d2c86c.zip |
Part of Kconfig used in kconfig_parser exported to shared directory and updated to linux v4.0-rc5
Diffstat (limited to 'scripts/shared/kconfig/files.mk')
-rw-r--r-- | scripts/shared/kconfig/files.mk | 22 |
1 files changed, 22 insertions, 0 deletions
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 |