diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-12-10 01:02:28 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-12-16 11:12:53 +0900 |
commit | 73a4f6dbe70a1b93c11e2d1d6ca68f3522daf434 (patch) | |
tree | bf05c5756b1c12f583409b3b2528cf8d51ee430e /scripts | |
parent | e3b03bf29d6b99fab7001fb20c33fe54928c157a (diff) | |
download | linux-stable-73a4f6dbe70a1b93c11e2d1d6ca68f3522daf434.tar.gz linux-stable-73a4f6dbe70a1b93c11e2d1d6ca68f3522daf434.tar.bz2 linux-stable-73a4f6dbe70a1b93c11e2d1d6ca68f3522daf434.zip |
kbuild: add LEX and YACC variables
Allow users to use their favorite lexer / parser generators.
This is useful for me to test various flex and bison versions.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.lib | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 1ca4dcd2d500..ee528e30f80f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -193,7 +193,7 @@ ifdef REGENERATE_PARSERS LEX_PREFIX = $(if $(LEX_PREFIX_${baseprereq}),$(LEX_PREFIX_${baseprereq}),yy) quiet_cmd_flex = LEX $@ - cmd_flex = flex -o$@ -L -P $(LEX_PREFIX) $< + cmd_flex = $(LEX) -o$@ -L -P $(LEX_PREFIX) $< .PRECIOUS: $(src)/%.lex.c_shipped $(src)/%.lex.c_shipped: $(src)/%.l @@ -204,7 +204,7 @@ $(src)/%.lex.c_shipped: $(src)/%.l YACC_PREFIX = $(if $(YACC_PREFIX_${baseprereq}),$(YACC_PREFIX_${baseprereq}),yy) quiet_cmd_bison = YACC $@ - cmd_bison = bison -o$@ -t -l -p $(YACC_PREFIX) $< + cmd_bison = $(YACC) -o$@ -t -l -p $(YACC_PREFIX) $< .PRECIOUS: $(src)/%.tab.c_shipped $(src)/%.tab.c_shipped: $(src)/%.y |