lkml.org 
[lkml]   [2018]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/2] kbuild: remove unnecessary LEX_PREFIX and YACC_PREFIX
On Fri, Jan 12, 2018 at 1:58 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> Kconfig was the only user of these. With Kconfig converted to use
> the default 'yy' prefix, we do not need them any more.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> scripts/Makefile.lib | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 0f9ef3f..5ff2761 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -188,10 +188,8 @@ endef
>
> # LEX
> # ---------------------------------------------------------------------------
> -LEX_PREFIX = $(if $(LEX_PREFIX_${baseprereq}),$(LEX_PREFIX_${baseprereq}),yy)
> -
> quiet_cmd_flex = LEX $@
> - cmd_flex = $(LEX) -o$@ -L -P $(LEX_PREFIX) $<
> + cmd_flex = $(LEX) -o$@ -L $<
>
> ifdef REGENERATE_PARSERS
> .PRECIOUS: $(src)/%.lex.c_shipped
> @@ -205,10 +203,8 @@ $(filter %.lex.c,$(targets)): $(obj)/%.lex.c: $(src)/%.l FORCE
>
> # YACC
> # ---------------------------------------------------------------------------
> -YACC_PREFIX = $(if $(YACC_PREFIX_${baseprereq}),$(YACC_PREFIX_${baseprereq}),yy)
> -
> quiet_cmd_bison = YACC $@
> - cmd_bison = $(YACC) -o$@ -t -l -p $(YACC_PREFIX) $<
> + cmd_bison = $(YACC) -o$@ -t -l $<
>
> ifdef REGENERATE_PARSERS
> .PRECIOUS: $(src)/%.tab.c_shipped
> --
> 2.7.4
>

Acked-by: Ulf Magnusson <ulfalizer@gmail.com>

Cheers,
Ulf

\
 
 \ /
  Last update: 2018-01-14 23:25    [W:0.178 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site