35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
|
|
index 4c51c95d40f4..64e98e1d4825 100644
|
|
--- a/scripts/Makefile.host
|
|
+++ b/scripts/Makefile.host
|
|
@@ -11,7 +11,7 @@ $(obj)/%.lex.c: $(src)/%.l FORCE
|
|
# YACC
|
|
# ---------------------------------------------------------------------------
|
|
quiet_cmd_bison = YACC $(basename $@).[ch]
|
|
- cmd_bison = $(YACC) -o $(basename $@).c --defines=$(basename $@).h -t -l $<
|
|
+ cmd_bison = $(YACC) -b $(basename $(basename $@)) -d -t -l $<
|
|
|
|
$(obj)/%.tab.c $(obj)/%.tab.h: $(src)/%.y FORCE
|
|
$(call if_changed,bison)
|
|
--- a/scripts/genksyms/Makefile
|
|
+++ b/scripts/genksyms/Makefile
|
|
@@ -14,7 +14,7 @@
|
|
ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),)
|
|
|
|
quiet_cmd_bison_no_warn = $(quiet_cmd_bison)
|
|
- cmd_bison_no_warn = $(YACC) --version >/dev/null; \
|
|
+ cmd_bison_no_warn = $(YACC) -V >/dev/null; \
|
|
$(cmd_bison) 2>/dev/null
|
|
|
|
$(obj)/pars%.tab.c $(obj)/pars%.tab.h: $(src)/pars%.y FORCE
|
|
--- a/scripts/genksyms/lex.l
|
|
+++ b/scripts/genksyms/lex.l
|
|
@@ -19,6 +19,8 @@
|
|
#include "genksyms.h"
|
|
#include "parse.tab.h"
|
|
|
|
+extern YYSTYPE yylval;
|
|
+
|
|
/* We've got a two-level lexer here. We let flex do basic tokenization
|
|
and then we categorize those basic tokens in the second stage. */
|
|
#define YY_DECL static int yylex1(void)
|